Debian Bug report logs - #835805
dh-python: please make builds reproducible with "mismatched" kernel and userland

version graph

Package: src:dh-python; Maintainer for src:dh-python is Piotr Ożarowski <piotr@debian.org>;

Reported by: Chris Lamb <lamby@debian.org>

Date: Sun, 28 Aug 2016 12:33:01 UTC

Severity: wishlist

Tags: patch

Found in version dh-python/2.20160818

Fixed in version dh-python/2.20170125

Done: Piotr Ożarowski <piotr@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-builds@lists.alioth.debian.org, Piotr Ożarowski <piotr@debian.org>:
Bug#835805; Package src:dh-python. (Sun, 28 Aug 2016 12:33:06 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-builds@lists.alioth.debian.org, Piotr Ożarowski <piotr@debian.org>. (Sun, 28 Aug 2016 12:33:06 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: submit@bugs.debian.org
Subject: dh-python: please make builds reproducible with "mismatched" kernel and userland
Date: Sun, 28 Aug 2016 13:28:04 +0100
[Message part 1 (text/plain, inline)]
Source: dh-python
Version: 2.20160818
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: environment toolchain
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that some packages on i386 are not reproducible as they embed
debugging symbols that vary depending on whether a 32 or 64-bit
kernel is being used.

The root cause is because temporary build directories include the
uname output:

 -'build/bdist.linux-x86_64' does not exist -- can't clean it
 +'build/bdist.linux-i686' does not exist -- can't clean it

This value comes from ``sysconfig.get_platform``:

  http://sources.debian.net/src/python2.7/2.7.12-2/Lib/sysconfig.py/#L572-L584
  http://sources.debian.net/src/python3.5/3.5.2-3/Lib/sysconfig.py/#L646-L658

We can easily fix it for all dh-python packages by exporting
_PYTHON_HOST_PLATFORM in the environment (if not set!) to something
that does not vary depending on the kernel. For example, combining
DEB_TARGET_ARCH_OS and DEB_TARGET_ARCH (eg. "linux-i386").

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-
[dh-python.diff.txt (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Piotr Ożarowski <piotr@debian.org>:
Bug#835805; Package src:dh-python. (Mon, 31 Oct 2016 12:00:13 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Piotr Ożarowski <piotr@debian.org>. (Mon, 31 Oct 2016 12:00:13 GMT) (full text, mbox, link).


Message #10 received at 835805@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: 835805@bugs.debian.org
Subject: Re: Bug#835805: dh-python: please make builds reproducible with "mismatched" kernel and userland
Date: Mon, 31 Oct 2016 11:57:25 +0000
Dear Maintainer,

> Source: dh-python
> Version: 1.20140128-1ubuntu8
> Tags: patch

There hasn't seem to be any update on this bug in 63 days, in which
time the Reproducible Builds effort has come on a long way. :)

Would you consider applying this patch and uploading?


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-



Information forwarded to debian-bugs-dist@lists.debian.org, Piotr Ożarowski <piotr@debian.org>:
Bug#835805; Package src:dh-python. (Mon, 16 Jan 2017 06:06:03 GMT) (full text, mbox, link).


Acknowledgement sent to Chris Lamb <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Piotr Ożarowski <piotr@debian.org>. (Mon, 16 Jan 2017 06:06:03 GMT) (full text, mbox, link).


Message #15 received at 835805@bugs.debian.org (full text, mbox, reply):

From: Chris Lamb <lamby@debian.org>
To: 835805@bugs.debian.org
Subject: Re: Bug#835805: dh-python: please make builds reproducible with "mismatched" kernel and userland
Date: Mon, 16 Jan 2017 06:03:34 +0000
Hey

> Whilst working on the Reproducible Builds effort [0], I noticed
> that some packages on i386 are not reproducible as they embed
> debugging symbols that vary depending on whether a 32 or 64-bit
> kernel is being used.

Friendly ping on this? :)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@debian.org / chris-lamb.co.uk
       `-



Reply sent to Piotr Ożarowski <piotr@debian.org>:
You have taken responsibility. (Wed, 25 Jan 2017 17:21:05 GMT) (full text, mbox, link).


Notification sent to Chris Lamb <lamby@debian.org>:
Bug acknowledged by developer. (Wed, 25 Jan 2017 17:21:05 GMT) (full text, mbox, link).


Message #20 received at 835805-close@bugs.debian.org (full text, mbox, reply):

From: Piotr Ożarowski <piotr@debian.org>
To: 835805-close@bugs.debian.org
Subject: Bug#835805: fixed in dh-python 2.20170125
Date: Wed, 25 Jan 2017 17:18:34 +0000
Source: dh-python
Source-Version: 2.20170125

We believe that the bug you reported is fixed in the latest version of
dh-python, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 835805@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Piotr Ożarowski <piotr@debian.org> (supplier of updated dh-python package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 25 Jan 2017 15:47:18 +0100
Source: dh-python
Binary: dh-python
Architecture: source all
Version: 2.20170125
Distribution: unstable
Urgency: medium
Maintainer: Piotr Ożarowski <piotr@debian.org>
Changed-By: Piotr Ożarowski <piotr@debian.org>
Description:
 dh-python  - Debian helper tools for packaging Python libraries and applicatio
Closes: 835805 841148 847304 847387
Changes:
 dh-python (2.20170125) unstable; urgency=medium
 .
   * pybuild.pm:
     - enable --test-{nose,pytest,tox} if appropriate pypy-* build
       dependency is set
   * pybuild: set _PYTHON_HOST_PLATFORM in the environment to ensure debugging
     symbols (reproducible builds effort). Thanks to Chris Lamb for the patch
     (closes: 835805)
   * dh_python{2,3} manpage: remove "s" suffix from *-section options
     to match the actual option name and --help output (closes: 847304)
   * dh_python{2,3}:
     - do not drop "module" from extension name if the name is "module",
       i.e. without prefix (closes: 841148)
     - add --accept-upstream-versions option. Thanks to Malte Forkel for the
       patch (also closes: 847387 as it now parses minimum/maximum version)
Checksums-Sha1:
 2e9d6ff9f5054537f0010167fea8b70494780b50 1908 dh-python_2.20170125.dsc
 0abffe04fcd78f8342238c04e4167780ed32102c 91332 dh-python_2.20170125.tar.xz
 d9b025abe862dfc0f85d9ab5b3cb43290ada149d 86764 dh-python_2.20170125_all.deb
 49e8c3f83fc8fc173f038c7a4c8a1dedf87aa15c 5303 dh-python_2.20170125_amd64.buildinfo
Checksums-Sha256:
 ef4f2951cea36ae4aac29126a1017505f98b595432fb5bdac0f21b4b4d72c1b4 1908 dh-python_2.20170125.dsc
 2e09c162ee2442a03511b7ebe83896e1e3c1df79ce97a22d2f8a8b4cfec9f1e3 91332 dh-python_2.20170125.tar.xz
 653083af906f433f5baf4f26ee1d1320e2251a98f20994eacc4797d34bbabaaa 86764 dh-python_2.20170125_all.deb
 5ef77e542bd9d73513bb4cf8a9d1cb705dc9a5429c9a6ce46ed11b68e7112e9b 5303 dh-python_2.20170125_amd64.buildinfo
Files:
 070dedc559d9f4f9d99029f6081ca8c5 1908 python optional dh-python_2.20170125.dsc
 a4dc23f8151f2cf1a9ae87a2ca15efa0 91332 python optional dh-python_2.20170125.tar.xz
 de664c460a2e4753c8a3ab2f36ec5755 86764 python optional dh-python_2.20170125_all.deb
 6bafb11074cee6a76ff75c417a38c49d 5303 python optional dh-python_2.20170125_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEHS+omFjar2IXhi33rvbxoqdFdkUFAliI2hEACgkQrvbxoqdF
dkVdwRAAvwdag5Z+2RqWFO4TyDyt5SQIFnKg1AP98LaFuyWQVtpjAPQRwT5aZoxU
of+ryDmK1sZ9Jzk2W9FihyCivonFzjGUUKOy5adsMblGd+C1e1pi47MOKbHaCzlO
L6JhELoQ2WY70XI1Hn+DEcdJ/xVmh0cR+++UayfBUPB0/JUUymYFlERLRz2OyUYI
UwXqG0JG0jyuplsUrDkq2LnhtnbMJUuWotemoIPtN2Ng2j2U1AHHVF0O2dCTmKX/
8ZOKz3i8/qbddLOsFBB7URqkxtDrC8AcEcqmU5TuGW05W8ONGiBr+slnzQxkFtxr
hRWVXi8S1kfIRh0lc+pR4lDthteFeHGNWR1DZzauDMjDqh+3VbONjwvQJrkSyrQN
IDN3Rvzwd/WohbkmVduRHAv53BUUUEOuKCGHvtIG9y73IvzdgvBGEWSnOGgFTjBa
ikz7KBeF2B0C0EhlpmcjaIJVj7bJLGqLyI09+gTsSinfkwyDZBo+l4LUwggDNsNP
SdfbCqEE5+mPDGsVD6ysIGHXZbLR4WKn7NTelKFHV6FFs3XWDmbu0RIjdpA2bUDV
zYHOsLCOZx97hY9rQ9T5nHDwFQY1elkDiudRDY9IqURKA7NCtaZfA+jRll3cNTfJ
3VCKSOaZyUbuAod8bqWYubsPivOzeGU9E1XHVu4AMmNWj2WUkvc=
=GG5s
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sun, 05 Mar 2017 07:25:34 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed May 17 11:46:24 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.