CI builds of openjdk-8 yield bad file permissions and a broken java installation

Bug #1243851 reported by Andrew McDermott
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro OpenEmbedded
Fix Released
Critical
Andrew McDermott

Bug Description

Downloading an image from snapshots.linaro.org (from around 13.10 onwards) yields a broken installation of Java.

The file permissions on some files are 0600 which I suspect may be a umask problem during the build as my local builds don't exhibit the same issue. Example of broken permissions:

root@genericarmv8:/usr/lib/jvm/java-8-openjdk# find . -perm 0600
./lib/jconsole.jar
./lib/tools.jar
./lib/ct.sym
./lib/dt.jar
./jre/lib/charsets.jar
./jre/lib/jsse.jar
./jre/lib/jce.jar
./jre/lib/security/US_export_policy.jar
./jre/lib/security/local_policy.jar
./jre/lib/ext/localedata.jar
./jre/lib/ext/nashorn.jar
./jre/lib/ext/sunpkcs11.jar
./jre/lib/ext/zipfs.jar
./jre/lib/ext/sunec.jar
./jre/lib/ext/sunjce_provider.jar
./jre/lib/ext/dnsns.jar
./jre/lib/ext/cldrdata.jar

which means things like java will fail to compile a program (when run as a non-root user).

We can fix this in two ways: 1) change umask on build server (assuming this is the issue) or 2) update the do_install script for openjdk-8 to correct file permission for group and other. I favour 2.

However, right now java is broken for 13.10.

Changed in linaro-oe:
importance: Undecided → Critical
milestone: none → 13.10
Changed in linaro-oe:
assignee: nobody → Andrew McDermott (frobware)
Changed in linaro-oe:
status: New → Fix Committed
Revision history for this message
Andrew McDermott (frobware) wrote :

If you are running 13.10 then the immediate fix is:

 # chown -R go+r /usr/lib/jvm/java-8-openjdk/

Changed in linaro-oe:
milestone: 13.10 → 13.11
Fathi Boudra (fboudra)
Changed in linaro-oe:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.