Source: fsverity-utils
Version: 1.4-1~exp1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

fsverity-utils fails to cross build from source, because make install
detects a changed compiler and proceeds to rebuild it using the build
architecture compiler. Exporting the host architecture CC for all
targets fixes this. Please consider applying the attached patch.

Helmut
diff --minimal -Nru fsverity-utils-1.4/debian/changelog 
fsverity-utils-1.4/debian/changelog
--- fsverity-utils-1.4/debian/changelog 2021-06-24 14:16:03.000000000 +0200
+++ fsverity-utils-1.4/debian/changelog 2021-11-25 22:27:54.000000000 +0100
@@ -1,3 +1,11 @@
+fsverity-utils (1.4-1~exp1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Avoid rebuild during make install by exporting CC.
+    (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 25 Nov 2021 22:27:54 +0100
+
 fsverity-utils (1.4-1~exp1) experimental; urgency=medium
 
   * New upstream version 1.4.
diff --minimal -Nru fsverity-utils-1.4/debian/rules 
fsverity-utils-1.4/debian/rules
--- fsverity-utils-1.4/debian/rules     2021-06-24 10:16:10.000000000 +0200
+++ fsverity-utils-1.4/debian/rules     2021-11-25 22:27:52.000000000 +0100
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 
 include /usr/share/dpkg/default.mk
+-include /usr/share/dpkg/buildtools.mk
+export CC
 
 MAKEFLAGS=PREFIX=/usr V=1 USE_SHARED_LIB=1
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all

Reply via email to