Source: ccid
Version: 1.6.1-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

ccid fails to cross build from source in a surprising way. On the
surface, it passes -mbranch-protection=standard (arm64) to cc (amd64)
and that doesn't go well. The cause is very subtle as compilers are
configured via a cross file but compiler flags are inherited via the
environment. The extra "meson configure" was using a different build
directory and thus configuring from scratch using host compiler flags
and build compilers. Deleting it makes a cross build succeed and a
native build slightly faster.

Helmut
diff --minimal -Nru ccid-1.6.1/debian/changelog ccid-1.6.1/debian/changelog
--- ccid-1.6.1/debian/changelog 2024-07-05 11:03:58.000000000 +0200
+++ ccid-1.6.1/debian/changelog 2024-09-30 14:12:54.000000000 +0200
@@ -1,3 +1,11 @@
+ccid (1.6.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Don't meson configure with a different build directory.
+    (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Mon, 30 Sep 2024 14:12:54 +0200
+
 ccid (1.6.1-1) unstable; urgency=medium
 
   * New upstream release
diff --minimal -Nru ccid-1.6.1/debian/rules ccid-1.6.1/debian/rules
--- ccid-1.6.1/debian/rules     2024-07-05 11:03:58.000000000 +0200
+++ ccid-1.6.1/debian/rules     2024-09-30 14:12:53.000000000 +0200
@@ -13,7 +13,6 @@
 override_dh_auto_configure:
        # add support of the GemPC Twin in serial mode
        dh_auto_configure -- -Dserial=true
-       meson configure
 
 override_dh_auto_install:
        dh_auto_install

Reply via email to