From c880ec5a613ed87eca858975bc512a0fa2aa4dc6 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 14 Mar 2024 09:18:28 +0200 Subject: [PATCH] gnu: rust-openssl-sys-0.9: Update to 0.9.101. * gnu/packages/crates-io.scm (rust-openssl-sys-0.9): Update to 0.9.101. [source]: Adjust snippet to accept any version of rust-bindgen. [cargo-inputs]: Replace rust-bindgen-0.64 with 0.69. Change-Id: I0d3a6b01f2320318b4f666fecae61d16ce056578 --- gnu/packages/crates-io.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 3b70d8d46d..7f77c7d27a 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -44116,14 +44116,14 @@ (define-public rust-openssl-probe-0.1 (define-public rust-openssl-sys-0.9 (package (name "rust-openssl-sys") - (version "0.9.93") + (version "0.9.101") (source (origin (method url-fetch) (uri (crate-uri "openssl-sys" version)) (file-name (string-append name "-" version ".tar.gz")) (sha256 - (base32 "078vnn4s18kj8m5sd7b684frhjnxjcjc9z7s7h4871s7q2j5ckfv")) + (base32 "1zwd35nc5bq7m26vjsmja4hxf3fzk389blgpmhpzr3p78krv18nx")) (snippet #~(begin (use-modules (guix build utils)) @@ -44131,12 +44131,15 @@ (define-public rust-openssl-sys-0.9 (substitute* "Cargo.toml.orig" (("vendored = .*") "vendored = []\n") ((".*bssl.*") "") - ((".*openssl-src.*") "")) + ((".*openssl-src.*") "") + ;; Allow any version of bindgen. + (("(bindgen = \\{ version =) \".*\"," _ bindgen) + (string-append bindgen "\"*\","))) (copy-file "Cargo.toml.orig" "Cargo.toml"))))) (build-system cargo-build-system) (arguments `(#:cargo-inputs - (("rust-bindgen" ,rust-bindgen-0.64) + (("rust-bindgen" ,rust-bindgen-0.69) ("rust-cc" ,rust-cc-1) ("rust-libc" ,rust-libc-0.2) ("rust-pkg-config" ,rust-pkg-config-0.3)