rpm packaging: allow any version of tar
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 12 Feb 2015 09:53:33 +0000 (11:53 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 12 Feb 2015 09:53:33 +0000 (11:53 +0200)
Relax the tar dependency by allowing any version of tar to be used.
Initially, the requirement for tar < v1.27 was because the tar gnu
format changed a bit between v1.26 and v1.27 (more specifically the
mode/time fields of @LongLink headers). Thus, the delta might not apply
and tarballs committed (with pristine-tar) on a system with old tar
could possibly not be checked out on a system with newer tar (and vice
versa). Debian has a patched tar program (PRISTINE_TAR_COMPAT patch)
that restores the old tar format when pristine-tar is used (pristine-tar
sets the PRISTINE_TAR_COMPAT environment variable which the tar program
looks at).

However, it turns out that we do not suffer this problem (and do not
need patched tar) in Tizen tools. We have for a long time had
"Use-posix-tar-format-by-default.patch" which makes pristine-tar to
always use the posix tar format, regardless of the underlying system.
Thus, virtually all pristine-tar delta in Tizen packages should have
been generated using the posix tar format (which has not changed) and
delta should apply cleanly.

Change-Id: Ib0f203f69dc4ccb7a9ca9e8346d69522c0507734
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
packaging/pristine-tar.spec

index eea16d82596723467505bcf6bf774c51edffa1e0..d4baed1763b6f4e7cd1f4f389a5c551ce00c5403 100644 (file)
@@ -16,11 +16,7 @@ Patch5:     0006-Add-.gbp.conf.patch
 Patch6:     0007-Use-posix-tar-format-by-default.patch
 Patch7:     0008-Mangle-PAX-headers-when-using-posix-tar-format.patch
 Patch8:     0009-HACK-workaround-for-some-broken-pristine-tar-branche.patch
-%if 0%{?fedora} || 0%{?centos_version} || 0%{?centos_ver}
-Requires:   tar < 2:1.27
-%else
-Requires:   tar < 1.27
-%endif
+Requires:   tar
 Requires:   gzip
 Requires:   bzip2
 %if 0%{?suse_version} >= 1210