pkgsrc-Users archive

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

Re: lang/rust still looks in /usr/pkg/



On Sat, Dec 12, 2020 at 09:47:19PM +0100, Havard Eidnes wrote:
> The normal pkgsrc build of the rust bootstrap kit embeds
> /usr/pkg/lib as part of the runpath, so that the curl library is
> found.
> 
> The problem is that as a package builder, I can't know what other
> people set their PREFIX to, and the package depends on a binary
> bootstrap (the previous-version rust bootstrap kit).  So I can't
> know a priori what to put in the runpath in the binary bootstrap.
> 
> One option is of course to tell people who set PREFIX to
> something else than /usr/pkg that they need to patch the binary
> bootstrap kit's executable with patchelf as per the above.  Not
> the best solution, but a workaround.
> 
> Regards,
> 
> - Håvard

Why can't the package run patchelf on the bootstrap kit's binaries
automatically? It's already aware of the user's PREFIX.


Home | Main Index | Thread Index | Old Index