When cleaning one of my system I fond out that dev-libs/gmime has an automagic dependency with net-libs/libnsl if the latter is already installed: > >>> Unmerging (1 of 1) net-libs/libnsl-1.3.0-r2... > >>> needed sym /usr/lib64/libnsl.so.2 > >>> needed obj /usr/lib64/libnsl.so.2.0.1 > > !!! existing preserved libs: > >>> package: net-libs/libnsl-1.3.0-r2 > * - /usr/lib64/libnsl.so.2 > * - /usr/lib64/libnsl.so.2.0.1 > * used by /usr/lib64/libgmime-3.0.so.0.206.1 (dev-libs/gmime-3.2.7) > Use emerge @preserved-rebuild to rebuild packages using these libraries Indeed, the configure script (configure.ac) of gmime has this check: > dnl ************************* > dnl *** Checks for libnsl *** > dnl ************************* > LIBNSL="" > AC_CHECK_LIB(nsl, getaddrinfo, LIBNSL="-lnsl") emerge -qpvO net-libs/libnsl dev-libs/gmime [ebuild R ] net-libs/libnsl-1.3.0-r2 USE="-static-libs" [ebuild R ] dev-libs/gmime-3.2.7 USE="crypt idn -doc -static-libs -test -vala" Reproducible: Always
These are the packages that depend on net-libs/libnsl on the aforementioned machine: > $ sudo -i equery d net-libs/libnsl > * These packages depend on net-libs/libnsl: > app-text/opensp-1.5.2-r3 (net-libs/libnsl:0) > sys-libs/pam-1.5.1_p20210622-r1 (nis ? net-libs/libnsl[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?])
libnsl is definitely not required to use the getaddrinfo function on systems running glibc. The faulty configure check should probably be fixed by using AC_SEARCH_LIBS instead of AC_CHECK_LIB. https://autotools.io/autoconf/finding.html
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=464d1ab3324d3d5a208fe04b6d5bde5855155e8a commit 464d1ab3324d3d5a208fe04b6d5bde5855155e8a Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2022-06-04 17:35:49 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2022-06-04 17:45:44 +0000 dev-libs/gmime: Version bump to 3.2.12 Closes: https://bugs.gentoo.org/811963 Signed-off-by: Matt Turner <mattst88@gentoo.org> dev-libs/gmime/Manifest | 1 + dev-libs/gmime/gmime-3.2.12.ebuild | 69 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+)