From baaa3c20854ae80c46a59a3f4d69117b28da6c94 Mon Sep 17 00:00:00 2001 From: Andrew Hughes Date: Wed, 21 Jan 2026 01:36:53 +0000 Subject: [PATCH] Test for java.security's existence in create-redhat-properties-files.bash - Execute create-redhat-properties-files.bash with '-e' to exit on failure Resolves: RHEL-142855 --- create-redhat-properties-files.bash | 2 ++ java-25-openjdk.spec | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/create-redhat-properties-files.bash b/create-redhat-properties-files.bash index 7b02edf..967091a 100644 --- a/create-redhat-properties-files.bash +++ b/create-redhat-properties-files.bash @@ -109,6 +109,8 @@ security.provider.8= keystore.type=pkcs12 EOF +# Make sure java.security exists before appending +test -e "${SECURITY}"/java.security || ( echo "${SECURITY}/java.security not found" && false ) cat >> "${SECURITY}"/java.security <<'EOF' # diff --git a/java-25-openjdk.spec b/java-25-openjdk.spec index 186287c..811303b 100644 --- a/java-25-openjdk.spec +++ b/java-25-openjdk.spec @@ -2008,7 +2008,7 @@ function customisejdk() { if [ -d ${imagepath} ] ; then # Install crypto-policies FIPS configuration files and append # include line to java.security - bash -x %{SOURCE32} ${imagepath}/conf/security %{_libdir}/%{sdkdir -- ${suffix}}/libnssadapter.so + bash -ex %{SOURCE32} ${imagepath}/conf/security %{_libdir}/%{sdkdir -- ${suffix}}/libnssadapter.so # Use system-wide tzdata rm ${imagepath}/lib/tzdb.dat @@ -2629,16 +2629,22 @@ exit 0 %endif %changelog +* Wed Jan 21 2026 Jiri Vanek - 1:25.0.2.0.10-1 +- Execute create-redhat-properties-files.bash with '-e' to exit on failure +- Related: RHEL-142855 + * Mon Jan 12 2026 Andrew Hughes - 1:25.0.2.0.10-1 - Update to jdk-25.0.2+10 (GA) - Update release notes to 25.0.2+10 - Add JDK-8372534 libpng 1.6.51 ahead of 25.0.3 - Bump libpng version to 1.6.51 following JDK-8372534 - Bump ID of NSS adapter patch so we can stay in sync with portable on the libpng patch +- Test for java.security's existence in create-redhat-properties-files.bash - ** This tarball is embargoed until 2026-01-20 @ 1pm PT. ** - Resolves: RHEL-139579 - Resolves: RHEL-131430 - Resolves: RHEL-131443 +- Resolves: RHEL-142855 * Sat Dec 06 2025 Andrew Hughes - 1:25.0.1.0.8-6 - Sync the copy of the portable specfile with the latest update