Debian Bug report logs - #1025801
sphinx: please make the build reproducible

version graph

Package: src:sphinx; Maintainer for src:sphinx is Debian Python Team <team+python@tracker.debian.org>;

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

Date: Fri, 9 Dec 2022 12:03:01 UTC

Severity: wishlist

Tags: patch

Found in version sphinx/5.3.0-2

Forwarded to https://github.com/sphinx-doc/sphinx/pull/11037

Reply or subscribe to this bug.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, reproducible-bugs@lists.alioth.debian.org, Debian Python Team <team+python@tracker.debian.org>:
Bug#1025801; Package src:sphinx. (Fri, 09 Dec 2022 12:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
New Bug report received and forwarded. Copy sent to reproducible-bugs@lists.alioth.debian.org, Debian Python Team <team+python@tracker.debian.org>. (Fri, 09 Dec 2022 12:03:04 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: sphinx: please make the build reproducible
Date: Fri, 09 Dec 2022 11:59:07 +0000
[Message part 1 (text/plain, inline)]
Source: sphinx
Version: 5.3.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs@lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0] we noticed that
sphinx could not be built reproducibly.

This is because a default argument for a method uses the path in
which that method is implemented (ie. it uses Python's __file__)
and then that (non-deterministic) default argument is included in
Sphinx's documentation. 

Patch attached that uses the typical; "fn(arg1=None) // if arg1 is
None: arg1=defaultval" pattern to avoid this.

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


Regards,

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

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Team <team+python@tracker.debian.org>:
Bug#1025801; Package src:sphinx. (Sat, 10 Dec 2022 08:51:03 GMT) (full text, mbox, link).


Acknowledgement sent to Dmitry Shachnev <mitya57@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Team <team+python@tracker.debian.org>. (Sat, 10 Dec 2022 08:51:03 GMT) (full text, mbox, link).


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

From: Dmitry Shachnev <mitya57@debian.org>
To: Chris Lamb <lamby@debian.org>, 1025801@bugs.debian.org
Subject: Re: Bug#1025801: sphinx: please make the build reproducible
Date: Sat, 10 Dec 2022 11:47:30 +0300
[Message part 1 (text/plain, inline)]
Hi Chris!

On Fri, Dec 09, 2022 at 11:59:07AM +0000, Chris Lamb wrote:
> Hi,
>
> Whilst working on the Reproducible Builds effort [0] we noticed that
> sphinx could not be built reproducibly.
>
> This is because a default argument for a method uses the path in
> which that method is implemented (ie. it uses Python's __file__)
> and then that (non-deterministic) default argument is included in
> Sphinx's documentation. 
>
> Patch attached that uses the typical; "fn(arg1=None) // if arg1 is
> None: arg1=defaultval" pattern to avoid this.

Can you please forward your patch upstream to [1]?

[1]: https://github.com/sphinx-doc/sphinx/pulls

--
Dmitry Shachnev
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Debian Python Team <team+python@tracker.debian.org>:
Bug#1025801; Package src:sphinx. (Mon, 19 Dec 2022 15:36:05 GMT) (full text, mbox, link).


Acknowledgement sent to "Chris Lamb" <lamby@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian Python Team <team+python@tracker.debian.org>. (Mon, 19 Dec 2022 15:36:05 GMT) (full text, mbox, link).


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

From: "Chris Lamb" <lamby@debian.org>
To: "Dmitry Shachnev" <mitya57@debian.org>, 1025801@bugs.debian.org
Subject: Re: Bug#1025801: sphinx: please make the build reproducible
Date: Mon, 19 Dec 2022 15:33:19 +0000
forwarded 1025801 https://github.com/sphinx-doc/sphinx/pull/11037
thanks

Dmitry Shachnev wrote:

> Can you please forward your patch upstream to [1]?
>
> [1]: https://github.com/sphinx-doc/sphinx/pulls

Done.


Regards,

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



Set Bug forwarded-to-address to 'https://github.com/sphinx-doc/sphinx/pull/11037'. Request was from "Chris Lamb" <lamby@debian.org> to control@bugs.debian.org. (Mon, 19 Dec 2022 15:36:07 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:14:21 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.