* [meta-oe][PATCH] pidgin: Use python3 during build
@ 2019-11-27 8:00 Khem Raj
2019-11-27 9:10 ` Adrian Bunk
0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2019-11-27 8:00 UTC (permalink / raw)
To: openembedded-devel
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../pidgin/pidgin/use_py3.patch | 20 +++++++++++++++++++
.../recipes-support/pidgin/pidgin_2.13.0.bb | 1 +
2 files changed, 21 insertions(+)
create mode 100644 meta-oe/recipes-support/pidgin/pidgin/use_py3.patch
diff --git a/meta-oe/recipes-support/pidgin/pidgin/use_py3.patch b/meta-oe/recipes-support/pidgin/pidgin/use_py3.patch
new file mode 100644
index 0000000000..c7b4163cb5
--- /dev/null
+++ b/meta-oe/recipes-support/pidgin/pidgin/use_py3.patch
@@ -0,0 +1,20 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -1488,7 +1488,7 @@ AC_ARG_WITH([python],
+
+ if test "x$enable_dbus" = "xyes" || test "x$enable_consoleui" = "xyes" ; then
+ if test -z "$PYTHON" -o "x$PYTHON" = "xyes"; then
+- AC_PATH_PROG([PYTHON], [python], [no])
++ AC_PATH_PROG([PYTHON], [python3], [no])
+ fi
+
+ if test x"$PYTHON" = x"no" ; then
+@@ -1568,7 +1568,7 @@ dnl Check for Python headers (currently
+ dnl (Thanks to XChat)
+ if test "x$enable_consoleui" = "xyes" -a ! -z "$PYTHON" -a x"$PYTHON" != x"no" ; then
+ AC_MSG_CHECKING(for Python compile flags)
+- PKG_CHECK_MODULES(PY, python, [
++ PKG_CHECK_MODULES(PY, python3, [
+ AC_SUBST(PY_CFLAGS)
+ AC_SUBST(PY_LIBS)
+ ], [
diff --git a/meta-oe/recipes-support/pidgin/pidgin_2.13.0.bb b/meta-oe/recipes-support/pidgin/pidgin_2.13.0.bb
index b4944258fa..fdc79e81b2 100644
--- a/meta-oe/recipes-support/pidgin/pidgin_2.13.0.bb
+++ b/meta-oe/recipes-support/pidgin/pidgin_2.13.0.bb
@@ -11,6 +11,7 @@ SRC_URI = "\
file://sanitize-configure.ac.patch \
file://purple-OE-branding-25.patch \
file://pidgin-cross-python-265.patch \
+ file://use_py3.patch \
"
SRC_URI[md5sum] = "423403494fe1951e47cc75231f743bb0"
--
2.24.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-oe][PATCH] pidgin: Use python3 during build
2019-11-27 8:00 [meta-oe][PATCH] pidgin: Use python3 during build Khem Raj
@ 2019-11-27 9:10 ` Adrian Bunk
2019-11-28 1:14 ` Khem Raj
0 siblings, 1 reply; 3+ messages in thread
From: Adrian Bunk @ 2019-11-27 9:10 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-devel
On Wed, Nov 27, 2019 at 12:00:28AM -0800, Khem Raj wrote:
>...
> +@@ -1568,7 +1568,7 @@ dnl Check for Python headers (currently
> + dnl (Thanks to XChat)
> + if test "x$enable_consoleui" = "xyes" -a ! -z "$PYTHON" -a x"$PYTHON" != x"no" ; then
> + AC_MSG_CHECKING(for Python compile flags)
> +- PKG_CHECK_MODULES(PY, python, [
> ++ PKG_CHECK_MODULES(PY, python3, [
> + AC_SUBST(PY_CFLAGS)
> + AC_SUBST(PY_LIBS)
> + ], [
>...
This one also wants
https://bitbucket.org/pidgin/main/pull-requests/357/gnt-fix-use-after-free-memory-violation/diff
Not sure whether there are more fixes that need backporting for Python3.
cu
Adrian
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-oe][PATCH] pidgin: Use python3 during build
2019-11-27 9:10 ` Adrian Bunk
@ 2019-11-28 1:14 ` Khem Raj
0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2019-11-28 1:14 UTC (permalink / raw)
To: Adrian Bunk; +Cc: openembeded-devel
On Wed, Nov 27, 2019 at 1:10 AM Adrian Bunk <bunk@stusta.de> wrote:
>
> On Wed, Nov 27, 2019 at 12:00:28AM -0800, Khem Raj wrote:
> >...
> > +@@ -1568,7 +1568,7 @@ dnl Check for Python headers (currently
> > + dnl (Thanks to XChat)
> > + if test "x$enable_consoleui" = "xyes" -a ! -z "$PYTHON" -a x"$PYTHON" != x"no" ; then
> > + AC_MSG_CHECKING(for Python compile flags)
> > +- PKG_CHECK_MODULES(PY, python, [
> > ++ PKG_CHECK_MODULES(PY, python3, [
> > + AC_SUBST(PY_CFLAGS)
> > + AC_SUBST(PY_LIBS)
> > + ], [
> >...
>
> This one also wants
> https://bitbucket.org/pidgin/main/pull-requests/357/gnt-fix-use-after-free-memory-violation/diff
>
> Not sure whether there are more fixes that need backporting for Python3.
>
Good question. So I checked the plugins which generate .c files using
these python scripts for dbus bindings
dbus-bindings.c dbus-signals.c dbus-types.c purple-client-bindings.c
and I regenerated manually using py2 and compared with py3 generated
ones. They are identical.
> cu
> Adrian
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-11-28 1:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-27 8:00 [meta-oe][PATCH] pidgin: Use python3 during build Khem Raj
2019-11-27 9:10 ` Adrian Bunk
2019-11-28 1:14 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.