Source: id-utils Version: 4.6.28-20200521ss15dab Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
id-utils fails to cross build from source. Even though configure detects the correct compiler, the make invocation from debian/rules forces the build architecture compiler. If the CC environment variable is set, configure would pick it up already and otherwise $(CC) simply becomes "cc", which is wrong for cross builds. Dropping the assignment gets the build a lot further. The build still fails due to use of help2man. For that problem, there are many different solutions with different tradeoffs: * Stop using help2man and write real manual pages. * Build twice. Once natively for help2man and once for real. * Extract the --help output from the source by other means. * Don't regenerate manual pages during build. * Move manual pages to an arch:all packages. Each of these has its own downsides. Do you have a preference? In the mean time, please apply the attached patch and close this bug when doing so. Helmut
diff --minimal -Nru id-utils-4.6.28/debian/changelog id-utils-4.6.28/debian/changelog --- id-utils-4.6.28/debian/changelog 2020-05-23 17:00:36.000000000 +0200 +++ id-utils-4.6.28/debian/changelog 2020-12-17 22:34:38.000000000 +0100 @@ -1,3 +1,11 @@ +id-utils (4.6.28-20200521ss150.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Improve cross building: Don't force the build architecture compiler. + (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 17 Dec 2020 22:34:38 +0100 + id-utils (4.6.28-20200521ss15dab) unstable; urgency=medium * New upstream snapshot from git://git.savannah.gnu.org/idutils.git 15dabf93d63ec15e674bd049c839067e58ffb872 diff --minimal -Nru id-utils-4.6.28/debian/rules id-utils-4.6.28/debian/rules --- id-utils-4.6.28/debian/rules 2020-05-22 21:38:30.000000000 +0200 +++ id-utils-4.6.28/debian/rules 2020-12-17 22:34:36.000000000 +0100 @@ -42,7 +42,7 @@ dh_testdir # Compile the package. - $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" + $(MAKE) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" touch $@