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

davs2 fails to cross build from source, because it configures for the
build architecture. The upstream configure script is very much unlike
autoconf and ignores --host as passed by dh_auto_configure. Instead one
is supposed to pass --cross-prefix. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru davs2-1.6/debian/changelog davs2-1.6/debian/changelog
--- davs2-1.6/debian/changelog  2021-04-11 16:02:46.000000000 +0200
+++ davs2-1.6/debian/changelog  2021-11-28 14:04:33.000000000 +0100
@@ -1,3 +1,10 @@
+davs2 (1.6-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --cross-prefix to configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 28 Nov 2021 14:04:33 +0100
+
 davs2 (1.6-1) unstable; urgency=medium
 
   [ Ondřej Nový ]
diff --minimal -Nru davs2-1.6/debian/rules davs2-1.6/debian/rules
--- davs2-1.6/debian/rules      2021-04-11 15:55:39.000000000 +0200
+++ davs2-1.6/debian/rules      2021-11-28 14:04:32.000000000 +0100
@@ -1,5 +1,6 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/architecture.mk
 include /usr/share/dpkg/pkg-info.mk
 
 manpage = debian/davs2.1
@@ -10,6 +11,7 @@
 
 override_dh_auto_configure:
        VER_SHA="$(DEB_DISTRIBUTION)" dh_auto_configure -- \
+               --cross-prefix=$(DEB_HOST_GNU_TYPE)- \
                --enable-shared \
                --enable-pic \
                --extra-cflags="${CPPFLAGS} -fvisibility=hidden -DDAVS2_EXPORTS"

Reply via email to