Bug#1039044: python-marshmallow-sqlalchemy: reproducible builds: embeds current year in documentation

Vagrant Cascadian vagrant at reproducible-builds.org
Sun Jun 25 00:39:59 BST 2023


Source: python-marshmallow-sqlalchemy
Severity: normal
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

The build year is embedded in copyright statements in various .html
documentation:

  https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/python-marshmallow-sqlalchemy.html

  /usr/share/doc/python-marshmallow-sqlalchemy-doc/html/_modules/index.html

  ······©Steven·Loria·and·contributors·2024.
  vs.
  ······©Steven·Loria·and·contributors·2023.

I have attached two different patches with two different approaches to
fix this issue.

The first patch simply removes the year from the copyright assertions
from docs/conf.py. I prefer this approach, as dynamically generating the
copyright dates during the build is not correct behavior; no new
copyrighted material was generated as a result of the building at a
later date.

The second patch instead adds support for using SOURCE_DATE_EPOCH in
docs/conf.py to set the year. While this is sufficient to make it
reproducible, this is still likely to embed a year which might not match
the actual year of the copyrightable material.


According to my local tests, applying either patch should make
python-marshmallow-sqlalchemy build reproducibly on
tests.reproducible-builds.org!


Thanks for maintaining python-marshmallow-sqlalchemy!

live well,
  vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-docs-conf.py-Do-not-embed-build-year-in-documentatio.patch
Type: text/x-diff
Size: 953 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230624/08a2a125/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-doc-conf.py-if-set-use-SOURCE_DATE_EPOCH-to-set-copy.patch
Type: text/x-diff
Size: 1416 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230624/08a2a125/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/reproducible-bugs/attachments/20230624/08a2a125/attachment.sig>


More information about the Reproducible-bugs mailing list