CI builds of openjdk-8 yield bad file permissions and a broken java installation
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro OpenEmbedded |
Fix Released
|
Critical
|
Andrew McDermott |
Bug Description
Downloading an image from snapshots.
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@genericarm
./lib/jconsole.jar
./lib/tools.jar
./lib/ct.sym
./lib/dt.jar
./jre/lib/
./jre/lib/jsse.jar
./jre/lib/jce.jar
./jre/lib/
./jre/lib/
./jre/lib/
./jre/lib/
./jre/lib/
./jre/lib/
./jre/lib/
./jre/lib/
./jre/lib/
./jre/lib/
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 |
Changed in linaro-oe: | |
status: | Fix Committed → Fix Released |
If you are running 13.10 then the immediate fix is:
# chown -R go+r /usr/lib/ jvm/java- 8-openjdk/