🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #5250

Bug#1154605: python-inline-snapshot: please make the build reproducible [filesystem]

#5250
From: Chris Lamb
Date: Fri, 20 Nov 2026 19:30
63 lines
5283 bytes
--677a568d2b4536d55b49c64fcdebef729926b28a
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Source: python-inline-snapshot
Version: 0.36.2-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: filesystem
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
python-inline-snapshot could not be built reproducibly.

Specifically, the documentation contained references to whichever
version of Python was used to build them, but this was nondetermistic
due to the use of:

  PYTHONPATH=3D`dirname $$(find -type d -name "*dist-info" | head -n1)` =
[=E2=80=A6]
                                             ^

=E2=80=A6 in debian/rules. That "*dist-info" was expanded and, crucially=
, was
not then sorted, leading to the directory being chosen based on the
naive filesystem order.

Patch attached.

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


Regards,

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

--677a568d2b4536d55b49c64fcdebef729926b28a
Content-Disposition: attachment; filename="python-inline-snapshot.diff.txt"
Content-Type: text/plain; charset=us-ascii;
	name="=?UTF-8?Q?python-inline-snapshot.diff.txt?="
Content-Transfer-Encoding: base64

LS0tIGEvZGViaWFuL3J1bGVzCTIwMjYtMTEtMjAgMTg6NDc6NTYuMTQzNjUyNzMxICswMDAw
Ci0tLSBiL2RlYmlhbi9ydWxlcwkyMDI2LTExLTIwIDE5OjA4OjM1LjkzMTIzMjUxNiArMDAw
MApAQCAtMzMsNyArMzMsNyBAQAogaWZlcSAoLCQoZmluZHN0cmluZyBub2RvYywgJChERUJf
QlVJTERfT1BUSU9OUykpKQogCWNwIC1hIENIQU5HRUxPRy5tZCBDT05UUklCVVRJTkcubWQg
UkVBRE1FLm1kIG1rZG9jcy55bWwgZG9jcyBzcmMgLnB5YnVpbGQgJiYgXAogCWNkIC5weWJ1
aWxkICYmIG1rZGlyIGNoYW5nZWxvZy5kICYmIFwKLQlIT01FPSQoQ1VSRElSKSBQWVRIT05Q
QVRIPWBkaXJuYW1lICQkKGZpbmQgLXR5cGUgZCAtbmFtZSAiKmRpc3QtaW5mbyIgfCBoZWFk
IC1uMSlgICYmIFwKKwlIT01FPSQoQ1VSRElSKSBQWVRIT05QQVRIPWBkaXJuYW1lICQkKGZp
bmQgLXR5cGUgZCAtbmFtZSAiKmRpc3QtaW5mbyIgfCBMQ19BTEw9QyBzb3J0IHwgaGVhZCAt
bjEpYCAmJiBcCiAJZXhwb3J0IFBZVEhPTlBBVEggJiYgXAogCSAgICBweXRob24zIC1tIG1r
ZG9jcyBidWlsZCAtdiAtLXNpdGUtZGlyPS4uL2h0bWwKIAlybSAtZiBodG1sL3JlcXVpcmVt
ZW50cy4qIGh0bWwvc2l0ZW1hcC54bWwuZ3oK

--677a568d2b4536d55b49c64fcdebef729926b28a--
Technical Details
Message-ID: <O1Ct3-d8l7-7@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: "Chris Lamb" <lamby@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1154605: python-inline-snapshot: please make the build reproducible [filesystem]
Date: Fri, 20 Nov 2026 20:30:01 +0100
Message-ID: <O1Ct3-d8l7-7@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Nov 20 19:23:10 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: "Chris Lamb" <lamby@debian.org>, 1154605@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: reproducible-bugs@lists.alioth.debian.org, team+python@tracker.debian.org
X-Debian-Pr-Message: report 1154605
X-Debian-Pr-Package: src:python-inline-snapshot
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: python-inline-snapshot
X-Me-Sender: <xms:qZ0Aa196FtRzbOurMSli71TEa6dKY7R1NVXkmpIcAAUS_AfYcV8reQ>
    <xme:qZ0Aa0hIpozPhWmlqi6cx9p_Ovdw6d9kFC_bCQE4-aBCY0VYKrInW2vmTmKwgKzKw
    WPMEpUNJ0vTyoJSlLl1xzOW5U--xI4NMbMCysm3gdwhN9IuBGg>
X-Me-Proxy-Cause: dmFkZTFButNZ7D6GT37NlsTSzMjns5X1rfoY/ELxVvBGzy0UDLXNXLjhzwpwae0OyB3uB+
    tpq83eIn+/yR1tqr5JIOndYFaeHRBaSEMzSQDHfgBeDqOU7XkMutBjUdnpLWdsiSrBouWL
    Li+sZqTnOyHaaHkNLPFlhWjI3qos4dd6OTRTzOtCAOOPKa5lGTiWbhiwX0S1ypWMB3BvNf
    S0mnPSfN5Y9NG+dsGi4eKQpoQvvpbJfdCB9a8p0FFrONh8pJqJOflmgcWa/l2eBqiMnwtH
    FpHfXkIX+AknivzpPkd55l8p0wy0Yn9KVg4ZHnSBTid6GCthslkOTa0PJvBNThgcqNgJUD
    MEOYrUB9zjUUEQWJfDkW+ZeKZQZPcmyYHQiee4NaEhjKBS79hbOaJwM/u65bBCKiGb+nKO
    MjVMT5Qqk/crtQzCN5GK4t8srGkcrnJYASLhJLpCoLzkYH3E2KGAIWwJObRNVAJfvnWQOE
    8QRuFHEjrf36zLULvfpDIcXs+/GMUmdvnRlOiAPvAxjVFE2YiPivVeKakxaYnmlH9x9+dB
    XWDEn6Jqh+Bjq8SOhss1NrqdPrcas4ECCK1HN0AthlWsbTeoorg788R+iK3RdxffjvOlXi
    7pnWvyjthjKbF23l7kqNQxe3D7/+3TocaKxw32aZpvTiTS9SHdll+en5brLA
X-Me-Proxy: <xmx:qZ0Aa6tPieTw_WddPX0kKWlzdh-N4aRXTX_v3job994M9bW8LBC_Rw>
    <xmx:qZ0Aa_YOJNCDccXDxWVbwsg2Xg2PYju-m4blgVUyDOG-Od49dtTXhA>
    <xmx:qZ0AaypYuMQmEheLuPdRhhXen03Dh9EHuiXoiQ1iiZx3sdC7lzdhXw>
    <xmx:qZ0Aa88yFtbeCa8locNlVVY8htFJb_ZYbcdlgnPQ13GhbHMMQSU67Q>
    <xmx:qZ0Aa5-l7IBHh_u2Qlc2dLIKJ7ZZq-wRkVNAdH_YBNpsYZiJlN5_scqd>
Feedback-ID: i61d64b6b:Fastmail
X-Mailer: MessagingEngine.com Webmail Interface
MIME-Version: 1.0
X-Threadid: AEMJ_ZX8F-0g
Content-Type: multipart/mixed;
 boundary=677a568d2b4536d55b49c64fcdebef729926b28a
X-Debian-User: lamby
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2003766
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 63
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 20 Nov 2026 11:20:52 -0800
X-Original-Message-ID: <179520223231.6568.14839566696937388409@17c3b96508d9>