Cleanup tagging and gating scripts to appease shellcheck:
* scripts/builds/build_vanilla.sh: Use an array to handle the varying arguments to rhpkg. * scripts/builds/check_signatures.sh: Quote variable usage. * scripts/builds/waive_issue.sh: Remove redundant 'test "x"' usage. * scripts/builds/waive_leapp_issue.sh: Likewise. * scripts/builds/waive_rpminspect.sh: Likewise. * scripts/builds/waive_usual_rpminspect.sh: Likewise and add missing WORKING_DIR variable. * scripts/builds/waive_usual_tier0.sh: Remove redundant 'test "x"' usage. Related: RHEL-212329
This commit is contained in:
parent
ebc5752faa
commit
2ca1ca6196
@ -2975,6 +2975,14 @@ cjc.mainProgram(args)
|
|||||||
- Make zone string debug output optional in TestTranslations
|
- Make zone string debug output optional in TestTranslations
|
||||||
- Change javadoc-zip to just own the top-level directory, not include the entire subtree
|
- Change javadoc-zip to just own the top-level directory, not include the entire subtree
|
||||||
- Update tagged versions to include 9.8.0-z & 9.9.0.
|
- Update tagged versions to include 9.8.0-z & 9.9.0.
|
||||||
|
- Cleanup tagging and gating scripts to appease shellcheck:
|
||||||
|
- * scripts/builds/build_vanilla.sh: Use an array to handle the varying arguments to rhpkg.
|
||||||
|
- * scripts/builds/check_signatures.sh: Quote variable usage.
|
||||||
|
- * scripts/builds/waive_issue.sh: Remove redundant 'test "x"' usage.
|
||||||
|
- * scripts/builds/waive_leapp_issue.sh: Likewise.
|
||||||
|
- * scripts/builds/waive_rpminspect.sh: Likewise.
|
||||||
|
- * scripts/builds/waive_usual_rpminspect.sh: Likewise and add missing WORKING_DIR variable.
|
||||||
|
- * scripts/builds/waive_usual_tier0.sh: Remove redundant 'test "x"' usage.
|
||||||
- Sync the copy of the portable specfile with the latest update
|
- Sync the copy of the portable specfile with the latest update
|
||||||
- ** This tarball is embargoed until 2026-07-21 @ 1pm PT. **
|
- ** This tarball is embargoed until 2026-07-21 @ 1pm PT. **
|
||||||
- Resolves: RHEL-212095
|
- Resolves: RHEL-212095
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# Copyright (C) 2024 Red Hat, Inc.
|
# Copyright (C) 2026 Red Hat, Inc.
|
||||||
# Written by:
|
# Written by:
|
||||||
# Andrew John Hughes <gnu.andrew@redhat.com>
|
# Andrew John Hughes <gnu.andrew@redhat.com>
|
||||||
#
|
#
|
||||||
@ -20,20 +20,24 @@
|
|||||||
# Builds a scratch build of vanilla OpenJDK with no local patches
|
# Builds a scratch build of vanilla OpenJDK with no local patches
|
||||||
|
|
||||||
SEPARATE_ARCHES=${1}
|
SEPARATE_ARCHES=${1}
|
||||||
CMD="--target java-openjdk-rhel-8-build --skip-nvr-check --nowait";
|
CMD=(rhpkg -v build --target java-openjdk-rhel-8-build --skip-nvr-check --nowait);
|
||||||
SUPPORTED_ARCHES="aarch64 ppc64le s390x x86_64";
|
SUPPORTED_ARCHES="aarch64 ppc64le s390x x86_64";
|
||||||
|
|
||||||
if [ "x${SEPARATE_ARCHES}" = "x" ] ; then
|
if [ "${SEPARATE_ARCHES}" = "" ] ; then
|
||||||
SEPARATE_ARCHES=0;
|
SEPARATE_ARCHES=0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ${SEPARATE_ARCHES} -eq 1 ] ; then
|
if [ "${SEPARATE_ARCHES}" -eq 1 ] ; then
|
||||||
for arch in ${SUPPORTED_ARCHES}; do \
|
for arch in ${SUPPORTED_ARCHES}; do \
|
||||||
rhpkg -v build --arches ${arch} --scratch ${CMD} ; \
|
ARCH_CMD=("${CMD[@]}" --arches "${arch}" --scratch) ;
|
||||||
done && brew watch-task --mine
|
echo "Executing ${ARCH_CMD[*]}";
|
||||||
|
command "${ARCH_CMD[@]}";
|
||||||
|
done
|
||||||
else
|
else
|
||||||
rhpkg -v build ${CMD} && brew watch-task --mine
|
echo "Executing ${CMD[*]}";
|
||||||
|
command "${CMD[@]}";
|
||||||
fi
|
fi
|
||||||
|
brew watch-task --mine
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# compile-command: "shellcheck build_vanilla.sh"
|
# compile-command: "shellcheck build_vanilla.sh"
|
||||||
|
|||||||
@ -43,16 +43,16 @@ if ! test -e "${BUILDINFO}" ; then
|
|||||||
exit 2;
|
exit 2;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if cat ${BUILDINFO} | grep -q Signatures ; then
|
if grep -q "Signatures" < "${BUILDINFO}" ; then
|
||||||
signature=$(cat ${BUILDINFO} | grep Signatures|cut -d ' ' -f 2-|uniq -c);
|
signature=$(grep "Signatures" < "${BUILDINFO}" | cut -d ' ' -f 2- | uniq -c | sed 's#^\W*##');
|
||||||
uniq_count=$(echo ${signature} | wc -l);
|
uniq_count=$(echo "${signature}" | wc -l);
|
||||||
if test ${uniq_count} -gt 1; then
|
if test "${uniq_count}" -gt 1; then
|
||||||
echo "Multiple signature types found:";
|
echo "Multiple signature types found:";
|
||||||
echo "${signature}";
|
echo "${signature}";
|
||||||
exit 4;
|
exit 4;
|
||||||
fi
|
fi
|
||||||
sig_count=$(echo ${signature} | cut -d ' ' -f 1);
|
sig_count=$(echo "${signature}" | cut -d ' ' -f 1);
|
||||||
sig_type=$(echo ${signature} | cut -d ' ' -f 2);
|
sig_type=$(echo "${signature}" | cut -d ' ' -f 2);
|
||||||
echo "${sig_count} signatures of type ${sig_type} found";
|
echo "${sig_count} signatures of type ${sig_type} found";
|
||||||
if echo "${sig_type}" | grep -q "${NEW_SIGNATURE}" ; then
|
if echo "${sig_type}" | grep -q "${NEW_SIGNATURE}" ; then
|
||||||
echo "PQC signature found.";
|
echo "PQC signature found.";
|
||||||
|
|||||||
@ -42,25 +42,25 @@ else
|
|||||||
SKIP_JSON=0;
|
SKIP_JSON=0;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x${RHEL_VER}" = "x"; then
|
if test "${RHEL_VER}" = ""; then
|
||||||
echo "No RHEL version specified.";
|
echo "No RHEL version specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR> <TESTCASE> <COMMENT>";
|
echo "${0} <RHEL_VER> <NVR> <TESTCASE> <COMMENT>";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x${NVR}" = "x"; then
|
if test "${NVR}" = ""; then
|
||||||
echo "No NVR specified.";
|
echo "No NVR specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR> <TESTCASE> <COMMENT>";
|
echo "${0} <RHEL_VER> <NVR> <TESTCASE> <COMMENT>";
|
||||||
exit 2;
|
exit 2;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x${TESTCASE}" = "x"; then
|
if test "${TESTCASE}" = ""; then
|
||||||
echo "No testcase specified.";
|
echo "No testcase specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR> <TESTCASE> <COMMENT>";
|
echo "${0} <RHEL_VER> <NVR> <TESTCASE> <COMMENT>";
|
||||||
exit 3;
|
exit 3;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x${COMMENT}" = "x"; then
|
if test "${COMMENT}" = ""; then
|
||||||
COMMENT="Gating broken";
|
COMMENT="Gating broken";
|
||||||
echo "Setting COMMENT to default of '${COMMENT}'"
|
echo "Setting COMMENT to default of '${COMMENT}'"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@ -24,13 +24,13 @@ NVR=${2}
|
|||||||
|
|
||||||
WORKING_DIR=$(dirname "${0}")
|
WORKING_DIR=$(dirname "${0}")
|
||||||
|
|
||||||
if test "x${RHEL_VER}" = "x"; then
|
if test "${RHEL_VER}" = ""; then
|
||||||
echo "No RHEL version specified.";
|
echo "No RHEL version specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR>";
|
echo "${0} <RHEL_VER> <NVR>";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x${NVR}" = "x"; then
|
if test "${NVR}" = ""; then
|
||||||
echo "No NVR specified.";
|
echo "No NVR specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR>";
|
echo "${0} <RHEL_VER> <NVR>";
|
||||||
exit 2;
|
exit 2;
|
||||||
|
|||||||
@ -25,13 +25,13 @@ COMMENT=${3}
|
|||||||
|
|
||||||
WORKING_DIR=$(dirname "${0}")
|
WORKING_DIR=$(dirname "${0}")
|
||||||
|
|
||||||
if test "x${RHEL_VER}" = "x"; then
|
if test "${RHEL_VER}" = ""; then
|
||||||
echo "No RHEL version specified.";
|
echo "No RHEL version specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR> <COMMENT>";
|
echo "${0} <RHEL_VER> <NVR> <COMMENT>";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x${NVR}" = "x"; then
|
if test "${NVR}" = ""; then
|
||||||
echo "No NVR specified.";
|
echo "No NVR specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR> <COMMENT>";
|
echo "${0} <RHEL_VER> <NVR> <COMMENT>";
|
||||||
exit 2;
|
exit 2;
|
||||||
|
|||||||
@ -20,16 +20,18 @@
|
|||||||
# Waive the recurring rpminspect gating issues
|
# Waive the recurring rpminspect gating issues
|
||||||
# Should be resolved by RHELPLAN-102267
|
# Should be resolved by RHELPLAN-102267
|
||||||
|
|
||||||
|
WORKING_DIR=$(dirname "${0}")
|
||||||
|
|
||||||
RHEL_VER=${1}
|
RHEL_VER=${1}
|
||||||
NVR=${2}
|
NVR=${2}
|
||||||
|
|
||||||
if test "x${RHEL_VER}" = "x"; then
|
if test "${RHEL_VER}" = ""; then
|
||||||
echo "No RHEL version specified.";
|
echo "No RHEL version specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR>";
|
echo "${0} <RHEL_VER> <NVR>";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x${NVR}" = "x"; then
|
if test "${NVR}" = ""; then
|
||||||
echo "No NVR specified.";
|
echo "No NVR specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR>";
|
echo "${0} <RHEL_VER> <NVR>";
|
||||||
exit 2;
|
exit 2;
|
||||||
|
|||||||
@ -25,13 +25,13 @@ NVR=${2}
|
|||||||
|
|
||||||
WORKING_DIR=$(dirname "${0}")
|
WORKING_DIR=$(dirname "${0}")
|
||||||
|
|
||||||
if test "x${RHEL_VER}" = "x"; then
|
if test "${RHEL_VER}" = ""; then
|
||||||
echo "No RHEL version specified.";
|
echo "No RHEL version specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR>";
|
echo "${0} <RHEL_VER> <NVR>";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "x${NVR}" = "x"; then
|
if test "${NVR}" = ""; then
|
||||||
echo "No NVR specified.";
|
echo "No NVR specified.";
|
||||||
echo "${0} <RHEL_VER> <NVR>";
|
echo "${0} <RHEL_VER> <NVR>";
|
||||||
exit 2;
|
exit 2;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user