From: Markus Lehtonen Date: Thu, 12 Feb 2015 09:53:33 +0000 (+0200) Subject: rpm packaging: allow any version of tar X-Git-Tag: tizen/1.32-20150212~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e1e599ce54b0a17e6c35733f1cd457e5ded518dd;p=tools%2Fpristine-tar.git rpm packaging: allow any version of tar 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 --- diff --git a/packaging/pristine-tar.spec b/packaging/pristine-tar.spec index eea16d8..d4baed1 100644 --- a/packaging/pristine-tar.spec +++ b/packaging/pristine-tar.spec @@ -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