Can this be a proper patch please? Alex
On Sat, 19 Oct 2024 at 20:48, Khem Raj via lists.openembedded.org <[email protected]> wrote: > > find_library API depends on platform to provide ldconfig, ld, gcc, objdump > etc, so either we add these dependencies or avoid them by computing the > libarchive library name during build, which we can be done. > > This ensures that ffi module works with musl as well as glibc equally > as musl does not provide ldconfig like glibc does > > Signed-off-by: Khem Raj <[email protected]> > --- > meta/recipes-devtools/python/python3-libarchive-c_5.1.bb | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb > b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb > index 3116c6b62ec..510e2d9159c 100644 > --- a/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb > +++ b/meta/recipes-devtools/python/python3-libarchive-c_5.1.bb > @@ -16,6 +16,14 @@ inherit pypi setuptools3 ptest > > SRC_URI[sha256sum] = > "7bcce24ea6c0fa3bc62468476c6d2f6264156db2f04878a372027c10615a2721" > > +DEPENDS += "patchelf-native libarchive" > +# Avoid using find_library API which needs ldconfig and ld/objdump > +# https://docs.python.org/3/library/ctypes.html#ctypes-reference > +# > +do_configure:append() { > + sed -i -e "s|find_library('archive')|'${libdir}/$(patchelf > --print-soname ${STAGING_LIBDIR}/libarchive.so)'|" ${S}/libarchive/ffi.py > +} > + > RDEPENDS:${PN} += "\ > libarchive \ > python3-ctypes \ > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#206105): https://lists.openembedded.org/g/openembedded-core/message/206105 Mute This Topic: https://lists.openembedded.org/mt/109104795/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
