From 5a2bd7f19aa3a63d9d05db816db9669f55808ce4 Mon Sep 17 00:00:00 2001 From: Sophia Guo Date: Mon, 16 Sep 2024 16:16:16 -0400 Subject: [PATCH] unset SPEC" --- test/system/reproducibleCompare/playlist.xml | 3 ++- tooling/reproducible/macos_repro_build_compare.sh | 10 ++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/test/system/reproducibleCompare/playlist.xml b/test/system/reproducibleCompare/playlist.xml index 2cffcd482..7f8102a72 100644 --- a/test/system/reproducibleCompare/playlist.xml +++ b/test/system/reproducibleCompare/playlist.xml @@ -61,7 +61,8 @@ Rebuild_Same_JDK_Reproducibility_Test_Mac - ls -l $(TEST_ROOT)$(D)system$(D)reproducibleCompare$(D);\ + unset SPEC;\ + ls -l $(TEST_ROOT)$(D)system$(D)reproducibleCompare$(D);\ $(TEST_ROOT)$(D)system$(D)reproducibleCompare$(D)macos_repro_build_compare.sh $(SBOM_FILE) $(JDK_FILE) $(REPORTDIR); \ $(TEST_STATUS) diff --git a/tooling/reproducible/macos_repro_build_compare.sh b/tooling/reproducible/macos_repro_build_compare.sh index a5ad20209..314f5cc00 100644 --- a/tooling/reproducible/macos_repro_build_compare.sh +++ b/tooling/reproducible/macos_repro_build_compare.sh @@ -51,11 +51,6 @@ MAC_COMPILER_BASE=/Applications MAC_COMPILER_APP_PREFIX=Xcode MAC_SDK_LOCATION=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -# These 3 variables dictate which parameters passed to makejdk_any_platform.sh are config arguments, build arguments or should be ignored. -CONFIG_ARGS=("--disable-warnings-as-errors" "--openjdk-target" "--with-sysroot" "--with-extra-cxxflags='" "--enable-dtrace" "--with-version-opt") -NOTUSE_ARGS=("--assemble-exploded-image" "--configure-args") -FINAL_ARG=("--build-variant") - # These variables relate to the pre-requisite ant installation ANT_VERSION="1.10.5" ANT_CONTRIB_VERSION="1.0b3" @@ -449,11 +444,14 @@ Prepare_Env_For_Build() { if [[ "${buildArgs}" != *"--build-reproducible-date"* ]]; then buildArgs="--build-reproducible-date \"${buildStamp}\" ${buildArgs}" fi - #reset --jdk-boot-dir + # reset --jdk-boot-dir # shellcheck disable=SC2001 buildArgs="$(echo "$buildArgs" | sed -e "s|--jdk-boot-dir [^ ]*|--jdk-boot-dir ${BOOTJDK_HOME}|")" buildArgs="$(echo "$buildArgs" | sed -e "s|--with-sysroot=[^ ]*|--with-sysroot=${MAC_SDK_LOCATION}|")" buildArgs="$(echo "$buildArgs" | sed -e "s|--user-openjdk-build-root-directory [^ ]*|--user-openjdk-build-root-directory ${WORK_DIR}/temurin-build/workspace/build/openjdkbuild/|")" + # remove ingored options + buildArgs=${buildArgs/--assemble-exploded-image /} + buildArgs=${buildArgs/--enable-sbom-strace /} echo "" echo "Make JDK Any Platform Argument List = "