Source: cvs
Version: 2:1.12.13+real-18
Tags: patch
User: [email protected]
Usertags: rebootstrap

cvs fails to cross build from source, because it configures the package
for the build architecture. Please consider applying the attached patch
which adds the relevant --build and --host flags for cross compilation.

Helmut
diff -u cvs-1.12.13+real/debian/changelog cvs-1.12.13+real/debian/changelog
--- cvs-1.12.13+real/debian/changelog
+++ cvs-1.12.13+real/debian/changelog
@@ -1,3 +1,10 @@
+cvs (2:1.12.13+real-18.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass --host to configure (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Tue, 01 Nov 2016 18:44:40 +0100
+
 cvs (2:1.12.13+real-18) unstable; urgency=low
 
   [ esr ]
diff -u cvs-1.12.13+real/debian/rules cvs-1.12.13+real/debian/rules
--- cvs-1.12.13+real/debian/rules
+++ cvs-1.12.13+real/debian/rules
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
-CC?=                   gcc
-CONFIGURE_ENV:=                CC='${CC}'
+-include /usr/share/dpkg/architecture.mk
+CONFIGURE_ENV:=
 EXTRA_CFLAGS=          -Wall -fno-strict-aliasing -Wformat
 # addresses part of #698908
 EXTRA_CFLAGS+=         -fwrapv
@@ -62,6 +62,10 @@
                        --with-tmpdir=/var/tmp \
                        --with-umask=002 \
                        --with-cvs-admin-group=_cvsadmin
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+CONFIGURE_ARGS+=       --build=$(DEB_BUILD_GNU_TYPE) \
+                       --host=$(DEB_HOST_GNU_TYPE)
+endif
 
 MAKE_ARGS:=            MAKEINFO=makeinfo
 MAKE_ARGS+=            MAKEINFOFLAGS=--no-split

Reply via email to