Source: xfsprogs
Version: 5.14.0-rc1-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs
Control: block -1 by 999743

xfsprogs fails to cross build from source, because it attempts to build
its crc32 test with the build architecture compiler and thus fails
finding the liburcu, which is only requested for the host architecture.
While this test is useful for native builds, it is not that useful for
cross builds. I propose skipping it (e.g. by pre-creating the output
file). After doing so it fails via #999743. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru xfsprogs-5.14.0-rc1/debian/changelog 
xfsprogs-5.14.0-rc1/debian/changelog
--- xfsprogs-5.14.0-rc1/debian/changelog        2021-11-14 23:18:22.000000000 
+0100
+++ xfsprogs-5.14.0-rc1/debian/changelog        2021-11-16 14:43:28.000000000 
+0100
@@ -1,3 +1,10 @@
+xfsprogs (5.14.0-rc1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Skip crc32 test. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 16 Nov 2021 14:43:28 +0100
+
 xfsprogs (5.14.0-rc1-1) unstable; urgency=medium
 
   [ Dave Chinner ]
diff --minimal -Nru xfsprogs-5.14.0-rc1/debian/rules 
xfsprogs-5.14.0-rc1/debian/rules
--- xfsprogs-5.14.0-rc1/debian/rules    2021-11-14 23:18:22.000000000 +0100
+++ xfsprogs-5.14.0-rc1/debian/rules    2021-11-16 14:43:28.000000000 +0100
@@ -40,6 +40,9 @@
 build-indep: built
 built: dibuild config
        @echo "== dpkg-buildpackage: build" 1>&2
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+       touch --date=+3day libfrog/crc32selftest
+endif
        $(MAKE) $(PMAKEFLAGS) default
        touch built
 

Reply via email to