SPECS: java-sun.spec - avoid executing upstream binaries on unpack

glen glen at pld-linux.org
Tue Aug 21 09:03:58 CEST 2007


Author: glen                         Date: Tue Aug 21 07:03:58 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- avoid executing upstream binaries on unpack

---- Files affected:
SPECS:
   java-sun.spec (1.186 -> 1.187) 

---- Diffs:

================================================================
Index: SPECS/java-sun.spec
diff -u SPECS/java-sun.spec:1.186 SPECS/java-sun.spec:1.187
--- SPECS/java-sun.spec:1.186	Tue Aug 21 08:37:43 2007
+++ SPECS/java-sun.spec	Tue Aug 21 09:03:53 2007
@@ -261,10 +261,10 @@
 %setup -q -T -c -n jdk%{_dir_ver}
 cd ..
 %ifarch %{ix86}
-sh %{SOURCE0} --accept-license --unpack
+%{__unzip} -q %{SOURCE0} || :
 %endif
 %ifarch %{x8664}
-sh %{SOURCE1} --accept-license --unpack
+%{__unzip} -q %{SOURCE1} || :
 %endif
 cd -
 %ifarch %{ix86}
@@ -273,6 +273,11 @@
 %patch0 -p1
 %endif
 
+# unpack packed jar files -- in %%prep as it is done "in place"
+for pack in $(find . -name '*.pack'); do
+	bin/unpack200 -r $pack ${pack%.pack}.jar
+done
+
 cp %{SOURCE2} Test.java
 
 %build
@@ -827,6 +832,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.187  2007/08/21 07:03:53  glen
+- avoid executing upstream binaries on unpack
+
 Revision 1.186  2007/08/21 06:37:43  glen
 - outdated
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/java-sun.spec?r1=1.186&r2=1.187&f=u



More information about the pld-cvs-commit mailing list