fix(openssl^3)

closes #3802
closes #3803
This commit is contained in:
Jacob Heider 2023-10-24 16:03:55 -04:00 committed by Jacob Heider
parent a82c31eebb
commit 9f2d4662d2

View file

@ -18,9 +18,8 @@ dependencies:
build: build:
dependencies: dependencies:
perl.org: 5 perl.org: 5
git-scm.org: 2 # to apply our patch
script: | script: |
git apply props/x509_def.c.diff patch -p1 <props/x509_def.c.diff
./Configure --prefix={{ prefix }} $ARCH no-tests $ARGS --openssldir={{prefix}}/ssl ./Configure --prefix={{ prefix }} $ARCH no-tests $ARGS --openssldir={{prefix}}/ssl
make --jobs {{ hw.concurrency }} make --jobs {{ hw.concurrency }}
@ -48,19 +47,20 @@ build:
test: test:
dependencies: dependencies:
gnu.org/wget: '*' pkgx.sh: ^1
script: | script:
echo "This is a test file" > in - echo "This is a test file" > in
openssl dgst -sha256 -out out ./in - openssl dgst -sha256 -out out ./in
if test {{version.major}} = 3; then
test "$(cat ./out)" = "SHA2-256(./in)= $SAMPLE"
else
test "$(cat ./out)" = "SHA256(./in)= $SAMPLE"
fi
if test {{version.major}} = 1; then - run: test "$(cat ./out)" = "SHA2-256(./in)= $SAMPLE"
wget tea.xyz # test the certs work if: ^3
fi - run: test "$(cat ./out)" = "SHA256(./in)= $SAMPLE"
if: ^1
# test the certs work
- run: pkgx wget tea.xyz
if: ^1
# ^^ can't test openssl 3 yet since like, what uses it even?! # ^^ can't test openssl 3 yet since like, what uses it even?!
# especially since our curl and wget are hard-locked to ^1.1 for now
env: env:
SAMPLE: c87e2ca771bab6024c269b933389d2a92d4941c848c52f155b9b84e1f109fe35 SAMPLE: c87e2ca771bab6024c269b933389d2a92d4941c848c52f155b9b84e1f109fe35