bzip2: add libbz2.so.1.0 link for compat
PATCH 1/1 bzip2: add libbz2.so.1.0 link for compat
From: Randolph Sapp <[email protected]>
Add a link from libbz2.so.1.0 to libbz2.so.${PV} for compatibility with other distributions.
A handfull of distributions are still using the "Makefile-libbz2_so" to generate libbz2 and bzip2-shared. This creates a library with a soname of "libbz2.so.1.0". This library link is not provide by default in autotools builds so add one here as Gentoo does now [1].
This has been addressed upstream already, but there hasn't been a stable release since then [2].
[1] https://bugs.gentoo.org/338321
[2] https://gitlab.com/bzip2/bzip2/-/merge_requests/42
--- meta/recipes-extended/bzip2/bzip2_1.0.8.bb | 5 +++++ 1 file changed, 5 insertions(+)
meta/recipes-extended/bzip2/bzip2_1.0.8.bb +5 -0
@@ -62,6 +62,11 @@ do_install_ptest () { sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile } +# add the following link for cross-distro compatibility +do_install:append () { + ln -s libbz2.so.${PV} "${D}${libdir}/libbz2.so.1.0" +} + FILES:libbz2 = "${libdir}/lib*${SOLIBS}" RDEPENDS:${PN}-ptest += "make bash"
Signature · 1 line
2.44.0
It's better to backport the upstream patch, as nobody's going to remember why do_install snippet is there, or to remove it when there's a new release (if it doesn't cause installation conflicts).
Alex
Quoted 50 lines · Randolph Sapp via lists.openembedded.org
From: Randolph Sapp <[email protected]>
Add a link from libbz2.so.1.0 to libbz2.so.${PV} for compatibility with other distributions.
A handfull of distributions are still using the "Makefile-libbz2_so" to generate libbz2 and bzip2-shared. This creates a library with a soname of "libbz2.so.1.0". This library link is not provide by default in autotools builds so add one here as Gentoo does now [1].
This has been addressed upstream already, but there hasn't been a stable release since then [2].
[1] https://bugs.gentoo.org/338321
[2] https://gitlab.com/bzip2/bzip2/-/merge_requests/42Signed-off-by Randolph Sapp <[email protected]>--- meta/recipes-extended/bzip2/bzip2_1.0.8.bb | 5 +++++ 1 file changed, 5 insertions(+)meta/recipes-extended/bzip2/bzip2_1.0.8.bb +5
-1@@ -62,6 +62,11 @@ do_install_ptest () { sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile } +# add the following link for cross-distro compatibility +do_install:append () { + ln -s libbz2.so.${PV} "${D}${libdir}/libbz2.so.1.0" +} + FILES:libbz2 = "${libdir}/lib*${SOLIBS}" RDEPENDS:${PN}-ptest += "make bash" --2.44.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197252): https://lists.openembedded.org/g/openembedded-core/message/197252
Mute This Topic: https://lists.openembedded.org/mt/104959821/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 5 lines · Alexander Kanavin
It's better to backport the upstream patch, as nobody's going to remember why
do_installsnippet is there, or to remove it when there's a new release (if it doesn't cause installation conflicts).Alex
I would backport the upstream patch, if it wasn't dependant on a migration to Cmake. I feel like that's a bit much.
Randolph
Quoted 52 lines
Quoted 50 lines · Randolph Sapp via lists.openembedded.org
From: Randolph Sapp <[email protected]>
Add a link from libbz2.so.1.0 to libbz2.so.${PV} for compatibility with other distributions.
A handfull of distributions are still using the "Makefile-libbz2_so" to generate libbz2 and bzip2-shared. This creates a library with a soname of "libbz2.so.1.0". This library link is not provide by default in autotools builds so add one here as Gentoo does now [1].
This has been addressed upstream already, but there hasn't been a stable release since then [2].
[1] https://bugs.gentoo.org/338321
[2] https://gitlab.com/bzip2/bzip2/-/merge_requests/42Signed-off-by Randolph Sapp <[email protected]>--- meta/recipes-extended/bzip2/bzip2_1.0.8.bb | 5 +++++ 1 file changed, 5 insertions(+)meta/recipes-extended/bzip2/bzip2_1.0.8.bb +5
-1@@ -62,6 +62,11 @@ do_install_ptest () { sed -i -e "s|^Makefile:|_Makefile:|" ${D}${PTEST_PATH}/Makefile } +# add the following link for cross-distro compatibility +do_install:append () { + ln -s libbz2.so.${PV} "${D}${libdir}/libbz2.so.1.0" +} + FILES:libbz2 = "${libdir}/lib*${SOLIBS}" RDEPENDS:${PN}-ptest += "make bash" --2.44.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#197252): https://lists.openembedded.org/g/openembedded-core/message/197252
Mute This Topic: https://lists.openembedded.org/mt/104959821/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 14 lines · On Fri, 2024-03-15 at 19:19 -0500, [email protected] wrote:
From: Randolph Sapp <[email protected]>
Add a link from libbz2.so.1.0 to libbz2.so.${PV} for compatibility with
other distributions.A handfull of distributions are still using the "Makefile-libbz2_so" to generate libbz2 and bzip2-shared. This creates a library with a soname of "libbz2.so.1.0". This library link is not provide by default in autotools builds so add one here as Gentoo does now [1].
This has been addressed upstream already, but there hasn't been a stable release since then [2].
Quoted 7 lines
[1] https://bugs.gentoo.org/338321
[2] https://gitlab.com/bzip2/bzip2/-/merge_requests/42Signed-off-by Randolph Sapp <[email protected]>---
meta/recipes-extended/bzip2/bzip2_1.0.8.bb | 5 +++++1 file changed, 5 insertions(+)
I guess by "cross distro", you mean that you have some binaries which need to run on multiple distros, some of which have this naming and some of which do not?
I am a bit worried about this as it is the kind of thing we add, then totally forget about removing so it gets carried even after it no longer makes sense (and the library name/version changes again for example).
Ugly as it may be, I'm wondering if there should be a separate recipe to handle this link which the binaries could depend upon. Even a separate package for it and an error if the target lib doesn't exist might be better.
Cheers,
Richard
Quoted 32 lines · Richard Purdie
Quoted 14 lines · On Fri, 2024-03-15 at 19:19 -0500, [email protected] wrote:
From: Randolph Sapp <[email protected]>
Add a link from libbz2.so.1.0 to libbz2.so.${PV} for compatibility with
other distributions.A handfull of distributions are still using the "Makefile-libbz2_so" to generate libbz2 and bzip2-shared. This creates a library with a soname of "libbz2.so.1.0". This library link is not provide by default in autotools builds so add one here as Gentoo does now [1].
This has been addressed upstream already, but there hasn't been a stable release since then [2].
Quoted 7 lines
[1] https://bugs.gentoo.org/338321
[2] https://gitlab.com/bzip2/bzip2/-/merge_requests/42Signed-off-by Randolph Sapp <[email protected]>---
meta/recipes-extended/bzip2/bzip2_1.0.8.bb | 5 +++++1 file changed, 5 insertions(+)I guess by "cross distro", you mean that you have some binaries which need to run on multiple distros, some of which have this naming and some of which do not?
I am a bit worried about this as it is the kind of thing we add, then totally forget about removing so it gets carried even after it no longer makes sense (and the library name/version changes again for example).
Quoted 8 lines
Ugly as it may be, I'm wondering if there should be a separate recipe to handle this link which the binaries could depend upon. Even a separate package for it and an error if the target lib doesn't exist might be better.
Cheers,
Richard
Yeah, anything compiled on Debian/Arch will run into issues looking up that so name when running under Yocto.
Oddly enough though, both Fedora and Gentoo seem to be using the new soname. I'm not entirely sure if this is actually that common now. Maybe this should be ignored.