Source: xa Version: 2.4.0-0.1 Tags: patch User: [email protected] Usertags: ftcbfs
xa fails to cross build from source, because it relinks the xa binary duing the make install step and uses the build architecture compiler there as no cross tools have been passed to make install. I'm attaching a patch that also passes the compiler variables to make install and hence makes xa cross buildable. Helmut
diff --minimal -Nru xa-2.4.0/debian/changelog xa-2.4.0/debian/changelog --- xa-2.4.0/debian/changelog 2023-12-11 20:31:30.000000000 +0100 +++ xa-2.4.0/debian/changelog 2024-02-08 11:40:07.000000000 +0100 @@ -1,3 +1,10 @@ +xa (2.4.0-0.2) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Also pass cross tools to make install. (Closes: #-1) + + -- Helmut Grohne <[email protected]> Thu, 08 Feb 2024 11:40:07 +0100 + xa (2.4.0-0.1) unstable; urgency=medium * Non-maintainer upload. diff --minimal -Nru xa-2.4.0/debian/rules xa-2.4.0/debian/rules --- xa-2.4.0/debian/rules 2022-11-13 15:15:40.000000000 +0100 +++ xa-2.4.0/debian/rules 2024-02-08 11:40:04.000000000 +0100 @@ -7,7 +7,7 @@ dh_auto_build -- CC='$(CC)' LD='$$(CC)' CFLAGS='$(CPPFLAGS) $(CFLAGS)' LDFLAGS='$(LDFLAGS)' override_dh_auto_install: - make install DESTDIR=$(CURDIR)/debian/xa65/usr + make install DESTDIR=$(CURDIR)/debian/xa65/usr CC='$(CC)' LD='$$(CC)' CFLAGS='$(CPPFLAGS) $(CFLAGS)' LDFLAGS='$(LDFLAGS)' override_dh_auto_test: dh_auto_test --no-parallel

