Skip to content

Commit

Permalink
Fix SBOM glibc and gcc version info
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Leonard <[email protected]>
  • Loading branch information
andrew-m-leonard committed Aug 7, 2023
1 parent 7f89b81 commit b38d1ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,10 @@ cat ${BUILD_CONFIG[WORKSPACE_DIR]}/${BUILD_CONFIG[WORKING_DIR]}/${BUILD_CONFIG[O
addGCC() {
local inputConfigFile="${BUILD_CONFIG[WORKSPACE_DIR]}/${BUILD_CONFIG[TARGET_DIR]}/metadata/configure.txt"

local gcc_version="$(sed -n '/^Tools summary:$/,$p' "${inputConfigFile}" | grep "C Compiler: Version" | tr -s" " | cut -d" " -f4)"
local gcc_version="$(sed -n '/^Tools summary:$/,$p' "${inputConfigFile}" | grep "C Compiler: Version" | tr -s " " | cut -d" " -f4)"

echo "Adding GCC version to SBOM: ${gcc_version}"
addSBOMMetadataTools "${javaHome}" "${classpath}" "${sbomJson}" "GCC" "${CC_VERSION_NUMBER}"
addSBOMMetadataTools "${javaHome}" "${classpath}" "${sbomJson}" "GCC" "${gcc_version}"
}

addBootJDK() {
Expand Down

0 comments on commit b38d1ae

Please sign in to comment.