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

RESOLVED FIXED

Status

RESOLVED FIXED
3 years ago
5 months ago

People

(Reporter: nalexander, Assigned: nalexander)

Tracking

unspecified

Firefox Tracking Flags

(firefox48 fixed)

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.
(Assignee)

Comment 1

3 years ago
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)
(Assignee)

Comment 4

3 years ago
I took a piece of Bug 1252928 and landed it as this ticket.
Assignee: nobody → nalexander
Status: NEW → ASSIGNED

Comment 5

3 years ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/a5d51397e3fa
Status: ASSIGNED → RESOLVED
Last Resolved: 3 years ago
status-firefox48: --- → fixed
Resolution: --- → FIXED
Component: General Automation → General
Product: Release Engineering → Release Engineering
You need to log in before you can comment on or make changes to this bug.