pkgsrc-Users archive

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

Re: lang/python27: (patch) RPATH breaking build with previous installed python27



To use DT_RUNPATH, you have to use --enable-new-dtags along with
--rpath or LD_RUN_PATH.

I agree that having DT_RPATH higher priority than LD_LIBRARY_PATH was
an idiotic thing.  Luckily Linux (and probably Hurd, since it also
uses glibc) are the only OSs I know of that do this.

-Dustin

On Sun, Feb 16, 2014 at 7:57 PM, Joerg Sonnenberger
<joerg%britannica.bec.de@localhost> wrote:
> On Sun, Feb 16, 2014 at 07:54:15PM -0500, Greg Troxel wrote:
>>
>> Matthias Ferdinand <mf+ml.pkgsrc-users%netzwerkagentursaarland.de@localhost>
>> writes:
>>
>> > upgrading python27 from 2.7.3nb3 to 2.7.6nb2 failed on my Linux
>> > installations (except for some older than ~6 years).
>> >
>> > On Linux at least, RPATH has precedence over LD_LIBRARY_PATH. Pkgsrc
>> > uses RPATH to direct its binaries to the pkgsrc installed libraries
>> > instead of the system libraries.
>>
>> RPATH taking precedence over LD_LIBRARY_PATH sounds broken.  Can you
>> point to any specfications that say this is reasonable?
>
> Some moron decided that the semantics used e.g. by the BSD should be
> avaiable via a different mechanism, so DT_RPATH is broken on Linux and
> DT_RUNPATH should be used. Sadly, I have no idea how to instruct ld to
> use one or the other.
>
> Joerg


Home | Main Index | Thread Index | Old Index