Package: binutils-doc
Followup-For: Bug #1092870
Control: tags -1 patch

On Sun, 12 Jan 2025 15:21:06 +0000, I wrote:
> I'll provide an updated gprofng-examples-tgz-deterministic.diff
> patch in a few moments to resolve these two items, and also to add
> the recommended[1] 'mtime' and 'pax-option' arguments to the tar
> command-line.

Please find the updated patch attached.  I'll commence a test build
of this locally using reprotest today.

Regards,
James
Author: James Addison <j...@jp-hosting.net>
Description: Generate a deterministic gprofng example documentation tarball
Bug-Debian: https://bugs.debian.org/1090395
Bug-Debian: https://bugs.debian.org/1092870

--- a/gprofng/doc/Makefile.am
+++ b/gprofng/doc/Makefile.am
@@ -61,7 +61,7 @@ EXTRA_DIST = $(man_MANS) version.texi
 info: $(man_MANS)
 
 examples.tar.gz:
-       $(AM_V_at)( tar czf $@ $(srcdir)/../examples )
+       $(AM_V_at)( tar czf $@ --sort=name --mtime="@${SOURCE_DATE_EPOCH}" 
--owner=0 --group=0 --numeric-owner --pax-option
=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=cttime --mode=a=rX,u+w 
$(srcdir)/../examples )
 
 .PHONY: install-data-local
 
--- a/gprofng/doc/Makefile.in
+++ b/gprofng/doc/Makefile.in
@@ -895,7 +895,7 @@ gprofng-display-text.1: $(srcdir)/gprofn
 info: $(man_MANS)
 
 examples.tar.gz:
-       $(AM_V_at)( tar czf $@ $(srcdir)/../examples )
+       $(AM_V_at)( tar czf $@ --sort=name --mtime="@${SOURCE_DATE_EPOCH}" 
--owner=0 --group=0 --numeric-owner --pax-option
=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=cttime --mode=a=rX,u+w 
$(srcdir)/../examples )
 
 .PHONY: install-data-local
 

Reply via email to