Skip to content

Commit 375ca45

Browse files
authored
macports patch
patches the macports script to account for ancient version of openssl on ubuntu
1 parent 8182d75 commit 375ca45

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
diff --git a/tools/osxcross-macports b/tools/osxcross-macports
2+
index 3e87735..5c48e4e 100755
3+
--- a/tools/osxcross-macports
4+
+++ b/tools/osxcross-macports
5+
@@ -250,8 +250,10 @@ verifyFileIntegrity()
6+
getFile $PUBKEYURL "$PUBKEY"
7+
fi
8+
9+
- local rmd160=$(openssl rmd160 "$PUBKEY" | awk '{print $2}')
10+
- local sha1=$(openssl sha1 "$PUBKEY" | awk '{print $2}')
11+
+ errorMsg "set rmd160"
12+
+ local rmd160=$(openssl rmd160 -provider legacy "$PUBKEY" | awk '{print $2}')
13+
+ errorMsg "set sha1"
14+
+ local sha1=$(openssl sha1 "$PUBKEY" | awk '{print $2}')
15+
16+
if [ "$rmd160" != "$PUBKEYRMD160" -o "$sha1" != "$PUBKEYSHA1" ]; then
17+
errorMsg "invalid macports public key (hash check failed)"
18+
@@ -262,7 +264,7 @@ verifyFileIntegrity()
19+
20+
set +e
21+
22+
- openssl dgst -ripemd160 -verify "$PUBKEY" -signature \
23+
+ openssl dgst -provider legacy -provider default -ripemd160 -verify "$PUBKEY" -signature \
24+
"$CACHE/$file.rmd160" "$CACHE/$file" 1>/dev/null
25+
26+
if [ $? -ne 0 ]; then

0 commit comments

Comments
 (0)