diff options
author | Werner Koch <wk@gnupg.org> | 2014-11-05 08:56:52 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2014-11-05 15:29:41 +0100 |
commit | 24028875848f7e677e6c99581aa4e390633d571d (patch) | |
tree | 60316c32d86e29c55a03306f7b44eb0c18ca2921 /build-aux | |
parent | build: Update README.maint. (diff) | |
download | gnupg2-24028875848f7e677e6c99581aa4e390633d571d.tar.xz gnupg2-24028875848f7e677e6c99581aa4e390633d571d.zip |
speedo: Do not not assume GNU tar.
--
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/speedo.mk | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/build-aux/speedo.mk b/build-aux/speedo.mk index 8e0ef4efa..b7bcf06ee 100644 --- a/build-aux/speedo.mk +++ b/build-aux/speedo.mk @@ -421,11 +421,13 @@ speedo_pkg_gpa_configure = \ speedo_pkg_gpgex_configure = \ --with-gpg-error-prefix=$(idir) \ - --with-libassuan-prefix=$(idir) + --with-libassuan-prefix=$(idir) \ + --enable-gpa-only speedo_pkg_w64_gpgex_configure = \ --with-gpg-error-prefix=$(idir6) \ - --with-libassuan-prefix=$(idir6) + --with-libassuan-prefix=$(idir6) \ + --enable-gpa-only # @@ -741,15 +743,16 @@ $(stampdir)/stamp-$(1)-00-unpack: $(stampdir)/stamp-directories elif [ -n "$$$${tar}" ]; then \ echo "speedo: unpacking $(1) from $$$${tar}"; \ case "$$$${tar}" in \ - *.gz) opt=z ;; \ - *.bz2) opt=j ;; \ - *.xz) opt=J ;; \ - *) opt= ;; \ + *.gz) pretar=zcat ;; \ + *.bz2) pretar=bzcat ;; \ + *.xz) pretar=xzcat ;; \ + *) pretar=cat ;; \ esac; \ [ -f tmp.tgz ] && rm tmp.tgz; \ case "$$$${tar}" in \ - /*) tar x$$$${opt}f - < $$$${tar} ;; \ - *) wget -q -O - $$$${tar} | tee tmp.tgz | tar x$$$${opt}f - ;; \ + /*) $$$${pretar} < $$$${tar} | tar xf - ;; \ + *) wget -q -O - $$$${tar} | tee tmp.tgz \ + | $$$${pretar} | tar x$$$${opt}f - ;; \ esac; \ if [ -f tmp.tgz ]; then \ if [ -n "$$$${sha1}" ]; then \ |