python3: RDEPEND on libgcc
PATCH 1/1 python3: RDEPEND on libgcc
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
--- meta/recipes-devtools/python/python3_3.7.5.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-devtools/python/python3_3.7.5.bb +2 -0
@@ -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)}"
Signature · 1 line
2.23.0
PATCH v2 1/1 python3: RDEPEND on libgcc
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
--- meta/recipes-devtools/python/python3_3.7.5.bb | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-devtools/python/python3_3.7.5.bb +2 -0
@@ -306,6 +306,8 @@ RPROVIDES_${PN}-venv += "python3-pyvenv" PACKAGES =+ "libpython3 libpython3-staticdev" FILES_libpython3 = "${libdir}/libpython*.so.*" FILES_libpython3-staticdev += "${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_BINABI}-*/libpython${PYTHON_BINABI}.a" +# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395 +RDEPENDS_libpython3 += "libgcc" INSANE_SKIP_${PN}-dev += "dev-elf" # catch all the rest (unsorted)
Signature · 1 line
2.23.0
Quoted 20 lines · Joshua Watt
Python uses features of glibc that require it to dynamically load (i.e.
dlopen())libgcc_sat 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/issue37395Signed-off-by Joshua Watt <[email protected]>--- meta/recipes-devtools/python/python3_3.7.5.bb | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-devtools/python/python3_3.7.5.bb +0
-0
meta/recipes-devtools/python/python3_3.7.5.bb RPROVIDES_${PN}-venv += "python3-pyvenv" · line 310
Quoted 5 lines
meta/recipes-devtools/python/python3_3.7.5.bb +2
-0@@ -306,6 +306,8 @@ RPROVIDES_${PN}-venv += "python3-pyvenv" PACKAGES =+ "libpython3 libpython3-staticdev" FILES_libpython3 = "${libdir}/libpython*.so.*" FILES_libpython3-staticdev += "${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_BINABI}-*/libpython${PYTHON_BINABI}.a" +# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395 +RDEPENDS_libpython3 += "libgcc"
while this is glibc specific change depending on gcc runtime, it seems we should only apply is when we use gcc runtime and glibc
glibc part is easy just use libc-glibc override for gcc runtime piece perhaps, its good to introduce, virtual/compiler-runtime and let libgcc
provide it by default, but let apps depend on virtual/compiler-runtime
Quoted 11 lines
meta/recipes-devtools/python/python3_3.7.5.bb +0
-1INSANE_SKIP_${PN}-dev += "dev-elf" # catch all the rest (unsorted) --2.23.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 31 lines · Khem Raj
Quoted 20 lines · Joshua Watt
Python uses features of glibc that require it to dynamically load (i.e.
dlopen())libgcc_sat 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/issue37395Signed-off-by Joshua Watt <[email protected]>--- meta/recipes-devtools/python/python3_3.7.5.bb | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-devtools/python/python3_3.7.5.bb +0
-0meta/recipes-devtools/python/python3_3.7.5.bb RPROVIDES_${PN}-venv += "python3-pyvenv" · line 310
Quoted 5 lines
meta/recipes-devtools/python/python3_3.7.5.bb +2
-0@@ -306,6 +306,8 @@ RPROVIDES_${PN}-venv += "python3-pyvenv" PACKAGES =+ "libpython3 libpython3-staticdev" FILES_libpython3 = "${libdir}/libpython*.so.*" FILES_libpython3-staticdev += "${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_BINABI}-*/libpython${PYTHON_BINABI}.a" +# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395 +RDEPENDS_libpython3 += "libgcc"while this is glibc specific change depending on gcc runtime, it seems we should only apply is when we use gcc runtime and glibc
Quoted 4 lines
glibc part is easy just use libc-glibc override for gcc runtime piece perhaps, its good to introduce, virtual/compiler-runtime and let libgcc
provide it by default, but let apps depend on virtual/compiler-runtime
I'll use the libc-glibc override so that it's specific to glibc, but I think the virtual/compiler-runtime might be a bit premature, unless you know of a usecase where it would currently be necessary?
Quoted 13 lines
Quoted 13 lines
meta/recipes-devtools/python/python3_3.7.5.bb +0
-1INSANE_SKIP_${PN}-dev += "dev-elf" # catch all the rest (unsorted) --2.23.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 33 lines · Joshua Watt
Quoted 31 lines · Khem Raj
Quoted 20 lines · Joshua Watt
Python uses features of glibc that require it to dynamically load (i.e.
dlopen())libgcc_sat 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/issue37395Signed-off-by Joshua Watt <[email protected]>--- meta/recipes-devtools/python/python3_3.7.5.bb | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-devtools/python/python3_3.7.5.bb +0
-0meta/recipes-devtools/python/python3_3.7.5.bb RPROVIDES_${PN}-venv += "python3-pyvenv" · line 310
Quoted 5 lines
meta/recipes-devtools/python/python3_3.7.5.bb +2
-0@@ -306,6 +306,8 @@ RPROVIDES_${PN}-venv += "python3-pyvenv" PACKAGES =+ "libpython3 libpython3-staticdev" FILES_libpython3 = "${libdir}/libpython*.so.*" FILES_libpython3-staticdev += "${prefix}/lib/python${PYTHON_MAJMIN}/config-${PYTHON_BINABI}-*/libpython${PYTHON_BINABI}.a" +# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395 +RDEPENDS_libpython3 += "libgcc"while this is glibc specific change depending on gcc runtime, it seems we should only apply is when we use gcc runtime and glibc
Quoted 9 lines
Quoted 4 lines
glibc part is easy just use libc-glibc override for gcc runtime piece perhaps, its good to introduce, virtual/compiler-runtime and let libgcc
provide it by default, but let apps depend on virtual/compiler-runtimeI'll use the libc-glibc override so that it's specific to glibc, but I think the virtual/compiler-runtime might be a bit premature, unless you know of a usecase where it would currently be necessary?
eg. one might use compiler-rt to provide built-ins and use llvm-libunwind for unwinding info not rely on libgcc, one can say it can then provide libgcc and substitute it. However, it will be better if it was in design to be able to do that from top.
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
meta/recipes-devtools/python/python3_3.7.5.bb +0
-1INSANE_SKIP_${PN}-dev += "dev-elf" # catch all the rest (unsorted) --2.23.0
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
✗ patchtest: failure for python3: RDEPEND on libgcc (rev2)
In reply to Joshua Watt== Series Details ==
Series: python3: RDEPEND on libgcc (rev2)
Revision: 2
URL : https://patchwork.openembedded.org/series/21797/
State : failure
== Summary ==
Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:
* Issue Series does not apply on top of target branch [test_series_merge_on_head]
Suggested fix Rebase your series on top of targeted branch
Targeted branch master (currently at df107f3a14)
If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).
---
Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe