]> git.proxmox.com Git - cargo.git/blame - debian/debcargo-conf.patch
d/make_orig_multi: don't use legacy GZIP env var
[cargo.git] / debian / debcargo-conf.patch
CommitLineData
45fb7eea
XL
1For various reasons sometimes the debcargo-conf patches can't be applied as-is,
2so we further patch them here. The reasons are as follows:
3
4- commoncrypto, commoncrypto-sys: these crates were released before crates.io
5 automatically re-wrote all Cargo.toml files. cargo-vendor outputs the
6 un-re-written original Cargo.toml files, but debcargo will forcibly rewrite
7 even un-re-written ones that were published to crates.io. The patch below
8 rewrites our existing patches so they work against the un-re-written ones.
9
10- our patch to miniz_oxide replaces the adler dep for the adler32 dep. This
11 interferes with our primitive logic in debian-cargo-vendor, so we have to
12 undo that here.
13
4a93559b
XL
14--- a/src/commoncrypto-sys/debian/patches/no-clippy.patch
15+++ b/src/commoncrypto-sys/debian/patches/no-clippy.patch
16@@ -1,17 +1,16 @@
dd30f875
VK
17---- a/Cargo.toml 2017-01-24 06:56:51.000000000 +0000
18-+++ b/Cargo.toml 2018-09-15 15:37:47.602333479 +0000
4a93559b 19-@@ -19,14 +19,8 @@
dd30f875
VK
20+--- a/Cargo.toml
21++++ b/Cargo.toml
4a93559b
XL
22+@@ -8,13 +8,8 @@
23 keywords = ["crypto", "hash", "digest", "osx", "commoncrypto"]
24 license = "MIT"
25- repository = "https://github.com/malept/rust-commoncrypto"
26--[dependencies.clippy]
27--version = "0.0"
28--optional = true
29
30- [dependencies.libc]
31- version = "0.2"
32- [dev-dependencies.hex]
33- version = "0.2"
34--
35 -[features]
36 -lint = ["clippy"]
37+-
38+ [dependencies]
39+ libc = "0.2"
40+
41+-clippy = { version = "0.0", optional = true }
42+-
43+ [dev-dependencies]
44+ hex = "0.2"
4a93559b
XL
45--- a/src/commoncrypto/debian/patches/no-clippy.patch
46+++ b/src/commoncrypto/debian/patches/no-clippy.patch
47@@ -1,17 +1,16 @@
dd30f875
VK
48---- a/Cargo.toml 2017-01-24 06:56:51.000000000 +0000
49-+++ b/Cargo.toml 2018-09-15 17:37:01.354423224 +0000
4a93559b 50-@@ -19,14 +19,8 @@
dd30f875
VK
51+--- a/Cargo.toml
52++++ b/Cargo.toml
4a93559b
XL
53+@@ -8,13 +8,8 @@
54 keywords = ["crypto", "hash", "digest", "osx", "commoncrypto"]
55 license = "MIT"
56- repository = "https://github.com/malept/rust-commoncrypto"
57--[dependencies.clippy]
58--version = "0.0"
59--optional = true
60
61- [dependencies.commoncrypto-sys]
62- version = "0.2.0"
63- [dev-dependencies.hex]
64- version = "0.2"
65--
66 -[features]
67 -lint = ["clippy"]
68+-
69+ [dependencies]
70+ commoncrypto-sys = { version = "0.2.0", path = "../commoncrypto-sys" }
71+
72+-clippy = { version = "0.0", optional = true }
73+-
74+ [dev-dependencies]
75+ hex = "0.2"
45fb7eea
XL
76--- a/src/miniz_oxide/debian/patches/series
77+++ b/src/miniz_oxide/debian/patches/series
78@@ -1,3 +1,2 @@
79 remove-rustc-dep-of-std-etc.patch
80 remove-compiler-builtins.patch
81-use-adler32.patch