Closed Bug 1254233 Opened 9 years ago Closed 9 years ago

cacerts is a broken symlink in java_home-1.7.0-openjdk-1.7.0.85.x86_64.tar.xz

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(firefox48 fixed)

RESOLVED FIXED
Tracking Status
firefox48 --- fixed

People

(Reporter: nalexander, Assigned: nalexander)

References

Details

I'm seeing errors in some experimental TaskCluster jobs that boil down to a missing cacerts file in the tooltool-distributed Java toolchain. The issue is that the packaged cacerts file (jre/lib/security/cacerts) symlinks into ../../*/../etc/pki/java/cacerts, and the relative symlink is wrong after unpacking.
We have a script to generate this, which I could fix to hard-copy the cacerts file out of the system; or to link absolutely to /etc/pki/java/cacerts (better); but the whole thing is pretty fragile. dustin: How do I invoke the script in TaskCluster? (https://dxr.mozilla.org/mozilla-central/source/testing/taskcluster/scripts/misc/repackage-jdk-centos.sh is the script.)
Flags: needinfo?(dustin)
When I wrote it, things were still a little young in taskcluster-land to run that script automatically. But Ted later set up https://dxr.mozilla.org/mozilla-central/source/testing/docker/desktop-build/bin/checkout-script.sh so you should be able to run a task with something like `["bash", "-c" "bin/checkout-script.sh && ./repackage-jdk-centos.sh"]` as the command, with SCRIPT_PATH set correctly. I'd start with an existing linux build task like https://tools.taskcluster.net/task-inspector/#GKpWpoSISJig2G3QXSYPyA/ and choose "Edit and re-create", then adjust the command and the environment variables. You could also pretty easily run the script locally. The important thing is that it's in tree so the next person to need to tweak the tarball has a solid foundation; that it's actually run in automation isn't critical.
Flags: needinfo?(dustin)
I took a piece of Bug 1252928 and landed it as this ticket.
Assignee: nobody → nalexander
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Component: General Automation → General
You need to log in before you can comment on or make changes to this bug.