1085112">

Debian Bug report logs - #1085112
python3-distro-info: filter by SOURCE_DATE_EPOCH when configured

version graph

Package: python3-distro-info; Maintainer for python3-distro-info is Benjamin Drung <bdrung@debian.org>; Source for python3-distro-info is src:distro-info (PTS, buildd, popcon).

Affects: developers-reference

Reported by: James Addison <jay@jp-hosting.net>

Date: Mon, 14 Oct 2024 20:33:01 UTC

Severity: wishlist

Tags: patch

Found in version distro-info/1.9

Fixed in version distro-info/1.12

Done: Benjamin Drung <bdrung@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://salsa.debian.org/debian/distro-info/-/merge_requests/8

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


Report forwarded to debian-bugs-dist@lists.debian.org, Benjamin Drung <bdrung@debian.org>:
Bug#1085112; Package python3-distro-info. (Mon, 14 Oct 2024 20:33:02 GMT) (full text, mbox, link).


Acknowledgement sent to James Addison <jay@jp-hosting.net>:
New Bug report received and forwarded. Copy sent to Benjamin Drung <bdrung@debian.org>. (Mon, 14 Oct 2024 20:33:02 GMT) (full text, mbox, link).


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

From: James Addison <jay@jp-hosting.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: python3-distro-info: filter by SOURCE_DATE_EPOCH when configured
Date: Mon, 14 Oct 2024 21:30:58 +0100
[Message part 1 (text/plain, inline)]
Package: python3-distro-info
Version: 1.9
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
Control: affects -1 developers-reference

Dear Maintainer,

I'm an occasional volunteer contributor to the Reproducible Builds[1] project,
and recently noticed that the developers-reference package failed to build
deterministically on the test build infrastructure for Debian.

The difference in the build output appears in Debian release codenames
retrieved using the distro_info module in the python3-distro-info package.

In particular, varying system clock times during comparative builds can cause
the release codenames returned by distro-info to differ, due to date-based
filtering logic that uses datetime.date.today (system clock date) as a default
value.

Please find attached a patch to begin using the stable SOURCE_DATE_EPOCH[3]
build timestamp, when configured, as a source of the default date filter,
enabling repeatable and deterministic build output.  (I'll also offer this as
a merge request on Salsa)

Regards,
James

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

[2] - https://sources.debian.org/src/distro-info/1.9/python/distro_info.py/#L129

[3] - https://reproducible-builds.org/docs/source-date-epoch/
[0001-python-add-release-filtering-by-SOURCE_DATE_EPOCH.patch (text/plain, attachment)]

Added indication that 1085112 affects developers-reference Request was from James Addison <jay@jp-hosting.net> to submit@bugs.debian.org. (Mon, 14 Oct 2024 20:33:02 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Benjamin Drung <bdrung@debian.org>:
Bug#1085112; Package python3-distro-info. (Tue, 15 Oct 2024 19:21:02 GMT) (full text, mbox, link).


Acknowledgement sent to James Addison <jay@jp-hosting.net>:
Extra info received and forwarded to list. Copy sent to Benjamin Drung <bdrung@debian.org>. (Tue, 15 Oct 2024 19:21:02 GMT) (full text, mbox, link).


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

From: James Addison <jay@jp-hosting.net>
To: Debian Bug Tracking System <1085112@bugs.debian.org>
Subject: Re: python3-distro-info: filter by SOURCE_DATE_EPOCH when configured
Date: Tue, 15 Oct 2024 20:18:26 +0100
Package: python3-distro-info
Followup-For: Bug #1085112
Control: forwarded -1 https://salsa.debian.org/debian/distro-info/-/merge_requests/8



Set Bug forwarded-to-address to 'https://salsa.debian.org/debian/distro-info/-/merge_requests/8'. Request was from James Addison <jay@jp-hosting.net> to 1085112-submit@bugs.debian.org. (Tue, 15 Oct 2024 19:21:02 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Benjamin Drung <bdrung@debian.org>:
Bug#1085112; Package python3-distro-info. (Wed, 16 Oct 2024 11:18:02 GMT) (full text, mbox, link).


Acknowledgement sent to James Addison <jay@jp-hosting.net>:
Extra info received and forwarded to list. Copy sent to Benjamin Drung <bdrung@debian.org>. (Wed, 16 Oct 2024 11:18:02 GMT) (full text, mbox, link).


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

From: James Addison <jay@jp-hosting.net>
To: Debian Bug Tracking System <1085112@bugs.debian.org>
Subject: Re: python3-distro-info: filter by SOURCE_DATE_EPOCH when configured
Date: Wed, 16 Oct 2024 12:14:47 +0100
[Message part 1 (text/plain, inline)]
Package: python3-distro-info
Followup-For: Bug #1085112

Please find attached an updated patch that conforms to the package's 'black'
code formatting guidelines, and with an amended commit message to automatically
close this bug.
[0001-python-add-release-filtering-by-SOURCE_DATE_EPOCH-v2.patch (text/plain, attachment)]

Reply sent to Benjamin Drung <bdrung@debian.org>:
You have taken responsibility. (Wed, 16 Oct 2024 12:36:05 GMT) (full text, mbox, link).


Notification sent to James Addison <jay@jp-hosting.net>:
Bug acknowledged by developer. (Wed, 16 Oct 2024 12:36:05 GMT) (full text, mbox, link).


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

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 1085112-close@bugs.debian.org
Subject: Bug#1085112: fixed in distro-info 1.12
Date: Wed, 16 Oct 2024 12:34:16 +0000
[Message part 1 (text/plain, inline)]
Source: distro-info
Source-Version: 1.12
Done: Benjamin Drung <bdrung@debian.org>

We believe that the bug you reported is fixed in the latest version of
distro-info, 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 1085112@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Benjamin Drung <bdrung@debian.org> (supplier of updated distro-info 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, 16 Oct 2024 14:13:02 +0200
Source: distro-info
Built-For-Profiles: noudeb
Architecture: source
Version: 1.12
Distribution: unstable
Urgency: medium
Maintainer: Benjamin Drung <bdrung@debian.org>
Changed-By: Benjamin Drung <bdrung@debian.org>
Closes: 1085112
Changes:
 distro-info (1.12) unstable; urgency=medium
 .
   [ James Addison ]
   * python: add release filtering by SOURCE_DATE_EPOCH (Closes: #1085112)
Checksums-Sha1:
 3fd7b50c96edcba160a88aeaafca668a79097946 2058 distro-info_1.12.dsc
 b71e5b22b4f02811565d7e5302b278c35b71ba08 34268 distro-info_1.12.tar.xz
 58c0a77ec78009024dfeab2f2a5cb96f21930b3d 8750 distro-info_1.12_source.buildinfo
Checksums-Sha256:
 ab63891a73f4824ccf08a93ee2ce3e05a43ceb1c722b4e4c3562e6b1c8fa75a2 2058 distro-info_1.12.dsc
 63f1183be7df8dbae19fd4ba388a2aff0d040bb4b4a96a80e9851e8a4c885c09 34268 distro-info_1.12.tar.xz
 285e7a1e9a7f2497e05e8576e99460d3b3bf3d2c8b665a17393cc5a495cfddec 8750 distro-info_1.12_source.buildinfo
Files:
 aac868d8b9d901d226a0c3c8de290dd3 2058 devel optional distro-info_1.12.dsc
 2ef764bd44a609563ad2582be976c9e8 34268 devel optional distro-info_1.12.tar.xz
 0b1f3601eea8f85396934055aea2bea2 8750 devel optional distro-info_1.12_source.buildinfo

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

iQIzBAEBCgAdFiEEpi0s+9ULm1vzYNVLFZ61xO/Id0wFAmcPr9MACgkQFZ61xO/I
d0y45xAAmLBUk9pDa2afOsvO+ZximWi2ebebxR8Pk5iYs3eW5n+IBjtvCpBhkydb
1bsDeVn/sYlw9sD3jQOFv40GMtt621O6swYbwMGXs3SY55GrHNCDcckhf48t16do
CRtaY6bF8Mmhk00zxfKa94dwLT180SOW39NKAfkewuIIBiO+HTzEgAkY0Y6qNomg
AFtdg1JuMiAn2xP90Bud/mRrJEN9UkOJ1oQk99QQ2INXdvgJKw+1REh7W2xF6DSz
CUOq/tZBt21tH1FdOS65EOz3TU9Kx4SEgC5VV4YuM9FobzxkUAbMRP7za+MxFq/p
gI6ukp9b+l+C5pI1ScNB+O44ygedFuBKM9IexKTHlNEX9ViMxAoEVudhRPCCkmoh
+98D9AQDJP4Hvy55PPx4aKOLB5Y5T/i8M+JUrwXMpvfkOo/OiVjchmGOU0LPx3QD
/0AlLk2RwND5FIp3R45ZfZlXebOM4JrHAuA4xqieuQdESWwp4yGBiMU4VhZ8cACS
rGLfoyiH6/1T9DppQ/+FFhEn3apk7h3mnhPdUzvAUhHHFDSrk/jOq+VbsSbHjUQg
BmqKY3J37bLbK9XLnmk02no4/GG03hdQzphBvmR4gDj67CFsn6VzntFlxSjskm7z
tw71K5BcHyrPhQTPM0BGQLs/zuiAFXDLog3dcSFHhiVY5oSJPWM=
=bUke
-----END PGP SIGNATURE-----

[Message part 2 (application/pgp-signature, inline)]

Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Fri, 15 Nov 2024 07:24:30 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: Fri Jan 31 06:37:57 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.