summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/debian/patches
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 12:47:55 +0000
commit2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4 (patch)
tree033cc839730fda84ff08db877037977be94e5e3a /vendor/rustix/debian/patches
parentInitial commit. (diff)
downloadcargo-2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4.tar.xz
cargo-2aadc03ef15cb5ca5cc2af8a7c08e070742f0ac4.zip
Adding upstream version 0.70.1+ds1.upstream/0.70.1+ds1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/rustix/debian/patches')
-rw-r--r--vendor/rustix/debian/patches/disable-benches.diff17
-rw-r--r--vendor/rustix/debian/patches/drop-alloc.diff23
-rw-r--r--vendor/rustix/debian/patches/no-windows.diff29
-rw-r--r--vendor/rustix/debian/patches/relax-dep.diff22
-rw-r--r--vendor/rustix/debian/patches/series4
5 files changed, 95 insertions, 0 deletions
diff --git a/vendor/rustix/debian/patches/disable-benches.diff b/vendor/rustix/debian/patches/disable-benches.diff
new file mode 100644
index 0000000..898499f
--- /dev/null
+++ b/vendor/rustix/debian/patches/disable-benches.diff
@@ -0,0 +1,17 @@
+Index: rustix/Cargo.toml
+===================================================================
+--- rustix.orig/Cargo.toml
++++ rustix/Cargo.toml
+@@ -45,6 +45,7 @@ categories = [
+ ]
+ license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
+ repository = "https://github.com/bytecodealliance/rustix"
++autobenches = false
+
+ [package.metadata.docs.rs]
+ features = ["all-apis"]
+@@ -71,4 +71,0 @@ targets = [
+-[[bench]]
+-name = "mod"
+-harness = false
+-
diff --git a/vendor/rustix/debian/patches/drop-alloc.diff b/vendor/rustix/debian/patches/drop-alloc.diff
new file mode 100644
index 0000000..db3724b
--- /dev/null
+++ b/vendor/rustix/debian/patches/drop-alloc.diff
@@ -0,0 +1,23 @@
+Description: Drop alloc since rustc-std-worspace-alloc-dev isn't packaged
+Author: John Goerzen <jgoerzen@complete.org>
+Last-Update: 2023-10-08 by Peter Michael Green
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: rustix/Cargo.toml
+===================================================================
+--- rustix.orig/Cargo.toml
++++ rustix/Cargo.toml
+@@ -75,5 +75,0 @@ targets = [
+-[dependencies.alloc]
+-version = "1.0.0"
+-optional = true
+-package = "rustc-std-workspace-alloc"
+-
+@@ -174,7 +169,6 @@ rand = []
+ runtime = ["linux-raw-sys/prctl"]
+ rustc-dep-of-std = [
+ "dep:core",
+- "dep:alloc",
+ "dep:compiler_builtins",
+ "linux-raw-sys/rustc-dep-of-std",
+ "bitflags/rustc-dep-of-std",
diff --git a/vendor/rustix/debian/patches/no-windows.diff b/vendor/rustix/debian/patches/no-windows.diff
new file mode 100644
index 0000000..a6055f3
--- /dev/null
+++ b/vendor/rustix/debian/patches/no-windows.diff
@@ -0,0 +1,29 @@
+Description: Remove Windows dep
+Author: John Goerzen <jgoerzen@complete.org>
+Last-Update: 2023-05-08
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+Index: rustix/Cargo.toml
+===================================================================
+--- rustix.orig/Cargo.toml
++++ rustix/Cargo.toml
+@@ -237,19 +237,3 @@ package = "errno"
+ version = "1.5.2"
+ optional = true
+
+-[target."cfg(windows)".dependencies.libc_errno]
+-version = "0.3.1"
+-default-features = false
+-package = "errno"
+-
+-[target."cfg(windows)".dependencies.windows-sys]
+-version = "0.48.0"
+-features = [
+- "Win32_Foundation",
+- "Win32_Networking_WinSock",
+- "Win32_NetworkManagement_IpHelper",
+- "Win32_System_Threading",
+-]
+-
+-[target."cfg(windows)".dev-dependencies.ctor]
+-version = "0.2.0"
diff --git a/vendor/rustix/debian/patches/relax-dep.diff b/vendor/rustix/debian/patches/relax-dep.diff
new file mode 100644
index 0000000..972f6c9
--- /dev/null
+++ b/vendor/rustix/debian/patches/relax-dep.diff
@@ -0,0 +1,22 @@
+Index: rustix/Cargo.toml
+===================================================================
+--- rustix.orig/Cargo.toml
++++ rustix/Cargo.toml
+@@ -99,10 +99,10 @@ default-features = false
+ package = "errno"
+
+ [dev-dependencies.memoffset]
+-version = "0.9.0"
++version = "0.6.5"
+
+ [dev-dependencies.serial_test]
+-version = "2.0.0"
++version = "2.0"
+
+ [dev-dependencies.static_assertions]
+ version = "1.1.0"
+@@ -197,3 +197,3 @@ features = [
+ [target."cfg(all(criterion, not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.criterion]
+-version = "0.4"
++version = "0.5"
+
diff --git a/vendor/rustix/debian/patches/series b/vendor/rustix/debian/patches/series
new file mode 100644
index 0000000..63a3397
--- /dev/null
+++ b/vendor/rustix/debian/patches/series
@@ -0,0 +1,4 @@
+no-windows.diff
+drop-alloc.diff
+disable-benches.diff
+relax-dep.diff