pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: perl v5.42 segfault



On Fri, Dec 12, 2025 at 10:32:03PM +0100, James Cook wrote:
> Thank you! Is that documented somewhere? (I tried reading
> https://www.netbsd.org/support/query-pr.html and at the page for my PR.)

Yes, here:

https://www.netbsd.org/support/send-pr.html#appending

You can get here from the main site via "Support" -> "Bug Reports".

> 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.)

I assume you had no work directory lying around? 'make install' would
re-use an existing one.

> 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]

# 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]
# 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.

So I can't reproduce this on my system, sorry.
 Thomas


Home | Main Index | Thread Index | Old Index