Bug 1405412 - Post: Remove JDK repackaging script. r=dustin draft
authorNick Alexander <nalexander@mozilla.com>
Thu, 05 Oct 2017 16:57:40 -0700
changeset 676222 a7cf11ac0819dc6f822086e1765495a3696712fa
parent 676221 e1470a64d7607e3e86c4be65a242ae80381106b6
child 676225 e0105236851858075606eb1a481df85cd7191922
push id83430
push usernalexander@mozilla.com
push dateFri, 06 Oct 2017 20:44:14 +0000
Bug 1405412 - Post: Remove JDK repackaging script. r=dustin I don't think (the output of) this script is used anywhere. MozReview-Commit-ID: DwMFtpozjNL
deleted file mode 100755
--- a/taskcluster/scripts/builder/build-android-dependencies/repackage-jdk-centos.sh
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash -vex
-set -e -x
-: WORKSPACE ${WORKSPACE:=/builds/worker/workspace}
-set -v
-mkdir -p $WORKSPACE/java
-pushd $WORKSPACE/java
-# change these variables when updating java version
-# grab the rpm and unpack it
-wget ${mirror_url_base}/${openjdk}
-wget ${mirror_url_base}/${openjdk_devel}
-rpm2cpio $openjdk | cpio -ivd
-rpm2cpio $openjdk_devel | cpio -ivd
-cd usr/lib/jvm
-mv $jvm_openjdk_dir java_home
-# cacerts is a relative symlink, which doesn't work when we repackage.  Make it
-# absolute.  We could use tar's --dereference option, but there's a subtle
-# difference between making the symlink absolute and using --dereference.
-# Making the symlink absolute lets the consuming system set the cacerts; using
-# --dereference takes the producing system's cacerts and sets them in stone.  We
-# prefer the flexibility of the former.
-rm java_home/jre/lib/security/cacerts
-ln -s /etc/pki/java/cacerts java_home/jre/lib/security/cacerts
-# tzdb.dat is an absolute symlink, which might not work when we
-# repackage.  Copy the underlying timezone database.  Copying the
-# target file from the toolchain producing system avoids requiring the
-# consuming system to have java-tzdb installed, which would bake in a
-# subtle dependency that has been addressed in modern versions of
-# CentOS.  See https://bugzilla.redhat.com/show_bug.cgi?id=1130800 for
-# discussion.
-rm java_home/jre/lib/tzdb.dat
-cp /usr/share/javazi-1.8/tzdb.dat java_home/jre/lib/tzdb.dat
-# document version this is based on
-echo "Built from ${mirror_url_Base}
-    ${openjdk}
-    ${openjdk_devel}
-Run through rpm2cpio | cpio, and /usr/lib/jvm/${jvm_openjdk_dir} renamed to 'java_home'." > java_home/VERSION