Source: libzstd
Version: 1.4.5+dfsg-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

libzstd fails to cross build from source, because some parts of it
(including the shared library) are built during dh_auto_install, where
debhelper doesn't pass cross tools. Thus the build architecture compiler
is being used and when examining the binaries an error is produced.
Please perform all build steps via dh_auto_build. I'm attaching a patch
implementing that for your convenience.

Helmut
diff --minimal -Nru libzstd-1.4.5+dfsg/debian/changelog 
libzstd-1.4.5+dfsg/debian/changelog
--- libzstd-1.4.5+dfsg/debian/changelog 2020-06-05 10:47:12.000000000 +0200
+++ libzstd-1.4.5+dfsg/debian/changelog 2020-06-06 22:43:14.000000000 +0200
@@ -1,3 +1,11 @@
+libzstd (1.4.5+dfsg-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Don't build the shared library during dh_auto_install.
+    (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sat, 06 Jun 2020 22:43:14 +0200
+
 libzstd (1.4.5+dfsg-1) unstable; urgency=medium
 
   * New upstream version 1.4.5+dfsg
diff --minimal -Nru libzstd-1.4.5+dfsg/debian/rules 
libzstd-1.4.5+dfsg/debian/rules
--- libzstd-1.4.5+dfsg/debian/rules     2020-06-05 10:47:12.000000000 +0200
+++ libzstd-1.4.5+dfsg/debian/rules     2020-06-06 22:43:11.000000000 +0200
@@ -26,6 +26,7 @@
 
 override_dh_auto_build:
        dh_auto_build -- ZSTD_LEGACY_MULTITHREADED_API=1
+       dh_auto_build --sourcedirectory=lib -- ZSTD_LEGACY_MULTITHREADED_API=1 
all libzstd.pc libzstd
        dh_auto_build --sourcedirectory=contrib/pzstd/ -- pzstd
 
 override_dh_install:

Reply via email to