Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 811963 - dev-libs/gmime-3.2.7: automagic dependency on net-libs/libnsl:0/2
Summary: dev-libs/gmime-3.2.7: automagic dependency on net-libs/libnsl:0/2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://github.com/jstedfast/gmime/pu...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-07 10:27 UTC by MT
Modified: 2022-06-04 17:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description MT 2021-09-07 10:27:39 UTC
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
Comment 1 MT 2021-09-07 11:05:09 UTC
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(-)?])
Comment 2 Mike Gilbert gentoo-dev 2021-09-07 16:03:37 UTC
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
Comment 3 Larry the Git Cow gentoo-dev 2022-06-04 17:45:55 UTC
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(+)