From d37273be0dc5f3b6b9fb30b95ba3978772f30dd4 Mon Sep 17 00:00:00 2001 From: Alexander Færøy Date: Fri, 10 Jul 2020 02:31:35 +0200 Subject: release: Patches to make tarball reproducible Closes #26299 Signed-off-by: David Goulet --- doc/asciidoc-helper.sh | 4 +++- doc/nofooter.conf | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 doc/nofooter.conf diff --git a/doc/asciidoc-helper.sh b/doc/asciidoc-helper.sh index a3ef53f884..2b63154441 100755 --- a/doc/asciidoc-helper.sh +++ b/doc/asciidoc-helper.sh @@ -12,6 +12,8 @@ if [ $# != 3 ]; then exit 1; fi +export SOURCE_DATE_EPOCH=$(git show --no-patch --format='%ct') + output=$3 if [ "$1" = "html" ]; then @@ -19,7 +21,7 @@ if [ "$1" = "html" ]; then base=${output%%.html.in} if [ "$2" != none ]; then - TZ=UTC "$2" -d manpage -o $output $input; + TZ=UTC "$2" -f "$(dirname $0)/nofooter.conf" -d manpage -o "$output" "$input"; else echo "=================================="; echo; diff --git a/doc/nofooter.conf b/doc/nofooter.conf new file mode 100644 index 0000000000..f16d76b2da --- /dev/null +++ b/doc/nofooter.conf @@ -0,0 +1,3 @@ +# There is a single space on the footer-text line to make it reproducible. +[footer-text] + -- cgit v1.2.3-54-g00ecf From 8cf6f9183c4cb8bbf6431f07c433eb7ab37a638d Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 28 Oct 2021 16:29:22 -0400 Subject: makefile: Add a reproducible dist make job Signed-off-by: David Goulet --- Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile.am b/Makefile.am index c7bc514287..7cae870706 100644 --- a/Makefile.am +++ b/Makefile.am @@ -484,3 +484,7 @@ lsp: else \ echo "No bear command found. On debian, apt install bear"; \ fi + +# Reproducible tarball. We change the tar options for this. +dist-reprod: + $(MAKE) dist am__tar="$${TAR-tar} --format=gnu --owner=root --group=root --sort=name --mtime=\"`git show --no-patch --format='%ci'`\" -chof - $(distdir)" -- cgit v1.2.3-54-g00ecf From 92fedb9f448555abbbde6ac5c73b9de0a2ba7932 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 29 Oct 2021 09:19:21 -0400 Subject: changes: Add file for ticket 26299 Signed-off-by: David Goulet --- changes/ticket26299 | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changes/ticket26299 diff --git a/changes/ticket26299 b/changes/ticket26299 new file mode 100644 index 0000000000..6b08adf53c --- /dev/null +++ b/changes/ticket26299 @@ -0,0 +1,3 @@ + o Minor feature (reproducible build): + - The repository can now build reproducible tarballs which adds the build + command "make dist-reprod" for that purpose. Closes ticket 26299. -- cgit v1.2.3-54-g00ecf