Bug#1000615: fsverity-utils FTCBFS: rebuilds with the build architecture compiler during make install

2022-12-22 Thread Luca Boccassi
On Thu, 25 Nov 2021 22:31:41 +0100 Helmut Grohne 
wrote:
> 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

Romain,

I'll NMU a fix for this and the new upstream version in the next week
or so, unless you have time to do it beforehand.

-- 
Kind regards,
Luca Boccassi


signature.asc
Description: This is a digitally signed message part


Bug#1000615: fsverity-utils FTCBFS: rebuilds with the build architecture compiler during make install

2021-11-25 Thread Helmut Grohne
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.0 +0200
+++ fsverity-utils-1.4/debian/changelog 2021-11-25 22:27:54.0 +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   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.0 +0200
+++ fsverity-utils-1.4/debian/rules 2021-11-25 22:27:52.0 +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