Subject: Re: rpath and prefix option for binary packages
To: None <tech-pkg@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-pkg
Date: 12/08/2006 18:44:06
On Fri, Dec 08, 2006 at 06:01:52PM +0100, Anthony Mallet wrote:
> Correct me if I am wrong: I think that binary packages installed with
> pkg_add -p <path> with a different path than the one used to generate the
> package get installed with the wrong RPATH for shared libraries.

It also generates a wrong pkgdb, which is even worse.

> Has anyone already thought about some workaround for this?

It can be done very limited (like e.g. chrpath). It is not perfect and
like Hubert said, doesn't cover all the other path names built into
binaries. In general, I don't think it is worth the trouble.

Joerg