Bug 245957 - [exp-run] reproducible builds
Summary: [exp-run] reproducible builds
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL: https://reviews.freebsd.org/D24586
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-27 08:03 UTC by Baptiste Daroussin
Modified: 2020-05-22 13:03 UTC (History)
2 users (show)

See Also:
bapt: exp-run?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Baptiste Daroussin freebsd_committer 2020-04-27 08:03:49 UTC
One step further in reproducible builds.

Activate SOURCE_DATE_EPOCH env var each time a distinfo provides a timestamp
and pass it to pkg create.
Comment 1 Antoine Brodin freebsd_committer 2020-04-27 22:33:54 UTC
There is a problem with at least all python 2.7 ports:

# pkg check -s -a
Checking all packages:  57%
py27-setuptools-44.0.0: checksum mismatch for /usr/local/lib/python2.7/site-packages/pkg_resources/__init__.pyc
py27-setuptools-44.0.0: checksum mismatch for /usr/local/lib/python2.7/site-packages/pkg_resources/_vendor/__init__.pyc
py27-setuptools-44.0.0: checksum mismatch for /usr/local/lib/python2.7/site-packages/pkg_resources/_vendor/appdirs.pyc
py27-setuptools-44.0.0: checksum mismatch for /usr/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/__about__.pyc
py27-setuptools-44.0.0: checksum mismatch for /usr/local/lib/python2.7/site-packages/pkg_resources/_vendor/packaging/__init__.pyc
Comment 2 Baptiste Daroussin freebsd_committer 2020-05-22 09:04:40 UTC
Interesting enough I do not reproduce the problem locally with python 2.7
Comment 3 Baptiste Daroussin freebsd_committer 2020-05-22 09:07:48 UTC
never mind, I just did
Comment 4 Baptiste Daroussin freebsd_committer 2020-05-22 09:17:19 UTC
Updated marking python < 3.7 as not reproducible: https://www.python.org/dev/peps/pep-0552/