5d847512a3
- updated to aarch64-shenandoah-jdk8u151-b12 (from aarch64-port/jdk8u-shenandoah) of hotspot - used aarch64-port-jdk8u-aarch64-jdk8u151-b12.tar.xz as new sources - used aarch64-port-jdk8u-shenandoah-aarch64-shenandoah-jdk8u151-b12.tar.xz as new sources for hotspot - tapset updated to 3.6pre02 - policies adapted to new limited/unlimited schmea - above acomapnied by c-j-c 3.3 - alligned patches and added PPC ones (thanx to gnu_andrew) - added patch209: 8035496-hotspot.patch - added patch210: suse_linuxfilestore.patc
45 lines
936 B
Bash
45 lines
936 B
Bash
#!/bin/sh
|
|
set -e
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=1142153
|
|
M=META-INF/MANIFEST.MF
|
|
#P=/usr/lib/jvm/java/jre/lib/security/policy
|
|
P=$1/lib/security/policy
|
|
ERRORS=0
|
|
for type in unlimited limited ; do
|
|
for f in local_policy.jar US_export_policy.jar ; do
|
|
ORIG=$P/$type/$f
|
|
echo "processing $f ($ORIG)"
|
|
if [ ! -f $ORIG ]; then
|
|
echo "File not found! $ORIG"
|
|
let ERRORS=$ERRORS+1
|
|
continue
|
|
fi
|
|
d=`mktemp -d`
|
|
NW=$d/$f
|
|
pushd $d
|
|
jar xf $ORIG
|
|
cat $M
|
|
# sed -i "s/Created-By.*/Created-By: 1.7.0/g" $M
|
|
sed -i "s/Created-By.*/Created-By: $2/g" $M
|
|
cat $M
|
|
find . -exec touch -t 201401010000 {} +
|
|
zip -rX $f *
|
|
popd
|
|
echo "replacing $ORIG"
|
|
touch -t 201401010000 $ORIG
|
|
md5sum $ORIG
|
|
sha256sum $ORIG
|
|
echo "by $NW"
|
|
md5sum $NW
|
|
sha256sum $NW
|
|
touch -t 201401010000 $NW
|
|
cp $NW $ORIG
|
|
md5sum $ORIG
|
|
sha256sum $ORIG
|
|
touch -t 201401010000 $ORIG
|
|
rm -rfv $d
|
|
done
|
|
done
|
|
|
|
exit $ERRORS
|