]> git.proxmox.com Git - debcargo-conf.git/commitdiff
crypto-bigint: fix autopkgtests
authorFabian Grünbichler <debian@fabian.gruenbichler.email>
Tue, 17 Oct 2023 10:08:26 +0000 (12:08 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 18 Dec 2023 08:29:38 +0000 (09:29 +0100)
Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
(cherry picked from commit 74d70057f6193b84e2ab7faea74b97b3cb8636d7)

src/crypto-bigint/debian/debcargo.toml
src/crypto-bigint/debian/patches/disable-benches.patch [new file with mode: 0644]
src/crypto-bigint/debian/patches/relax-test-deps.patch [new file with mode: 0644]
src/crypto-bigint/debian/patches/series [new file with mode: 0644]

index 6e73587e4bc1f66885aa81e7ac5d9e26a3248e4d..d18fb93ad938cc467691a6e512a886c4c5739b2b 100644 (file)
@@ -1,3 +1,19 @@
 overlay = "."
 uploaders = ["Fabian Grünbichler <debian@fabian.gruenbichler.email>"]
 collapse_features = true
+
+# tests require the "rand" optional dep
+[packages.lib]
+test_is_broken = true
+
+[packages."lib+@"]
+test_is_broken = false
+
+[packages."lib+default"]
+test_is_broken = false
+
+[packages."lib+rand"]
+test_is_broken = false
+
+[packages."lib+rand_core"]
+test_is_broken = false
diff --git a/src/crypto-bigint/debian/patches/disable-benches.patch b/src/crypto-bigint/debian/patches/disable-benches.patch
new file mode 100644 (file)
index 0000000..05d7e1d
--- /dev/null
@@ -0,0 +1,12 @@
+Index: crypto-bigint/Cargo.toml
+===================================================================
+--- crypto-bigint.orig/Cargo.toml
++++ crypto-bigint/Cargo.toml
+@@ -38,6 +38,7 @@ categories = [
+ license = "Apache-2.0 OR MIT"
+ repository = "https://github.com/RustCrypto/crypto-bigint"
+ resolver = "2"
++autobenches = false
+ [package.metadata.docs.rs]
+ all-features = true
diff --git a/src/crypto-bigint/debian/patches/relax-test-deps.patch b/src/crypto-bigint/debian/patches/relax-test-deps.patch
new file mode 100644 (file)
index 0000000..9f77f8c
--- /dev/null
@@ -0,0 +1,13 @@
+Index: crypto-bigint/Cargo.toml
+===================================================================
+--- crypto-bigint.orig/Cargo.toml
++++ crypto-bigint/Cargo.toml
+@@ -86,7 +86,7 @@ default-features = false
+ version = "1"
+ [dev-dependencies.criterion]
+-version = "0.4"
++version = "0.5"
+ features = ["html_reports"]
+ [dev-dependencies.hex-literal]
diff --git a/src/crypto-bigint/debian/patches/series b/src/crypto-bigint/debian/patches/series
new file mode 100644 (file)
index 0000000..905690d
--- /dev/null
@@ -0,0 +1,2 @@
+relax-test-deps.patch
+disable-benches.patch