Created attachment 505852 [details] emerge --info '=dev-perl/Net-Patricia-1.220.0::gentoo' Hello this is my very first bug I fill - I'm upgrading 4 year old PC (after few days of solving hard blocks) - This happened when emerging dev-perl/Net-Patricia-1.220.0::gentoo /usr/lib/gcc/i686-pc-linux-gnu/5.4.0/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lnsl ebuild N ] dev-perl/Net-Patricia-1.220.0 USE="ipv6" Complete build log: https://pastebin.com/X0Kxhr5R
Created attachment 505854 [details] Build log
This is likely an issue with Perl auto-adding -l flags during its own build phase, and subsequently, re-using those -l flags in a pkgconfig sort of manner when packages are built against it. If: perl -V | grep nsl Emits "-lnsl" somewhere in it, this is likely the case. To rule out this possibility, please recompile dev-lang/perl. If pain persists after doing this, please get back to us.
(In reply to Kent Fredric (IRC: kent\n) from comment #2) > This is likely an issue with Perl auto-adding -l flags during its own build > phase, and subsequently, re-using those -l flags in a pkgconfig sort of > manner > when packages are built against it. > > If: > > perl -V | grep nsl > > Emits "-lnsl" somewhere in it, this is likely the case. > > To rule out this possibility, please recompile dev-lang/perl. > > If pain persists after doing this, please get back to us. Before re-emerging perl perl -V | grep nsl outputted nsl. After re-emerging no more nsl in perl -V output - but the problem remains the same.
> Before re-emerging perl perl -V | grep nsl outputted nsl. > After re-emerging no more nsl in perl -V output Heh. So we have several bugs here. First bug: dev-lang/perl has an automagic dependency on the NIS code from glibc. Second bug: (likely,) dev-lang/perl doesn't find the NIS code for glibc-2.26 + libtirpc + libnsl. - but the problem remains > the same. Just to make sure, could you add a new full build log please?!
Created attachment 506468 [details] second build log this is second build log.
Turns out this is much more obvious; https://metacpan.org/source/GRUBER/Net-Patricia-1.22/Makefile.PL#L8 I'm not actually sure why its there, it compiles just fine with that stripped and the library missing, and passes tests, and doesn't end up linking against libnsl even when its present and doesn't use any of its headers, so ... gonna be shipping a possible fix soon.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c92e5501462f4a2409efd2ecebb54e31afe99a4 commit 8c92e5501462f4a2409efd2ecebb54e31afe99a4 Author: Kent Fredric <kentnl@gentoo.org> AuthorDate: 2017-12-14 05:28:12 +0000 Commit: Kent Fredric <kentnl@gentoo.org> CommitDate: 2017-12-14 05:28:54 +0000 dev-perl/Net-Patricia: Remove linking against libnsl bug #638518 - EAPI6 - Enable tests - Patch out apparently erroneous use of -lnsl Bug: https://bugs.gentoo.org/638518 Package-Manager: Portage-2.3.18, Repoman-2.3.6 .../Net-Patricia/Net-Patricia-1.220.0-r1.ebuild | 27 ++++++++++++++++++++ .../files/Net-Patricia-1.22-no-lnsl.patch | 29 ++++++++++++++++++++++ 2 files changed, 56 insertions(+)}
Arches please stabilize dev-perl/Net-Patricia-1.220.0-r1
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7054e8d92c6c4873e1ff4d9dc2d2f286ffefaf95 commit 7054e8d92c6c4873e1ff4d9dc2d2f286ffefaf95 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2018-05-01 07:44:37 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-05-01 08:07:03 +0000 dev-perl/Net-Patricia: stable 1.220.0-r1 for ia64, bug #638518 Bug: https://bugs.gentoo.org/638518 Package-Manager: Portage-2.3.31, Repoman-2.3.9 RepoMan-Options: --include-arches="ia64" dev-perl/Net-Patricia/Net-Patricia-1.220.0-r1.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
x86 stable
amd64 stable
commit f641f5bde3404fc53a90c2c3f4615beea0c5435c Author: Jeroen Roovers <jer@gentoo.org> Date: Fri May 4 14:57:16 2018 +0200 dev-perl/Net-Patricia: Stable for HPPA too.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41360a3da20f2dc58b639f8f4de90bd594137f50 commit 41360a3da20f2dc58b639f8f4de90bd594137f50 Author: Rolf Eike Beer <eike@sf-mail.de> AuthorDate: 2018-05-03 21:03:50 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2018-05-08 06:23:23 +0000 dev-perl/Net-Patricia: stable 1.220.0-r1 for sparc Bug: https://bugs.gentoo.org/638518 Package-Manager: Portage-2.3.24, Repoman-2.3.6 RepoMan-Options: --include-arches="sparc" dev-perl/Net-Patricia/Net-Patricia-1.220.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ping pretty please!!!
Stable on alpha.
arm/ppc/ppc64 stable
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e1cb2f64051abc1d6b559cf3377b0c25865d0a2 commit 8e1cb2f64051abc1d6b559cf3377b0c25865d0a2 Author: Kent Fredric <kentnl@gentoo.org> AuthorDate: 2018-07-15 03:23:01 +0000 Commit: Kent Fredric <kentnl@gentoo.org> CommitDate: 2018-07-15 03:40:07 +0000 dev-perl/Net-Patricia: Cleanup old versions re bug #638518 Bug: https://bugs.gentoo.org/638518 Package-Manager: Portage-2.3.40, Repoman-2.3.9 dev-perl/Net-Patricia/Manifest | 1 - .../Net-Patricia/Net-Patricia-1.210.0-r1.ebuild | 28 ---------------------- dev-perl/Net-Patricia/Net-Patricia-1.220.0.ebuild | 28 ---------------------- 3 files changed, 57 deletions(-)