summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-05-05 14:21:44 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-05-09 07:50:14 +0100
commit2942c7f2c16e5b503c9f6e4febd50f4ad7eb598d (patch)
tree8db817b1d063e4ff1613060e87672afe31438bca
parentee2f28c91a33e37de954d78eb3bde7ae1c0a89c5 (diff)
downloadpoky-2942c7f2c16e5b503c9f6e4febd50f4ad7eb598d.tar.gz
python3: use system expat
Instead of statically linking to an integrated expat which may not be updated to fix security issues, dynamically link to the system expat. (From OE-Core rev: 4c63942a47f6d10eda6ed6718bfcfc89396b7d67) (From OE-Core rev: 2621924191fa516c66eb42295ec4c68820c0ed17) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/python/python3_3.11.2.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/python/python3_3.11.2.bb b/meta/recipes-devtools/python/python3_3.11.2.bb
index 810f0c2e00..421a305e22 100644
--- a/meta/recipes-devtools/python/python3_3.11.2.bb
+++ b/meta/recipes-devtools/python/python3_3.11.2.bb
@@ -72,11 +72,11 @@ ALTERNATIVE_LINK_NAME[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config
72ALTERNATIVE_TARGET[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX}" 72ALTERNATIVE_TARGET[python3-config] = "${bindir}/python${PYTHON_MAJMIN}-config-${MULTILIB_SUFFIX}"
73 73
74 74
75DEPENDS = "bzip2-replacement-native libffi bzip2 openssl sqlite3 zlib virtual/libintl xz virtual/crypt util-linux-libuuid libtirpc libnsl2 autoconf-archive-native ncurses" 75DEPENDS = "bzip2-replacement-native expat libffi bzip2 openssl sqlite3 zlib virtual/libintl xz virtual/crypt util-linux-libuuid libtirpc libnsl2 autoconf-archive-native ncurses"
76DEPENDS:append:class-target = " python3-native" 76DEPENDS:append:class-target = " python3-native"
77DEPENDS:append:class-nativesdk = " python3-native" 77DEPENDS:append:class-nativesdk = " python3-native"
78 78
79EXTRA_OECONF = " --without-ensurepip --enable-shared --with-platlibdir=${baselib}" 79EXTRA_OECONF = " --without-ensurepip --enable-shared --with-platlibdir=${baselib} --with-system-expat"
80EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}" 80EXTRA_OECONF:append:class-native = " --bindir=${bindir}/${PN}"
81EXTRA_OECONF:append:class-target = " --with-build-python=nativepython3" 81EXTRA_OECONF:append:class-target = " --with-build-python=nativepython3"
82EXTRA_OECONF:append:class-nativesdk = " --with-build-python=nativepython3" 82EXTRA_OECONF:append:class-nativesdk = " --with-build-python=nativepython3"