[packages/crossnacl-newlib] - update also newlib-libc-script and pthread.h

draenog draenog at pld-linux.org
Sat Jul 7 11:14:06 CEST 2012


commit ad4b851c16c2c6c286f07e26bfa6c83cc3d55b0d
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Fri Jul 6 23:46:00 2012 +0000

    - update also newlib-libc-script and pthread.h
    
    Changed files:
        crossnacl-newlib.spec -> 1.5
        get-source.sh -> 1.2

 crossnacl-newlib.spec |  1 -
 get-source.sh         | 22 ++++++++++++++--------
 2 files changed, 14 insertions(+), 9 deletions(-)
---
diff --git a/crossnacl-newlib.spec b/crossnacl-newlib.spec
index f1d45ec..425a4ca 100644
--- a/crossnacl-newlib.spec
+++ b/crossnacl-newlib.spec
@@ -11,7 +11,6 @@ Source1:	nacl-headers-20.0.1132.47.tar.bz2
 # Source1-md5:	b0c641bbc1046d066c5d4032e7421fc6
 # Taken from chromium-15.0.874.106/native_client/tools/newlib-libc-script
 Source2:	newlib-libc-script
-# Taken from chromium-15.0.874.106/native_client/src/untrusted/pthread/pthread.h
 Source3:	pthread.h
 Source4:	get-source.sh
 URL:		http://sourceware.org/newlib/
diff --git a/get-source.sh b/get-source.sh
index c72dea3..84d5442 100644
--- a/get-source.sh
+++ b/get-source.sh
@@ -75,14 +75,20 @@ fi
 package=nacl-headers
 prefix=$package-$chrome_version
 if [ -f $prefix.tar.bz2 ]; then
-	echo "Tarball $prefix.tar.bz2 already exists at $shorthash"
-	exit 0
+	echo "Tarball $prefix.tar.bz2 already exists"
+else
+	svn co http://src.chromium.org/native_client/trunk/src/native_client/src/trusted/service_runtime@$nacl_revision $package
+	cd $package
+	./export_header.py include ../$prefix
+	cd ..
+	tar -cjf $prefix.tar.bz2 --exclude-vcs $prefix
+	../dropin $prefix.tar.bz2
 fi
-svn co http://src.chromium.org/native_client/trunk/src/native_client/src/trusted/service_runtime@$nacl_revision $package
-cd $package
-./export_header.py include ../$prefix
-cd ..
-tar -cjf $prefix.tar.bz2 --exclude-vcs $prefix
-../dropin $prefix.tar.bz2
+
+# Taken from chromium-15.0.874.106/native_client/tools/newlib-libc-script
+svn cat http://src.chromium.org/native_client/trunk/src/native_client/tools/newlib-libc-script@$nacl_revision > newlib-libc-script
+
+# Taken from chromium-15.0.874.106/native_client/src/untrusted/pthread/pthread.h
+svn cat http://src.chromium.org/native_client/trunk/src/native_client/src/untrusted/pthread/pthread.h@$nacl_revision > pthread.h
 
 rm -f NACL_REVISIONS.sh DEPS.py configure


More information about the test mailing list