Bug#782983: FTCBFS: compiles build tools with host arch compiler

Helmut Grohne helmut at subdivi.de
Mon Apr 20 05:36:15 UTC 2015


Source: nspr
Version: 2:4.10.7-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

nspr cannot be cross-built at the moment, because it compiles its build
tools with the host arch compiler and subsequently fails to execute
them.

Please consider applying the attached patch.

Helmut
-------------- next part --------------
diff -Nru nspr-4.10.7/debian/changelog nspr-4.10.7/debian/changelog
--- nspr-4.10.7/debian/changelog	2014-08-24 01:25:30.000000000 +0200
+++ nspr-4.10.7/debian/changelog	2015-02-27 00:04:41.000000000 +0100
@@ -1,3 +1,10 @@
+nspr (2:4.10.7-1.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Use cc to compile build tools. Closes: #-1
+
+ -- Helmut Grohne <helmut at subdivi.de>  Fri, 27 Feb 2015 00:04:23 +0100
+
 nspr (2:4.10.7-1) unstable; urgency=medium
 
   * New upstream release.
diff -Nru nspr-4.10.7/debian/patches/cross.diff nspr-4.10.7/debian/patches/cross.diff
--- nspr-4.10.7/debian/patches/cross.diff	1970-01-01 01:00:00.000000000 +0100
+++ nspr-4.10.7/debian/patches/cross.diff	2015-02-27 00:05:48.000000000 +0100
@@ -0,0 +1,19 @@
+Description: use cc to build build tools
+Author: Helmut Grohne <helmut at subdivi.de>
+Last-Update: 2014-02-27
+
+--- nspr-4.10.7.orig/nspr/config/Makefile.in
++++ nspr-4.10.7/nspr/config/Makefile.in
+@@ -111,9 +111,11 @@ export::
+ 	$(INSTALL) system_wrappers $(dist_includedir)
+ endif
+ 
++$(addprefix $(OBJDIR)/,$(CSRCS:.c=.$(OBJ_SUFFIX))): CC=cc
++
+ $(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX)
+ 	@$(MAKE_OBJDIR)
+-	$(CC) $(XCFLAGS) $< $(LDFLAGS) $(XLDOPTS) $(OUTOPTION)$@
++	cc $(XCFLAGS) $< $(LDFLAGS) $(XLDOPTS) $(OUTOPTION)$@
+ 
+ install:: nspr.m4
+ 	$(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal
diff -Nru nspr-4.10.7/debian/patches/series nspr-4.10.7/debian/patches/series
--- nspr-4.10.7/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ nspr-4.10.7/debian/patches/series	2015-02-27 00:05:05.000000000 +0100
@@ -0,0 +1 @@
+cross.diff


More information about the pkg-mozilla-maintainers mailing list