The update8checksums.sh script updates the openjdk8 source archive checksums in the corresponding .inc files.
Signed-off-by: Richard Leitner <richard.leit...@skidata.com> --- docs/UPDATING.md | 6 ++-- docs/update8checksums.sh | 64 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 4 deletions(-) create mode 100755 docs/update8checksums.sh diff --git a/docs/UPDATING.md b/docs/UPDATING.md index a08cf02..87d4bf1 100644 --- a/docs/UPDATING.md +++ b/docs/UPDATING.md @@ -7,10 +7,8 @@ curl -s https://hg.openjdk.java.net/aarch32-port/jdk8u/tags | grep "jdk8u.*ga-aarch32-" 4. Adapt the CHANGESET_ID for aarch64 based on: curl -s https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah/tags | grep "aarch64-shenandoah-jdk8u.*-" -5. Adapt checksums in - * openjdk-8-release.inc - * openjdk-8-release-aarch32.inc - * openjdk-8-release-aarch64.inc +5. Adapt source archive checksums by executing the script + ./docs/update8checksums.sh 6. Check if any patch got upstreamed (and remove if so) 7. Re-apply all other patches and format them again for git: git format-patch --src-prefix=a/y/ --dst-prefix=b/y/ -n --start-number=x jdk8uXXX-ga diff --git a/docs/update8checksums.sh b/docs/update8checksums.sh new file mode 100755 index 0000000..476841b --- /dev/null +++ b/docs/update8checksums.sh @@ -0,0 +1,64 @@ +#!/bin/bash +# +# quick-hack-script for updating the openjdk 8 source archive checksums +# +#set -x +set -e + +function updateChecksums() { + echo "updating ${ARCH} checksums..." + for repo in ${REPOS}; do + repoDL="/${repo}" + [ "${repo}" == "openjdk" ] && repoDL="" + echo -n " ${ARCH}/${repo}." + wget -q "${BASEURL}${repoDL}/archive/${TAG}.tar.bz2" -O "${tmpfile}" + echo -n "." + md5="$(md5sum "${tmpfile}" | cut -d " " -f1)" + echo -n "." + sha="$(sha256sum "${tmpfile}" | cut -d " " -f1)" + echo -n "." + sed -i "s|^SRC_URI\\[${repo}.md5sum\\].*\$|SRC_URI\\[${repo}.md5sum\\] = \\\"${md5}\\\"|g" "${INCFILE}" + sed -i "s|^SRC_URI\\[${repo}.sha256sum\\].*\$|SRC_URI\\[${repo}.sha256sum\\] = \\\"${sha}\\\"|g" "${INCFILE}" + echo " done" + done +} + +REPOS="corba hotspot jaxp jaxws jdk langtools nashorn openjdk" +OPENJDK_UPDATE="$(basename "$(ls -1 recipes-core/openjdk/openjdk-8_*.bb)" | cut -d _ -f2 | cut -d . -f1)" + +COMMON_BASEURL="https://hg.openjdk.java.net/jdk8u/jdk8u" +COMMON_TAG="jdk8u${OPENJDK_UPDATE}-ga" + +AARCH32_BASEURL="https://hg.openjdk.java.net/aarch32-port/jdk8u" +AARCH32_CHANGESET_ID="$(grep "^CHANGESET_ID" recipes-core/openjdk/openjdk-8-release-aarch32.inc | cut -d= -f2 | tr -d \")" +AARCH32_TAG="jdk8u${OPENJDK_UPDATE}-ga-aarch32-${AARCH32_CHANGESET_ID}" + +AARCH64_BASEURL="https://hg.openjdk.java.net/aarch64-port/jdk8u-shenandoah" +AARCH64_CHANGESET_ID="$(grep "^CHANGESET_ID" recipes-core/openjdk/openjdk-8-release-aarch64.inc | cut -d= -f2 | tr -d \")" +AARCH64_TAG="aarch64-shenandoah-jdk8u${OPENJDK_UPDATE}-${AARCH64_CHANGESET_ID}" + +echo "meta-java openjdk8 source archive checksum update script" + +tmpfile="$(mktemp)" + +ARCH="common" +BASEURL="${COMMON_BASEURL}" +TAG="${COMMON_TAG}" +INCFILE="recipes-core/openjdk/openjdk-8-release.inc" +updateChecksums + +ARCH="aarch32" +BASEURL="${AARCH32_BASEURL}" +TAG="${AARCH32_TAG}" +INCFILE="recipes-core/openjdk/openjdk-8-release-aarch32.inc" +updateChecksums + +ARCH="aarch64" +BASEURL="${AARCH64_BASEURL}" +TAG="${AARCH64_TAG}" +INCFILE="recipes-core/openjdk/openjdk-8-release-aarch64.inc" +updateChecksums + +rm -f "${tmpfile}" + +echo "SUCCESS" -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel