Commit 235ddf2b authored by Natanael Copa's avatar Natanael Copa
Browse files

community/openjdk8: fix permissions of *.jar

gnu find seems to not support the '-perm +006' anymore. use '-perm /006'
parent ac7fb85c
......@@ -5,7 +5,7 @@ _java_ver=8
_jdk_update=72
_jdk_build=15
pkgver=$_java_ver.$_jdk_update.$_jdk_build
pkgrel=0
pkgrel=1
pkgdesc="Sun OpenJDK 8"
url="http://openjdk.java.net"
arch="x86_64 x86"
......@@ -139,10 +139,10 @@ package() {
cp -a "$_builddir"/build/*/images/j2sdk-image/* "$pkgdir"/$INSTALL_BASE
rm "$pkgdir"/$INSTALL_BASE/src.zip
find "$pkgdir"/$INSTALL_BASE -iname "*.diz" -delete
find "$pkgdir"/$INSTALL_BASE -iname "*.debuginfo" -delete
find "$pkgdir"/$INSTALL_BASE \( -name "*.jar" -o -name "*.sym" \) \! -perm +006 \
| xargs chmod go+r
find "$pkgdir"/$INSTALL_BASE -iname "*.diz" -delete || return 1
find "$pkgdir"/$INSTALL_BASE -iname "*.debuginfo" -delete || return 1
find "$pkgdir"/$INSTALL_BASE \( -name "*.jar" -o -name "*.sym" \) \
\! -perm /006 | xargs chmod go+r || return 1
pax_mark_vm "$pkgdir"/$INSTALL_BASE
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment