Re: [Reproducible-builds] Bug#792867: FTCBFS: uses wrong architecture Python

2015-07-19 Thread Holger Levsen
clone 792867 -1
clone 792867 -2
retitle -1 bsdmainutils: unreproducible as current year is used while building
retitle -2 bsdmainutils: jewish calendar unsuable, needs a rebuild
user reproducible-builds@lists.alioth.debian.org
usertag -2 + timestamps
thanks

Hi,

I'll leave 792867 alone and just comment on the cloning.

On Sonntag, 19. Juli 2015, Helmut Grohne wrote:
> 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)

this is clone -1, though please note that this is not yet made visible on 
reproducible.debian.net, the package appears to be reproducible there.

>  * 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).

this is clone -2, the severity maybe should be raised to "important".


cheers,
Holger




signature.asc
Description: This is a digitally signed message part.
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

[Reproducible-builds] Bug#792867: FTCBFS: uses wrong architecture Python

2015-07-19 Thread Helmut Grohne
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.0 +0200
+++ bsdmainutils-9.0.6+nmu1/debian/changelog2015-07-19 15:37:08.0 
+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   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.0 +0200
+++ bsdmainutils-9.0.6+nmu1/debian/control  2015-07-19 15:36:33.0 
+0200
@@ -3,7 +3,7 @@
 Priority: important
 Maintainer: Debian Bsdmainutils Team 
 Uploaders: Giacomo Catenazzi , Michael Meskes 

-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
___
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds