Skip to content

Commit

Permalink
use --mtime='2015-10-21 00:00Z'
Browse files Browse the repository at this point in the history
as per https://reproducible-builds.org/docs/archives/

no longer use find / touch as no longer needed

use strip-nondeterminism on upstream and debian archive
  • Loading branch information
Patrick Schleizer committed Jan 20, 2017
1 parent 762fadc commit f8615d7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions usr/share/genmkfile/make-helper.bsh
Expand Up @@ -593,8 +593,7 @@ make_dist() {

pushd "$temp_folder/$make_upstream_tarball_source_folder_name"

## Required to make deterministic.
find "." -not -iwholename '*.git*' -exec touch --no-dereference --date="Wed Sep 30 16:30:05 UTC 2015" {} +
#find "." -not -iwholename '*.git*' -exec touch --no-dereference --date="Wed Sep 30 16:30:05 UTC 2015" {} +

## No longer using --transform because that does not work with symlinks.
## (Important for 'corridor' package.)
Expand All @@ -611,6 +610,7 @@ make_dist() {
--owner=root --group=root --numeric-owner \
--mode=go=rX,u+rw,a-s \
--sort=name \
--mtime='2015-10-21 00:00Z' \
-T \
- \
| gzip -9 -n > "$make_upstream_tarball_real_path"
Expand All @@ -619,15 +619,16 @@ make_dist() {

rm --recursive --force "$temp_folder"

strip-nondeterminism "$make_upstream_tarball_real_path"

test -f "$make_upstream_tarball_real_path"
test -f "$make_upstream_tarball_relative_path"
}

make_debdist() {
make_function_run make_undebdist

## Required to make deterministic.
find "." -not -iwholename '*.git*' -exec touch --no-dereference --date="Wed Sep 30 16:30:05 UTC 2015" {} +
#find "." -not -iwholename '*.git*' -exec touch --no-dereference --date="Wed Sep 30 16:30:05 UTC 2015" {} +

## Not using `dpkg-source` since that does not support any other output dir than '../'.

Expand All @@ -642,11 +643,14 @@ make_debdist() {
--owner=root --group=root --numeric-owner \
--mode=go=rX,u+rw,a-s \
--sort=name \
--mtime='2015-10-21 00:00Z' \
--xz \
--file="$make_debian_tarball_absolute_path" \
-T \
-

strip-nondeterminism "$make_debian_tarball_absolute_path"

test -f "$make_debian_tarball_absolute_path"
}

Expand Down

0 comments on commit f8615d7

Please sign in to comment.