[packages/crossnacl-gcc] use xz source

glen glen at pld-linux.org
Wed Oct 3 19:39:49 CEST 2012


commit 9c1398598e1160b39281eaa647feb8bae9cb7533
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Sep 13 22:17:21 2012 +0300

    use xz source

 crossnacl-gcc.spec | 2 ++
 get-source.sh      | 8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/crossnacl-gcc.spec b/crossnacl-gcc.spec
index 93436db..56efbcd 100644
--- a/crossnacl-gcc.spec
+++ b/crossnacl-gcc.spec
@@ -20,6 +20,8 @@ BuildRequires:	gmp-c++-devel
 BuildRequires:	gmp-devel
 BuildRequires:	mpfr-devel
 BuildRequires:	ppl-pwl-devel
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
 %if %{without bootstrap}
 BuildRequires:	crossnacl-newlib
 %endif
diff --git a/get-source.sh b/get-source.sh
index b900b8c..134cc03 100755
--- a/get-source.sh
+++ b/get-source.sh
@@ -60,15 +60,15 @@ version=$(git show $githash:gcc/BASE-VER)
 shorthash=$(git rev-parse --short $githash)
 prefix=$package-$version-git$shorthash
 
-if [ -f $prefix.tar.bz2 ]; then
-	echo "Tarball $prefix.tar.bz2 already exists at $shorthash"
+if [ -f $prefix.tar.xz ]; then
+	echo "Tarball $prefix.tar.xz already exists at $shorthash"
 	rm -f NACL_REVISIONS.sh DEPS.py
 	exit 0
 fi
 
 git archive $githash --prefix $prefix/ > $prefix.tar
-bzip2 -9 $prefix.tar
+xz -9 $prefix.tar
 
-../dropin $prefix.tar.bz2
+../dropin $prefix.tar.xz
 
 rm -f NACL_REVISIONS.sh DEPS.py
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/crossnacl-gcc.git/commitdiff/bae6856c4c54f72eb51080b8ae8b90db2bb437b5



More information about the pld-cvs-commit mailing list