Source: sjeng Version: 11.2-8 Tags: patch User: helm...@debian.org Usertags: rebootstrap
sjeng fails to cross build from source, because it uses the build architecture toolchain. It forces the build architecture compiler "gcc" upon configure by setting CC and it uses the build architecture strip via install -s. The former issue is fixed by using a triplet-prefixed CC and the latter is fixed by not stripping at install time. Doing so also lets dh_strip produce meaningful -dbgsym packages. Please consider applying the attached patch. Helmut
diff -u sjeng-11.2/debian/rules sjeng-11.2/debian/rules --- sjeng-11.2/debian/rules +++ sjeng-11.2/debian/rules @@ -13,7 +13,7 @@ export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) -CC = gcc +CC = $(DEB_HOST_GNU_TYPE)-gcc CFLAGS = -Wall -W -g LDFLAGS = @@ -33,10 +33,6 @@ INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755 INSTALL_FILE = $(INSTALL) -p -o root -g root -m 644 -ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTALL_PROGRAM += -s -endif - export CC CFLAGS LDFLAGS CXX CXXFLAGS INSTALL INSTALL_PROGRAM INSTALL_FILE config.status: $(QUILT_STAMPFN) configure diff -u sjeng-11.2/debian/changelog sjeng-11.2/debian/changelog --- sjeng-11.2/debian/changelog +++ sjeng-11.2/debian/changelog @@ -1,3 +1,12 @@ +sjeng (11.2-8.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Use a triplet-prefixed CC. + + Defer stripping to dh_strip. + + -- Helmut Grohne <hel...@subdivi.de> Tue, 31 Oct 2017 20:20:50 +0100 + sjeng (11.2-8) unstable; urgency=low * Apply a patch to satisfy the xboard protocol related to SAN