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

Re: Bug#737855: libnss3-dev: arch-dependent file in "Multi-Arch: same" package



On Mon, Aug 03, 2020 at 06:42:46AM +0200, Helmut Grohne wrote:
> Hi Mike,
> 
> On Mon, Aug 03, 2020 at 07:12:20AM +0900, Mike Hommey wrote:
> > Upstream's nss-config uses pkg-config for 3 things:
> > - getting exec_prefix. It's always /usr, independently of the pkg-config
> >   you use
> > - getting includedir. It's always /usr/include/nss, independently of the
> >   pkg-config you use
> 
> Agreed.
> 
> > - getting libdir. This varies dependending on the pkg-config you use,
> >   but so does the content of the current nss-config, and as was said
> >   up-thread, nothing uses that.
> 
> Subtly wrong. The --libdir flag is not used by anything in Debian.
> However the upstream nss-config --libs also emits:
> 
>     -Wl,-rpath-link,$libdir -L$libdir
> 
> So we are injecting a wrong library directory in some practical
> situations. The rpath is a difference to the current nss-config. I
> suspect that it alone would break stuff.

How so? a) it's not -rpath, and doesn't do something very relevant to
the produced binary except add a search path for dependencies of
dependencies b) LD happily ignores libraries it finds in the various
search paths when they are not for the right architecture.

The worst that happens is that you get warnings like:
/usr/bin/ld: skipping incompatible /usr/lib/i386-linux-gnu/libnss3.so when searching for -lnss3

Mike


Reply to: