pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: perl v5.42 segfault
> > (I forgot to bump PKGREVISION in that patch, but I don't know how to
> > comment on the gnats report now that I've submitted it.)
>
> Just send an email to gnats-bugs%NetBSD.org@localhost with 'PR 59831' at the
> start of the subject line and it should end up in the right place.
Thank you! Is that documented somewhere? (I tried reading
https://www.netbsd.org/support/query-pr.html and at the page for my PR.)
> > The perl I built with that patch is kind of broken, but I think that's
> > unrelated, because even before patching it, my attempts to build perl
> > from pkgsrc haven't really worked: see my post from earlier this year
> > at https://marc.info/?l=pkgsrc-users&m=174848776417600&w=2
> > (Summary: I am getting 'Shared object "libperl.so" not found' errors.)
>
> I haven't seen this one. Perhaps the rpath is not set correctly when
> PREFIX is not /usr/pkg, i.e. /usr/pkg/ is hardcoded somewhere.
It is happening to me even with the default /usr/pkg.
I just tried again with these steps:
1. Make a new clone of the pkgsrc git mirror at commit ac347f1c (Dec 9).
2. pkg_delete -f perl (to remove the binary package I had installed)
3. In the lang/perl5 directory, "make install" and give my root password
when needed. (I skipped bootstrapping since I'm on NetBSD and I want it
under /usr/pkg; hope that's ok.)
And then for example Cwd.so doesn't have the full RPATH, even though the perl binary does:
ucl falsifian $ readelf -d /usr/pkg/lib/perl5/5.42.0/x86_64-netbsd-thread-multi/auto/Cwd/Cwd.so|grep -i rpath
0x000000000000000f (RPATH) Library rpath: [/usr/pkg/lib]
ucl falsifian $ readelf -d /usr/pkg/bin/perl|grep -i rpath
0x000000000000000f (RPATH) Library rpath: [/usr/pkg/lib:/usr/pkg/lib/perl5/5.42.0/x86_64-netbsd-thread-multi/CORE]
Compared to what I see after using pkgin to get back the binary package
(from a quarterly branch):
ucl falsifian $ readelf -d /usr/pkg/lib/perl5/5.42.0/x86_64-netbsd-thread-multi/auto/Cwd/Cwd.so|grep -i rpath
0x000000000000000f (RPATH) Library rpath: [/usr/pkg/lib:/usr/pkg/lib/perl5/5.42.0/x86_64-netbsd-thread-multi/CORE]
ucl falsifian $ readelf -d /usr/pkg/bin/perl|grep -i rpath
0x000000000000000f (RPATH) Library rpath: [/usr/pkg/lib:/usr/pkg/lib/perl5/5.42.0/x86_64-netbsd-thread-multi/CORE]
I'm afraid I know almost nothing about how pkgsrc handles RPATHs.
Home |
Main Index |
Thread Index |
Old Index