Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:GA
groff-full
0001-make-package-build-reproducible.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-make-package-build-reproducible.patch of Package groff-full
From 1da8981ac5717b770684caf25e68e29f17a51c11 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" <bwiedemann@suse.de> Date: Tue, 22 Dec 2020 04:51:23 +0100 Subject: [PATCH 1/2] make package build reproducible Date: 2018-11-01 sometimes our patches touch .man input files and mdate picks up their mtime for use in man-page headers so we clamp the mtime to SOURCE_DATE_EPOCH if set similar to https://www.fabiankeil.de/sourcecode/electrobsd/ElectroBSD-r312620-6cfa243f1516/0079-contrib-groff-mdate.sh-Use-EPOCH_DATE-when-set.diff upstream commit 677274dafc5dd5f79f2a6d16270b21d2f5a16c5b rewrote it to similar perl, too --- mdate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mdate.sh b/mdate.sh index d5ef4135..5b0372cd 100644 --- a/mdate.sh +++ b/mdate.sh @@ -19,4 +19,7 @@ # # Print the modification date of $1 `nicely'. -perl -MPOSIX -le 'print strftime("%d %B %Y", localtime((stat $ARGV[0])[9]))' $1 +perl -MPOSIX -le ' +$t=((stat $ARGV[0])[9]); +$t=$ENV{SOURCE_DATE_EPOCH} if($ENV{SOURCE_DATE_EPOCH} && $t > $ENV{SOURCE_DATE_EPOCH}); +print strftime("%d %B %Y", gmtime($t))' $1 -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor