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

elfutils fails to cross build from source for amd64 and arm64 both of
which recently added architecture-specific compiler flags such as
PAC/BTI. These leak into the native build pass where the compiler may
not understand them. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru elfutils-0.190/debian/changelog 
elfutils-0.190/debian/changelog
--- elfutils-0.190/debian/changelog     2023-11-16 14:54:07.000000000 +0100
+++ elfutils-0.190/debian/changelog     2023-12-08 07:38:31.000000000 +0100
@@ -1,3 +1,10 @@
+elfutils (0.190-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Do not leak host flags into native build. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 08 Dec 2023 07:38:31 +0100
+
 elfutils (0.190-1) unstable; urgency=medium
 
   * New upstream version.
diff --minimal -Nru elfutils-0.190/debian/rules elfutils-0.190/debian/rules
--- elfutils-0.190/debian/rules 2023-01-14 14:54:50.000000000 +0100
+++ elfutils-0.190/debian/rules 2023-12-08 07:38:31.000000000 +0100
@@ -68,6 +68,10 @@
        dh_autoreconf
        @mkdir -p stamps
 ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
+       CFLAGS='$(CFLAGS_FOR_BUILD)' \
+       CPPFLAGS='$(CPPFLAGS_FOR_BUILD)' \
+       CXXFLAGS='$(CXXFLAGS_FOR_BUILD)' \
+       LDFLAGS='$(LDFLAGS_FOR_BUILD)' \
        ./configure --enable-maintainer-mode \
                --enable-libdebuginfod=dummy \
                --disable-debuginfod

Reply via email to