Skip to contentSkip to conversation

package/gobject-introspection: depend on python3

PATCH New aduskett at gmail.com 2 participants 2 messages Feb 22, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/gobject-introspection: depend on python3

From: Adam Duskett <[email protected]>

Currently, the Config.in file has the line:
select BR2_PACKAGE_PYTHON3 if !BR2_PACKAGE_PYTHON

This line is incorrect as gobject-introspection does not support python2. Instead, remove the select line and make python3 a dependency with a new message that explains that gobject-introspection requires python3.

Note:
gobject-introspection does not require python3 to run on the target; however, because the tools run in a qemu wrapper, a cross-compiled python3 must be installed to staging. As there is no current mechanism to tell Buildroot only to install python to staging, then python must also be installed unconditionally to the target when building gobject-introspection.

---
 package/gobject-introspection/Config.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/gobject-introspection/Config.in +4 -1
index 0537cc0404..26ca5d6e3a 100644
@@ -9,11 +9,11 @@ config BR2_PACKAGE_GOBJECT_INTROSPECTION
 	# can be verified.
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_HOST_QEMU
 	select BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE
 	select BR2_PACKAGE_LIBFFI
 	select BR2_PACKAGE_LIBGLIB2
-	select BR2_PACKAGE_PYTHON3 if !BR2_PACKAGE_PYTHON
 	select BR2_PACKAGE_ZLIB
 	help
 	  GObject introspection is a middleware layer between C
@@ -25,6 +25,9 @@ config BR2_PACKAGE_GOBJECT_INTROSPECTION
 
 	  https://wiki.gnome.org/action/show/Projects/GObjectIntrospection
 
+comment "gobject-introspection needs python3"
+	depends on !BR2_PACKAGE_PYTHON3
+
 comment "gobject-introspection needs a glibc toolchain, gcc >= 4.9"
 	depends on BR2_USE_MMU
 	depends on BR2_PACKAGE_HOST_QEMU_ARCH_SUPPORTS
Signature · 1 line
2.24.1
#1 lore raw

PATCH 1/1 package/gobject-introspection: depend on python3

Adam, All,

On 2020-02-22 13:31 -0800, aduskett at gmail.com spake thusly:

Quoted 9 lines

From: Adam Duskett <[email protected]>

Currently, the Config.in file has the line:
select BR2_PACKAGE_PYTHON3 if !BR2_PACKAGE_PYTHON

This line is incorrect as gobject-introspection does not support python2. Instead, remove the select line and make python3 a dependency with a new message that explains that gobject-introspection requires python3.

Quoted 8 lines

Note:
gobject-introspection does not require python3 to run on the target; however, because the tools run in a qemu wrapper, a cross-compiled python3 must be installed to staging. As there is no current mechanism to tell Buildroot only to install python to staging, then python must also be installed unconditionally to the target when building gobject-introspection.

I've moved the big note to the code next to the select, and pushed to next, thanks.

Regards,
Yann E. MORIN.

Quoted 38 lines
---
 package/gobject-introspection/Config.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
package/gobject-introspection/Config.in +4 -1
index 0537cc0404..26ca5d6e3a 100644
@@ -9,11 +9,11 @@ config BR2_PACKAGE_GOBJECT_INTROSPECTION
 	# can be verified.
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
 	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on BR2_PACKAGE_PYTHON3
 	select BR2_PACKAGE_HOST_QEMU
 	select BR2_PACKAGE_HOST_QEMU_LINUX_USER_MODE
 	select BR2_PACKAGE_LIBFFI
 	select BR2_PACKAGE_LIBGLIB2
-	select BR2_PACKAGE_PYTHON3 if !BR2_PACKAGE_PYTHON
 	select BR2_PACKAGE_ZLIB
 	help
 	  GObject introspection is a middleware layer between C
@@ -25,6 +25,9 @@ config BR2_PACKAGE_GOBJECT_INTROSPECTION
 
 	  https://wiki.gnome.org/action/show/Projects/GObjectIntrospection
 
+comment "gobject-introspection needs python3"
+	depends on !BR2_PACKAGE_PYTHON3
+
 comment "gobject-introspection needs a glibc toolchain, gcc >= 4.9"
 	depends on BR2_USE_MMU
 	depends on BR2_PACKAGE_HOST_QEMU_ARCH_SUPPORTS
Signature · 6 lines
2.24.1

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  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.  |
'------------------------------^-------^------------------^--------------------'