pkgsrc-Users archive

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

Re: pkg_install fails when archivers/xz is installed



On 2020-07-28 17:15, Greg Troxel wrote:
Jason Bacon <outpaddling%yahoo.com@localhost> writes:

Does it actually use pkgsrc openssl or base?  Maybe I'm
misinterpreting something, but it seems to me that pkg_install can't
depend on any other packages because all packages depend on
pkg_install.  It seems to use only builtins and bundled deos:
You are right; it is using base.  Nothing else does because on 8 base is
too old.

So I'm not seeing why RPATH is pointing to ${PREFIX}/lib.
So separately from this entire situation being on thin ice, you may have
found a bug that should be found and fixed.
I can think of 3 possible solutions:

1. Point RPATH at the system lib directory (probably /usr/lib or /usr/lib64, but platform-dependent).

2. Don't set RPATH at all (I think this is what Joerg was suggesting).  System dirs should come first in the default path, but might be affected by other mechanisms such as ldconfig, LD_LIBRARY_PATH, etc.

3. Bundle all dependencies and either isolate them as shared libs in a special directory pointed to by RPATH (e.g. /usr/lib/pkg_install/) or statically link everything.  This has the potential advantage of consistent features and versions across all platforms.  It appears that currently some features like XZ support are enabled only if appropriate headers are found in the base system.




Home | Main Index | Thread Index | Old Index