Source: check
Version: 0.9.10-6.2
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Please make check cross buildable. In theory, being able to cross build
check should not be necessary. However, a few packages that need to be
built for a base system build-depend on check and do not make these
dependencies optional using build profiles[1] yet. Thus it is easiest,
to just cross build check to satisfy those dependencies even though it
is not actually needed when building those reverse dependencies with
DEB_BUILD_OPTIONS=nocheck.

Please consider applying the attached patch.

Helmut
diff -Nru check-0.9.10/debian/changelog check-0.9.10/debian/changelog
--- check-0.9.10/debian/changelog
+++ check-0.9.10/debian/changelog
@@ -1,3 +1,10 @@
+check (0.9.10-6.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Support cross building. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 29 May 2015 21:15:48 +0000
+
 check (0.9.10-6.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru check-0.9.10/debian/rules check-0.9.10/debian/rules
--- check-0.9.10/debian/rules
+++ check-0.9.10/debian/rules
@@ -6,6 +6,7 @@
 export DESTDIR=$(shell pwd)/debian/check
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
 ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS_OPT := -O0
@@ -18,6 +19,7 @@
        dh_testdir
        dh_autotools-dev_updateconfig
         CFLAGS="$(CFLAGS_OPT)" ./configure --prefix=/usr \
+               --host=$(DEB_HOST_GNU_TYPE) \
                --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
                --infodir=/usr/share/info --enable-plain-docdir
        touch configure-stamp
@@ -27,6 +29,7 @@
        dh_testdir
        dh_autotools-dev_updateconfig
        CFLAGS="-fPIC $(CFLAGS_OPT)" ./configure --prefix=/usr \
+               --host=$(DEB_HOST_GNU_TYPE) \
                --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
                --infodir=/usr/share/info \
                --enable-plain-docdir

Reply via email to