summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-08-23 01:04:56 +0300
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-08-23 11:51:02 +0300
commita74d8907fb3b25f4da14e6e9db061f7f0c36c550 (patch)
treed70f9c275328d5ff672482f7133ea5ba333e6a45 /debian
parent307d234663c92fab4bbfd45e8e6031cbacde0ec1 (diff)
downloadpristine-tar-a74d8907fb3b25f4da14e6e9db061f7f0c36c550.tar.gz
pristine-tar-a74d8907fb3b25f4da14e6e9db061f7f0c36c550.tar.bz2
pristine-tar-a74d8907fb3b25f4da14e6e9db061f7f0c36c550.zip
Fix posix tar generation
Remove all timestamps the PAX extended headers of posix tar archives. Change-Id: I5db7d76be5256442d10b6ed1d35fe2b868dd693c Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog6
-rw-r--r--debian/patches/0001-pristine-gz-obey-the-XDELTA_PROGRAM-build-parameter.patch (renamed from debian/patches/0005-pristine-gz-obey-the-XDELTA_PROGRAM-build-parameter.patch)0
-rw-r--r--debian/patches/0002-implement-tar-format-guessing.patch (renamed from debian/patches/0007-implement-tar-format-guessing.patch)0
-rw-r--r--debian/patches/0003-Use-posix-tar-format-by-default.patch (renamed from debian/patches/0008-Use-posix-tar-format-by-default.patch)0
-rw-r--r--debian/patches/0004-Mangle-PAX-headers-when-using-posix-tar-format.patch (renamed from debian/patches/0009-Mangle-PAX-headers-when-using-posix-tar-format.patch)0
-rw-r--r--debian/patches/0005-Remove-all-timestamps-from-extended-PAX-headers.patch28
-rw-r--r--debian/patches/series9
7 files changed, 39 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog
index 8e9e43f..13c2c7f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+pristine-tar (1.28-2) unstable; urgency=low
+
+ * Remove all timestamps from extended PAX headers of posix tarballs
+
+ -- Markus Lehtonen <markus.lehtonen@linux.intel.com> Fri, 23 Aug 2013 11:28:41 +0300
+
pristine-tar (1.28-1) unstable; urgency=low
* Fixes Bug #998
diff --git a/debian/patches/0005-pristine-gz-obey-the-XDELTA_PROGRAM-build-parameter.patch b/debian/patches/0001-pristine-gz-obey-the-XDELTA_PROGRAM-build-parameter.patch
index b3bbab9..b3bbab9 100644
--- a/debian/patches/0005-pristine-gz-obey-the-XDELTA_PROGRAM-build-parameter.patch
+++ b/debian/patches/0001-pristine-gz-obey-the-XDELTA_PROGRAM-build-parameter.patch
diff --git a/debian/patches/0007-implement-tar-format-guessing.patch b/debian/patches/0002-implement-tar-format-guessing.patch
index 028d02b..028d02b 100644
--- a/debian/patches/0007-implement-tar-format-guessing.patch
+++ b/debian/patches/0002-implement-tar-format-guessing.patch
diff --git a/debian/patches/0008-Use-posix-tar-format-by-default.patch b/debian/patches/0003-Use-posix-tar-format-by-default.patch
index cf712c1..cf712c1 100644
--- a/debian/patches/0008-Use-posix-tar-format-by-default.patch
+++ b/debian/patches/0003-Use-posix-tar-format-by-default.patch
diff --git a/debian/patches/0009-Mangle-PAX-headers-when-using-posix-tar-format.patch b/debian/patches/0004-Mangle-PAX-headers-when-using-posix-tar-format.patch
index bb2b418..bb2b418 100644
--- a/debian/patches/0009-Mangle-PAX-headers-when-using-posix-tar-format.patch
+++ b/debian/patches/0004-Mangle-PAX-headers-when-using-posix-tar-format.patch
diff --git a/debian/patches/0005-Remove-all-timestamps-from-extended-PAX-headers.patch b/debian/patches/0005-Remove-all-timestamps-from-extended-PAX-headers.patch
new file mode 100644
index 0000000..4d5cbe2
--- /dev/null
+++ b/debian/patches/0005-Remove-all-timestamps-from-extended-PAX-headers.patch
@@ -0,0 +1,28 @@
+From: Markus Lehtonen <markus.lehtonen@linux.intel.com>
+Date: Fri, 23 Aug 2013 00:47:12 +0300
+Subject: Remove all timestamps from extended PAX headers
+
+The timestamps can break pristine-tar generation as they are different
+every time an archive is generated from git (when using tree id
+instead of commit id as the sha-1 to checkout). Git uses the current
+time as the modification time of files when a tree is archived.
+
+Change-Id: I25fc631c4f1c62fc5ec2c1a8112dd01c643aae90
+Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
+---
+ pristine-tar | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pristine-tar b/pristine-tar
+index 3e92a74..19af965 100755
+--- a/pristine-tar
++++ b/pristine-tar
+@@ -360,7 +360,7 @@ sub recreatetarball_helper {
+ if ($options{tar_format} eq 'posix') {
+ # Mangle PAX headers so that created tarballs are always identical
+ # so that delta can be successfully applied
+- push @cmd, ('--pax-option=exthdr.name=%d/PaxHeaders/%f,ctime:=0');
++ push @cmd, ('--pax-option=exthdr.name=%d/PaxHeaders/%f,mtime:=0,atime:=0,ctime:=0');
+ }
+ }
+
diff --git a/debian/patches/series b/debian/patches/series
index c034b74..7e32c85 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
-0005-pristine-gz-obey-the-XDELTA_PROGRAM-build-parameter.patch
-0007-implement-tar-format-guessing.patch
-0008-Use-posix-tar-format-by-default.patch
-0009-Mangle-PAX-headers-when-using-posix-tar-format.patch
+0001-pristine-gz-obey-the-XDELTA_PROGRAM-build-parameter.patch
+0002-implement-tar-format-guessing.patch
+0003-Use-posix-tar-format-by-default.patch
+0004-Mangle-PAX-headers-when-using-posix-tar-format.patch
+0005-Remove-all-timestamps-from-extended-PAX-headers.patch