Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] python3: RDEPEND on libgcc
@ 2019-12-30 20:59 Joshua Watt
  2019-12-31 19:06 ` [PATCH v2] " Joshua Watt
  2019-12-31 19:32 ` ✗ patchtest: failure for python3: RDEPEND on libgcc (rev2) Patchwork
  0 siblings, 2 replies; 6+ messages in thread
From: Joshua Watt @ 2019-12-30 20:59 UTC (permalink / raw)
  To: openembedded-core

Python uses features of glibc that require it to dynamically load (i.e.
dlopen()) libgcc_s at runtime. However, since this isn't a link time
dependency, it doesn't get picked up automatically by bitbake so
manually add it to RDEPENDS.

There is an outstanding bug in Python to make it explicitly link against
libgcc at link time which would remove the need for this. See:
https://bugs.python.org/issue37395

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 meta/recipes-devtools/python/python3_3.7.5.bb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/python/python3_3.7.5.bb b/meta/recipes-devtools/python/python3_3.7.5.bb
index 57eaaea5e7..4c8d5134a7 100644
--- a/meta/recipes-devtools/python/python3_3.7.5.bb
+++ b/meta/recipes-devtools/python/python3_3.7.5.bb
@@ -336,6 +336,8 @@ FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN} ${libdir}/python${PYTHON_MA
 PACKAGES += "${PN}-man"
 FILES_${PN}-man = "${datadir}/man"
 
+# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395
+RDEPENDS_${PN} = "libgcc"
 RDEPENDS_${PN}-ptest = "${PN}-modules ${PN}-tests unzip bzip2 libgcc tzdata-europe coreutils sed"
 RDEPENDS_${PN}-ptest_append_libc-glibc = " locale-base-tr-tr.iso-8859-9"
 RDEPENDS_${PN}-tkinter += "${@bb.utils.contains('PACKAGECONFIG', 'tk', 'tk tk-lib', '', d)}"
-- 
2.23.0



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

end of thread, other threads:[~2019-12-31 20:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-30 20:59 [PATCH] python3: RDEPEND on libgcc Joshua Watt
2019-12-31 19:06 ` [PATCH v2] " Joshua Watt
2019-12-31 19:11   ` Khem Raj
2019-12-31 19:25     ` Joshua Watt
2019-12-31 20:31       ` Khem Raj
2019-12-31 19:32 ` ✗ patchtest: failure for python3: RDEPEND on libgcc (rev2) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox