Skip to content

Commit 1ac572c

Browse files
sxajerboaa
andauthored
Update validateSBOMcontent.sh's EXPECTED_FREETYPE and fix static libs content count check (#4221)
* Update validateSBOMcontent.sh's EXPECTED_FREETYPE and static-libs count Signed-off-by: Stewart X Addison <sxa@redhat.com> * Fix AIX compiler version for OpenXL17 on JDK22+ Signed-off-by: Stewart X Addison <sxa@redhat.com> * Update tooling/release_download_test.sh Co-authored-by: Severin Gehwolf <jerboaa@gmail.com> --------- Signed-off-by: Stewart X Addison <sxa@redhat.com> Co-authored-by: Severin Gehwolf <jerboaa@gmail.com>
1 parent 17b0d99 commit 1ac572c

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

tooling/release_download_test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ verify_valid_archives() {
253253
print_error "Failed to verify that ${A} can be extracted"
254254
RC=4
255255
fi
256-
# NOTE: 38 chosen because the static-libs is 38 for JDK21/AIX - maybe switch for different tarballs in the future?
257-
if [ "$(tar tfz "${A}" | wc -l)" -lt 38 ]; then
258-
print_error "Less than 38 files in ${A} - that does not seem correct"
256+
# NOTE: 37 chosen because the static-libs is 37 for JDK21/AIX - maybe switch for different tarballs in the future?
257+
if [ "$(tar tfz "${A}" | wc -l)" -lt 37 ]; then
258+
print_error "Fewer than 37 files in ${A} - that does not seem correct"
259259
RC=4
260260
fi
261261
done
@@ -285,7 +285,7 @@ verify_valid_archives() {
285285
RC=4
286286
fi
287287
if [ "$(tar tfz "${A}" | wc -l)" -lt 45000 ]; then
288-
print_error "less than 45000 files in source archive ${A} - that does not seem correct"
288+
print_error "Fewer than 45000 files in source archive ${A} - that does not seem correct"
289289
RC=4
290290
fi
291291
done

tooling/validateSBOMcontent.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,15 @@ if echo "$SBOMFILE" | grep _solaris_; then
4040
EXPECTED_FREETYPE=2.4.9
4141
EXPECTED_COMPILER="solstudio (Oracle Solaris Studio)"
4242
elif echo "$SBOMFILE" | grep _aix_; then
43-
EXPECTED_COMPILER="xlc (IBM XL C/C++)"
43+
if [ "$MAJORVERSION" -lt 21 ]; then
44+
EXPECTED_COMPILER="xlc (IBM XL C/C++)"
45+
else
46+
EXPECTED_COMPILER="clang (clang/LLVM)"
47+
fi
4448
if [ "$MAJORVERSION" -lt 17 ]; then
4549
EXPECTED_FREETYPE=2.8.0
4650
else
47-
EXPECTED_FREETYPE=2.13.2 # Bundled version
51+
EXPECTED_FREETYPE=2.13.3 # Bundled version
4852
fi
4953
elif echo "$SBOMFILE" | grep _alpine-linux_ > /dev/null; then
5054
EXPECTED_FREETYPE=2.11.1
@@ -78,17 +82,17 @@ elif echo "$SBOMFILE" | grep 64_windows_; then
7882
EXPECTED_FREETYPE=2.8.1
7983
EXPECTED_COMPILER="microsoft (Microsoft Visual Studio 2022)"
8084
if [ "${MAJORVERSION}" = "11" ] || [ "${MAJORVERSION}" = "17" ]; then
81-
EXPECTED_FREETYPE=2.13.2 # Bundled version
85+
EXPECTED_FREETYPE=2.13.3 # Bundled version
8286
fi
8387
elif echo "$SBOMFILE" | grep _x86-32_windows_; then
84-
EXPECTED_FREETYPE=2.13.2 # Bundled version
88+
EXPECTED_FREETYPE=2.13.3 # Bundled version
8589
EXPECTED_COMPILER="microsoft (Microsoft Visual Studio 2022)"
8690
if [ "${MAJORVERSION}" = "8" ]; then
8791
EXPECTED_FREETYPE=2.5.3
8892
fi
8993
elif echo "$SBOMFILE" | grep _mac_; then
9094
# NOTE: mac/x64 native builds >=11 were using "clang (clang/LLVM from Xcode 10.3)"
91-
EXPECTED_FREETYPE=2.13.2 # Bundled version
95+
EXPECTED_FREETYPE=2.13.3 # Bundled version
9296
EXPECTED_COMPILER="clang (clang/LLVM from Xcode 15.2)"
9397
# shellcheck disable=SC2166
9498
if [ "${MAJORVERSION}" = "8" ] && echo "$SBOMFILE" | grep _x64_; then
@@ -97,7 +101,7 @@ elif echo "$SBOMFILE" | grep _mac_; then
97101
fi
98102
fi
99103

100-
[ "${MAJORVERSION}" -ge 20 ] && EXPECTED_FREETYPE=2.13.2 # Bundled version
104+
[ "${MAJORVERSION}" -ge 20 ] && EXPECTED_FREETYPE=2.13.3 # Bundled version
101105

102106
RC=0
103107
if echo "$SBOMFILE" | grep 'linux_'; then

0 commit comments

Comments
 (0)