diff options
author | Theo Buehler <tb@openbsd.org> | 2023-11-12 00:02:17 +0100 |
---|---|---|
committer | Theo Buehler <tb@openbsd.org> | 2023-11-12 00:35:10 +0100 |
commit | 291c0d96361428bf29ffb83d359d043ae26a2b21 (patch) | |
tree | cbf62bd6a7cc198b35b491b6272fec1cfcd8f968 /.github/workflows | |
parent | 63635ea958fc6d643c099a54ef84182d8a64de11 (diff) | |
download | portable-291c0d96361428bf29ffb83d359d043ae26a2b21.tar.gz portable-291c0d96361428bf29ffb83d359d043ae26a2b21.tar.bz2 portable-291c0d96361428bf29ffb83d359d043ae26a2b21.zip |
Replace rust-openssl patch with an ed script
It is annoying to update this patch all the time. An easy ed script
does the trick just as well.
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/rust-openssl.yml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/.github/workflows/rust-openssl.yml b/.github/workflows/rust-openssl.yml index cec2de0..ef5a7b1 100644 --- a/.github/workflows/rust-openssl.yml +++ b/.github/workflows/rust-openssl.yml | |||
@@ -29,6 +29,14 @@ jobs: | |||
29 | - name: "Run rust-openssl tests" | 29 | - name: "Run rust-openssl tests" |
30 | run: | | 30 | run: | |
31 | cd rust-openssl | 31 | cd rust-openssl |
32 | patch -p1 < ../.github/rust-openssl.patch | 32 | # instead of erroring use the last supported version |
33 | ed -s openssl-sys/build/main.rs <<-EOF | ||
34 | /_ => version_error/-1 | ||
35 | .t. | ||
36 | s/(.*=/_ = | ||
37 | +1d | ||
38 | w | ||
39 | q | ||
40 | EOF | ||
33 | export OPENSSL_DIR=${HOME}/opt LD_LIBRARY_PATH=${HOME}/opt/lib | 41 | export OPENSSL_DIR=${HOME}/opt LD_LIBRARY_PATH=${HOME}/opt/lib |
34 | cargo test --verbose | 42 | cargo test --verbose |