Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:2024:games
yadex
reproducible.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File reproducible.patch of Package yadex
Author: Bernhard M. Wiedemann <bwiedemann suse de> Date: 2019-07-11 Allow to override build date with SOURCE_DATE_EPOCH 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. Also use UTC/gmtime to be independent of timezone. Index: yadex-1.7.0/scripts/youngest =================================================================== --- yadex-1.7.0.orig/scripts/youngest +++ yadex-1.7.0/scripts/youngest @@ -9,8 +9,11 @@ foreach $fic (@ARGV) { ($dev, $ino, $mode, $nlink, $uid, $gid, $rdev, $size, $atime, $mtime, $ctime, $blksize, $blocks) = stat $fic; - $loc_ti = localtime $mtime; $mtime_max = $mtime if $mtime_max < $mtime; } -($ss, $mi, $hh, $jj, $mm, $aa) = localtime $mtime_max; +if($ENV{SOURCE_DATE_EPOCH} && $mtime_max > $ENV{SOURCE_DATE_EPOCH}) +{ + $mtime_max = $ENV{SOURCE_DATE_EPOCH}; +} +($ss, $mi, $hh, $jj, $mm, $aa) = gmtime $mtime_max; printf "%04d-%02d-%02d", $aa + 1900, $mm + 1, $jj;
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