[Buildroot] [git commit branch/2020.02.x] package/python3: add optional dependency to gettext
Peter Korsgaard
peter at korsgaard.com
Wed Apr 29 21:00:37 UTC 2020
commit: https://git.buildroot.net/buildroot/commit/?id=94776e7bc3ace18cfe186999ada7ae1858c513de
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x
Tested using this defconfig:
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
BR2_SYSTEM_ENABLE_NLS=y
BR2_PACKAGE_PYTHON3=y
Without this patch:
$ readelf -a output/target/usr/lib/libpython3.8.so.1.0 | grep NEEDED
0x00000001 (NEEDED) Shared library: [libc.so.0]
With this patch:
$ readelf -a output/target/usr/lib/libpython3.8.so.1.0 | grep NEEDED
0x00000001 (NEEDED) Shared library: [libintl.so.8]
0x00000001 (NEEDED) Shared library: [libc.so.0]
Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 2a36dad00823ec3bcefdd3f82cfe75d55c0caeb2)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
package/python3/python3.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/python3/python3.mk b/package/python3/python3.mk
index d12237300d..2656037efd 100644
--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -146,6 +146,10 @@ ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
PYTHON3_CONF_ENV += ac_cv_func_wcsftime=no
endif
+ifeq ($(BR2_PACKAGE_GETTEXT_PROVIDES_LIBINTL),y)
+PYTHON3_DEPENDENCIES += gettext
+endif
+
PYTHON3_CONF_OPTS += \
--without-ensurepip \
--without-cxx-main \
More information about the buildroot
mailing list