All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3
@ 2021-01-24 10:57 Titouan Christophe
  2021-01-24 10:57 ` [Buildroot] [PATCH 1/2] package/x11r7/xcb-proto: use host-python3 instead of host-python(2) Titouan Christophe
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Titouan Christophe @ 2021-01-24 10:57 UTC (permalink / raw)
  To: buildroot

Building these packages with Python3 seems to be supported upstream for a
few years now, so we can remove two more host-python(2) dependencies here.

Titouan Christophe (2):
  package/x11r7/xcb-proto: use host-python3 instead of host-python(2)
  package/x11r7/libxcb: Use host-python3 instead of host-python(2)

 package/x11r7/libxcb/libxcb.mk       | 10 +++++-----
 package/x11r7/xcb-proto/xcb-proto.mk |  8 ++++++--
 2 files changed, 11 insertions(+), 7 deletions(-)

-- 
2.25.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] package/x11r7/xcb-proto: use host-python3 instead of host-python(2)
  2021-01-24 10:57 [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3 Titouan Christophe
@ 2021-01-24 10:57 ` Titouan Christophe
  2021-01-24 10:57 ` [Buildroot] [PATCH 2/2] package/x11r7/libxcb: Use " Titouan Christophe
  2021-01-24 16:09 ` [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3 Yann E. MORIN
  2 siblings, 0 replies; 4+ messages in thread
From: Titouan Christophe @ 2021-01-24 10:57 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Titouan Christophe <titouanchristophe@gmail.com>
---
 package/x11r7/xcb-proto/xcb-proto.mk | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/x11r7/xcb-proto/xcb-proto.mk b/package/x11r7/xcb-proto/xcb-proto.mk
index 8bfe24f848..15da4be915 100644
--- a/package/x11r7/xcb-proto/xcb-proto.mk
+++ b/package/x11r7/xcb-proto/xcb-proto.mk
@@ -12,8 +12,12 @@ XCB_PROTO_LICENSE_FILES = COPYING
 
 XCB_PROTO_INSTALL_STAGING = YES
 
-XCB_PROTO_DEPENDENCIES = host-python
-HOST_XCB_PROTO_DEPENDENCIES = host-python
+XCB_PROTO_DEPENDENCIES = host-python3
+HOST_XCB_PROTO_DEPENDENCIES = host-python3
+
+# Force detection of Buildroot host-python3 over system python
+HOST_XCB_PROTO_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3
+XCB_PROTO_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.25.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] package/x11r7/libxcb: Use host-python3 instead of host-python(2)
  2021-01-24 10:57 [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3 Titouan Christophe
  2021-01-24 10:57 ` [Buildroot] [PATCH 1/2] package/x11r7/xcb-proto: use host-python3 instead of host-python(2) Titouan Christophe
@ 2021-01-24 10:57 ` Titouan Christophe
  2021-01-24 16:09 ` [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3 Yann E. MORIN
  2 siblings, 0 replies; 4+ messages in thread
From: Titouan Christophe @ 2021-01-24 10:57 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Titouan Christophe <titouanchristophe@gmail.com>
---
 package/x11r7/libxcb/libxcb.mk | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/package/x11r7/libxcb/libxcb.mk b/package/x11r7/libxcb/libxcb.mk
index fb691c2422..fc209a2a1a 100644
--- a/package/x11r7/libxcb/libxcb.mk
+++ b/package/x11r7/libxcb/libxcb.mk
@@ -14,17 +14,17 @@ LIBXCB_INSTALL_STAGING = YES
 
 LIBXCB_DEPENDENCIES = \
 	host-libxslt xcb-proto xlib_libXdmcp xlib_libXau \
-	host-xcb-proto host-python host-pkgconf
+	host-xcb-proto host-python3 host-pkgconf
 HOST_LIBXCB_DEPENDENCIES = \
 	host-libxslt host-xcb-proto host-xlib_libXdmcp \
-	host-xlib_libXau host-python host-pkgconf
+	host-xlib_libXau host-python3 host-pkgconf
 
 LIBXCB_CONF_OPTS = --with-doxygen=no
 HOST_LIBXCB_CONF_OPTS = --with-doxygen=no
 
-# libxcb is not python3 friendly, so force the python interpreter
-HOST_LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python2
-LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python2
+# Force detection of Buildroot host-python3 over system python
+HOST_LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3
+LIBXCB_CONF_OPTS += ac_cv_path_PYTHON=$(HOST_DIR)/bin/python3
 
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
-- 
2.25.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3
  2021-01-24 10:57 [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3 Titouan Christophe
  2021-01-24 10:57 ` [Buildroot] [PATCH 1/2] package/x11r7/xcb-proto: use host-python3 instead of host-python(2) Titouan Christophe
  2021-01-24 10:57 ` [Buildroot] [PATCH 2/2] package/x11r7/libxcb: Use " Titouan Christophe
@ 2021-01-24 16:09 ` Yann E. MORIN
  2 siblings, 0 replies; 4+ messages in thread
From: Yann E. MORIN @ 2021-01-24 16:09 UTC (permalink / raw)
  To: buildroot

Titouan, All,

On 2021-01-24 11:57 +0100, Titouan Christophe spake thusly:
> Building these packages with Python3 seems to be supported upstream for a
> few years now, so we can remove two more host-python(2) dependencies here.
> 
> Titouan Christophe (2):
>   package/x11r7/xcb-proto: use host-python3 instead of host-python(2)
>   package/x11r7/libxcb: Use host-python3 instead of host-python(2)

Series of two applied to master, thanks.

I jsut reversed the order of the target vs. host variables; indeed we
tradiotionally define the host-related variables after the target ones.
Minor detail. ;-)

Thanks!

Regards,
Yann E. MORIN.

>  package/x11r7/libxcb/libxcb.mk       | 10 +++++-----
>  package/x11r7/xcb-proto/xcb-proto.mk |  8 ++++++--
>  2 files changed, 11 insertions(+), 7 deletions(-)
> 
> -- 
> 2.25.3
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-01-24 16:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 10:57 [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3 Titouan Christophe
2021-01-24 10:57 ` [Buildroot] [PATCH 1/2] package/x11r7/xcb-proto: use host-python3 instead of host-python(2) Titouan Christophe
2021-01-24 10:57 ` [Buildroot] [PATCH 2/2] package/x11r7/libxcb: Use " Titouan Christophe
2021-01-24 16:09 ` [Buildroot] [PATCH 0/2] package/x11r7/{libxcb, xcb-proto}: use host-python3 Yann E. MORIN

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.