Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 638518 - dev-perl/Net-Patricia-1.220.0-r1 stabilization
Summary: dev-perl/Net-Patricia-1.220.0-r1 stabilization
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: x86 Linux
: Normal normal
Assignee: Gentoo Perl team
URL:
Whiteboard: was: dev-perl/Net-Patricia-1.220.0 - ...
Keywords: STABLEREQ
Depends on:
Blocks: glibc-libnsl glibc-2.26-stable
  Show dependency tree
 
Reported: 2017-11-22 20:50 UTC by Bozhidar Hristov
Modified: 2018-07-15 03:40 UTC (History)
1 user (show)

See Also:
Package list:
dev-perl/Net-Patricia-1.220.0-r1
Runtime testing required: ---
stable-bot: sanity-check+


Attachments
emerge --info '=dev-perl/Net-Patricia-1.220.0::gentoo' (file_638518.txt,5.20 KB, text/plain)
2017-11-22 20:50 UTC, Bozhidar Hristov
no flags Details
Build log (file_638518.txt,4.09 KB, text/plain)
2017-11-22 20:51 UTC, Bozhidar Hristov
no flags Details
second build log (file_638518.txt,4.12 KB, text/plain)
2017-11-25 06:26 UTC, Bozhidar Hristov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bozhidar Hristov 2017-11-22 20:50:49 UTC
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
Comment 1 Bozhidar Hristov 2017-11-22 20:51:49 UTC
Created attachment 505854 [details]
Build log
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-11-23 04:50:54 UTC
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.
Comment 3 Bozhidar Hristov 2017-11-23 08:26:59 UTC
(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.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2017-11-23 22:05:09 UTC
> 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?!
Comment 5 Bozhidar Hristov 2017-11-25 06:26:23 UTC
Created attachment 506468 [details]
second build log

this is second build log.
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-12-14 04:15:51 UTC
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.
Comment 7 Larry the Git Cow gentoo-dev 2017-12-14 05:29:54 UTC
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(+)}
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2018-04-30 16:02:51 UTC
Arches please stabilize dev-perl/Net-Patricia-1.220.0-r1
Comment 9 Larry the Git Cow gentoo-dev 2018-05-01 08:07:26 UTC
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(-)
Comment 10 Thomas Deutschmann (RETIRED) gentoo-dev 2018-05-02 16:34:07 UTC
x86 stable
Comment 11 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-05-03 09:41:10 UTC
amd64 stable
Comment 12 Sergei Trofimovich (RETIRED) gentoo-dev 2018-05-04 19:46:38 UTC
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.
Comment 13 Larry the Git Cow gentoo-dev 2018-05-08 06:23:54 UTC
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(-)
Comment 14 Andreas K. Hüttel archtester gentoo-dev 2018-05-11 19:18:19 UTC
ping pretty please!!!
Comment 15 Tobias Klausmann (RETIRED) gentoo-dev 2018-05-14 08:22:03 UTC
Stable on alpha.
Comment 16 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-05-25 21:07:42 UTC
arm/ppc/ppc64 stable
Comment 17 Larry the Git Cow gentoo-dev 2018-07-15 03:40:29 UTC
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(-)