Accepting request 503510 from home:bmwiedemann:reproducible

Call fdupes -o name to make sure we always create symlinks in the same direction to make builds reproducible

OBS-URL: https://build.opensuse.org/request/show/503510
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=93
This commit is contained in:
Marcus Rückert 2017-06-14 13:35:48 +00:00 committed by Git OBS Bridge
parent 75d1c0de7c
commit a6b3ba995c
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 13 21:11:20 UTC 2017 - bwiedemann@suse.com
- Call fdupes -o name to make sure we always create symlinks
in the same direction to make builds reproducible
-------------------------------------------------------------------
Tue Mar 1 01:01:56 UTC 2016 - mrueckert@suse.de

View File

@ -68,7 +68,7 @@ cd $GEMSPEC_SOURCE_DIR && %{?gem_binary}%{!?gem_binary:/usr/bin/gem} build --ver
for gem in $(/usr/bin/ruby-find-versioned gem) ; do \
gem_base="$($gem env gemdir)" \
/usr/lib/rpm/gem_build_cleanup.sh %{buildroot}${gem_base} \
fdupes -q -p -n -r %{buildroot}${gem_base} | \
fdupes -q -p -n -r -o name %{buildroot}${gem_base} | \
while read _file; do \
if test -z "$_target" ; then \
_target="$_file"; \