Source: isa-support
Version: 5
Tags: patch
User: [email protected]
Usertags: ftcbfs
isa-support fails to cross build from source, because its build script
hard codes the build architecture compiler. A simple solution is letting
dpkg's buildtools.mk initialize the CC variable and use that. Please
consider applying the attached patch.
Helmut
diff --minimal -Nru isa-support-5/build isa-support-5+nmu1/build
--- isa-support-5/build 2017-08-17 21:42:46.000000000 +0200
+++ isa-support-5+nmu1/build 2021-02-06 23:35:10.000000000 +0100
@@ -61,7 +61,7 @@
}
END
close C;
- system("cc", "-Wall", split(/ /, $field{'CFLAGS'}//""), "-s",
"test-$name.c", "-o", "test-$name")
+ system($ENV{CC}, "-Wall", split(/ /, $field{'CFLAGS'}//""), "-s",
"test-$name.c", "-o", "test-$name")
and die "Compile failed, aborting.\n";
$uue=`gzip -9n <test-$name|uuencode meow` or die "Uuencode failed.\n";
$uue=~s/^begin \d\d\d meow\n//s or die "Uuencode output corrupted.\n";
diff --minimal -Nru isa-support-5/debian/changelog
isa-support-5+nmu1/debian/changelog
--- isa-support-5/debian/changelog 2018-01-17 01:05:58.000000000 +0100
+++ isa-support-5+nmu1/debian/changelog 2021-02-06 23:35:37.000000000 +0100
@@ -1,3 +1,10 @@
+isa-support (5+nmu1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Let dpkg's buildtools.mk supply a C compiler. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Sat, 06 Feb 2021 23:35:37 +0100
+
isa-support (5) unstable; urgency=medium
* Chinese (simplified) translation (Boyuan Yang).
diff --minimal -Nru isa-support-5/debian/rules isa-support-5+nmu1/debian/rules
--- isa-support-5/debian/rules 2017-08-15 15:54:23.000000000 +0200
+++ isa-support-5+nmu1/debian/rules 2021-02-06 23:35:36.000000000 +0100
@@ -2,6 +2,9 @@
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
+-include /usr/share/dpkg/buildtools.mk
+export CC
+
%:
dh $@