Source: bsdmainutils
Version: 9.0.6
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

Dear bsdmainutils maintainers,

While trying to cross build bsdmainutils, I noticed that it was
installing the host architecture python and python-hdate. It then tries
to execute that Python as a build tool, which fails, because the host
architecture is usually not executable during cross compilation.

Since python and python-hdate are only used as build tools, the correct
solution is to always install them for the build architecture. This can
be reflected in the Build-Depends by annotating those packages with
":native".

The attached patch implements that proposal. Please consider applying
it. The ":native" is supported in apt and dpkg since wheezy. If in
doubt, don't hesitate to ask for details on the identified problem or
the proposed solution.

As an aside note, I question the use of python-hdate to compute the
Jewish calendar:
 * Since the build date is used to select the year of the calendar file,
   the package is not reproducible. (Ccing the reproducible people)
 * The last build happened in 2014, so the installed calendar is no
   longer useful for day to day use (neither in stable nor in unstable).

Helmut
diff -Nru bsdmainutils-9.0.6/debian/changelog 
bsdmainutils-9.0.6+nmu1/debian/changelog
--- bsdmainutils-9.0.6/debian/changelog 2014-10-17 15:42:56.000000000 +0200
+++ bsdmainutils-9.0.6+nmu1/debian/changelog    2015-07-19 15:37:08.000000000 
+0200
@@ -1,3 +1,11 @@
+bsdmainutils (9.0.6+nmu1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Add :native annotationes to Python-related Build-Depends to facilitate
+    cross dependency satisfiability (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 19 Jul 2015 15:36:38 +0200
+
 bsdmainutils (9.0.6) unstable; urgency=medium
 
   * Add Ubuntu 13.04 release date to calendar.ubuntu.
diff -Nru bsdmainutils-9.0.6/debian/control 
bsdmainutils-9.0.6+nmu1/debian/control
--- bsdmainutils-9.0.6/debian/control   2014-08-15 11:49:55.000000000 +0200
+++ bsdmainutils-9.0.6+nmu1/debian/control      2015-07-19 15:36:33.000000000 
+0200
@@ -3,7 +3,7 @@
 Priority: important
 Maintainer: Debian Bsdmainutils Team <pkg-bsdmainut...@teams.debian.net>
 Uploaders: Giacomo Catenazzi <c...@debian.org>, Michael Meskes 
<mes...@debian.org>
-Build-Depends: debhelper (>= 7), libncurses5-dev, quilt (>= 0.40), python, 
python-hdate
+Build-Depends: debhelper (>= 7), libncurses5-dev, quilt (>= 0.40), 
python:native, python-hdate:native
 Standards-Version: 3.9.5
 Vcs-Git: git://anonscm.debian.org/bsdmainutils/bsdmainutils.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=bsdmainutils/bsdmainutils.git

Reply via email to