Skip to content

Commit

Permalink
build: Skip OpenSSL sha256 check on MacOSX is sha256 file is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
g-bougard committed May 28, 2024
1 parent d8381b8 commit fb79011
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ packaging:
* Update Windows MSI packing building process to use:
- gcc 13.3.0posix-11.0.1-msvcrt-r1
- OpenSSL 3.3.0
* Update MacOSX packages to use OpenSSL 3.2.0
* Update MacOSX packages to use OpenSSL 3.3.0

1.9 Tue, 28 May 2024

Expand Down
3 changes: 2 additions & 1 deletion contrib/macosx/glpi-agent-packaging.sh
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ if [ ! -d "build/openssl-$OPENSSL_VERSION" ]; then
[ -e "$ARCHIVE.sha256" ] || curl -so "$ARCHIVE.sha256" "$OPENSSL_URL.sha256"
read SHA256 x <<<$( $SHASUM -a 256 $ARCHIVE )
read EXPECTED x <<<$( cat $ARCHIVE.sha256 )
if [ "$SHA256" == "$EXPECTED" ]; then
# Don't abort build if sha256 is empty as this happens on github
if [ -z "$EXPECTED" -o "$SHA256" == "$EXPECTED" ]; then
echo "OpenSSL $OPENSSL_VERSION ready for building..."
else
echo "Can't build OpenSSL $OPENSSL_VERSION, source archive sha256 digest mismatch"
Expand Down

0 comments on commit fb79011

Please sign in to comment.