From 291c0d96361428bf29ffb83d359d043ae26a2b21 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sun, 12 Nov 2023 00:02:17 +0100 Subject: 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. --- .github/workflows/rust-openssl.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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: - name: "Run rust-openssl tests" run: | cd rust-openssl - patch -p1 < ../.github/rust-openssl.patch + # instead of erroring use the last supported version + ed -s openssl-sys/build/main.rs <<-EOF + /_ => version_error/-1 + .t. + s/(.*=/_ = + +1d + w + q + EOF export OPENSSL_DIR=${HOME}/opt LD_LIBRARY_PATH=${HOME}/opt/lib cargo test --verbose -- cgit v1.2.3-55-g6feb