#49347 Allow setting build date for reproducable builds
Closed: wontfix 6 years ago Opened 6 years ago by firstyear.

Issue Description

From the 389-devel mailing list:

in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.

 buildnum.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/buildnum.pl b/buildnum.pl
index 6d8804f..8db83da 100755
--- a/buildnum.pl
+++ b/buildnum.pl
@@ -31,7 +31,7 @@ if ($opt_H) {exitHelp();}
 $platdir = $opt_p;

 # Get current time
-@now = gmtime;
+@now = gmtime($ENV{SOURCE_DATE_EPOCH} || time);

 # Format buildnum as YYYY.DDD.HHMM
 $year = $now[5] + 1900;

commit 2196614
To ssh://git@pagure.io/389-ds-base.git
fd851b3..2196614 master -> master

Metadata Update from @firstyear:
- Custom field component adjusted to None
- Custom field origin adjusted to None
- Custom field reviewstatus adjusted to ack
- Custom field type adjusted to None
- Custom field version adjusted to None
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

6 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/2406

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: fixed)

3 years ago

Login to comment on this ticket.

Metadata