[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



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.

> So really, using upstream's nss-config wouldn't break things more than
> they currently are, while it would fix the immediate multi-arch problem.
> All the while not breaking any reverse-dependency.

It would break. Even natively. However with a one-line patch removing
the unnecessary -L flag and the rpath, I think we can reach agreement
here. Thank you for your persistence.

Do you want to implement this your self or would you prefer a patch?

Helmut


Reply to: