Source: python-cooler
Severity: normal
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: umask timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

The generated tarball /usr/share/doc/python3-cooler/tests.tar.xz
includes the file mode and timestamp of the archived files:

  
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/diffoscope-results/python-cooler.html

  drwxr-xr-x ... 2023-02-03·11:19:21.000000·tests/
vs.
  drwxrwxr-x ... 2022-01-01·05:00:28.000000·tests/


The attached patch fixes this by passing the --mode and --mtime
arguments to the tar command used in debian/rules.


Thanks for maintaining python-cooler!


live well,
  vagrant
From 937dcde974e616b7d96592db3d38e66cc364f60f Mon Sep 17 00:00:00 2001
From: Vagrant Cascadian <vagr...@reproducible-builds.org>
Date: Sat, 8 Jan 2022 05:12:21 +0000
Subject: [PATCH] debian/rules: Pass --mtime and --mode arguments to tar for
 example tests tarball.

https://reproducible-builds.org/docs/archives/
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index efbc531..3d40ce9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,4 +9,4 @@ export PYBUILD_NAME=cooler
 
 override_dh_installexamples:
 	dh_installexamples
-	cd debian/python3-$(PYBUILD_NAME)-examples/usr/share/doc/python3-$(PYBUILD_NAME) && tar --create --owner=0 --group=0 --numeric-owner --sort=name --file tests.tar.xz tests && rm -rf tests
+	cd debian/python3-$(PYBUILD_NAME)-examples/usr/share/doc/python3-$(PYBUILD_NAME) && tar --create --owner=0 --group=0 --numeric-owner --sort=name --mtime="@$(SOURCE_DATE_EPOCH)" --mode=u=wrX,og=rX --file tests.tar.xz tests && rm -rf tests
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature

Reply via email to