Bug#682926: nss: does not yield to CC or CPP, environment variables, multi-arch crossbuild support

Helmut Grohne helmut at subdivi.de
Wed May 6 20:28:32 UTC 2015

user helmutg at debian.org
usertags 682926 + rebootstrap
tags 682926 + patch

On Sun, Sep 01, 2013 at 08:14:42AM +0900, Mike Hommey wrote:
> How is that a problem? nsinstall is a tool used during the build to copy
> files.

You cannot execute host arch binaries during (cross) build. Thus
nsinstall must be built using the build arch compiler. The same applies
to coreconf.

Unfortunately, this is not the only problem with cross building nss.
debian/rules tries to execute the built shlibsign and modutil. These
cannot be executed either in a cross build.

I am attaching a patch that solves all of these problems. Please
consider applying it. If you have any questions regarding the patch,
don't hesitate to ask. It might not be the best solution, but it
actually makes things build.

Also note that the current package was potentially swallowing errors
from shlibsign by chaining them using ";". The patch replaces that with
$(call cmd,...) to make these potential errors visible.

Could you also consider fixing #699217?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nss_cross.diff
Type: text/x-diff
Size: 5687 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mozilla-maintainers/attachments/20150506/1b002aeb/attachment.diff>

More information about the pkg-mozilla-maintainers mailing list