]> git.proxmox.com Git - cargo.git/blame - debian/debcargo-conf.patch
WIP changelog
[cargo.git] / debian / debcargo-conf.patch
CommitLineData
4a93559b
XL
1diff --git a/src/commoncrypto-sys/debian/patches/no-clippy.patch b/src/commoncrypto-sys/debian/patches/no-clippy.patch
2index 3e4c885..4a43b0d 100644
3--- a/src/commoncrypto-sys/debian/patches/no-clippy.patch
4+++ b/src/commoncrypto-sys/debian/patches/no-clippy.patch
5@@ -1,17 +1,16 @@
6 --- a/Cargo.toml 2017-01-24 06:56:51.000000000 +0000
7 +++ b/Cargo.toml 2018-09-15 15:37:47.602333479 +0000
8-@@ -19,14 +19,8 @@
9+@@ -8,13 +8,8 @@
10 keywords = ["crypto", "hash", "digest", "osx", "commoncrypto"]
11 license = "MIT"
12- repository = "https://github.com/malept/rust-commoncrypto"
13--[dependencies.clippy]
14--version = "0.0"
15--optional = true
16
17- [dependencies.libc]
18- version = "0.2"
19- [dev-dependencies.hex]
20- version = "0.2"
21--
22 -[features]
23 -lint = ["clippy"]
24+-
25+ [dependencies]
26+ libc = "0.2"
27+
28+-clippy = { version = "0.0", optional = true }
29+-
30+ [dev-dependencies]
31+ hex = "0.2"
32diff --git a/src/commoncrypto/debian/patches/no-clippy.patch b/src/commoncrypto/debian/patches/no-clippy.patch
33index 38d9c92..1603e39 100644
34--- a/src/commoncrypto/debian/patches/no-clippy.patch
35+++ b/src/commoncrypto/debian/patches/no-clippy.patch
36@@ -1,17 +1,16 @@
37 --- a/Cargo.toml 2017-01-24 06:56:51.000000000 +0000
38 +++ b/Cargo.toml 2018-09-15 17:37:01.354423224 +0000
39-@@ -19,14 +19,8 @@
40+@@ -8,13 +8,8 @@
41 keywords = ["crypto", "hash", "digest", "osx", "commoncrypto"]
42 license = "MIT"
43- repository = "https://github.com/malept/rust-commoncrypto"
44--[dependencies.clippy]
45--version = "0.0"
46--optional = true
47
48- [dependencies.commoncrypto-sys]
49- version = "0.2.0"
50- [dev-dependencies.hex]
51- version = "0.2"
52--
53 -[features]
54 -lint = ["clippy"]
55+-
56+ [dependencies]
57+ commoncrypto-sys = { version = "0.2.0", path = "../commoncrypto-sys" }
58+
59+-clippy = { version = "0.0", optional = true }
60+-
61+ [dev-dependencies]
62+ hex = "0.2"
63diff --git a/src/curl/debian/patches/winapi3.patch b/src/curl/debian/patches/winapi3.patch
64index dce2312..a4ab79e 100644
65--- a/src/curl/debian/patches/winapi3.patch
66+++ b/src/curl/debian/patches/winapi3.patch
67@@ -1,19 +1,24 @@
68---- a/Cargo.toml 1970-01-01 00:00:00.000000000 +0000
69-+++ b/Cargo.toml 2018-09-21 18:54:24.693880364 +0000
70-@@ -48,4 +48,2 @@ version = "0.1.2"
71+--- a/Cargo.toml
72++++ b/Cargo.toml
73+@@ -54,13 +54,12 @@
74+ [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies.openssl-sys]
75 version = "0.9.33"
76--[target."cfg(target_env=\"msvc\")".dependencies.kernel32-sys]
77+ optional = true
78+-[target."cfg(target_env = \"msvc\")".dependencies.kernel32-sys]
79 -version = "0.2.2"
80
81-@@ -54,3 +52,4 @@ version = "0.1.13"
82+ [target."cfg(target_env = \"msvc\")".dependencies.schannel]
83+ version = "0.1.13"
84 [target."cfg(windows)".dependencies.winapi]
85 -version = "0.2.7"
86 +version = "0.3"
87 +features = ["winsock2", "wincrypt", "libloaderapi"]
88 [badges.appveyor]
89---- a/src/easy/windows.rs 2018-09-21 18:01:35.962553903 +0000
90-+++ b/src/easy/windows.rs 2018-09-21 18:01:35.962553903 +0000
91-@@ -4,21 +4,21 @@ use libc::c_void;
92+ repository = "alexcrichton/curl-rust"
93+
94+--- a/src/easy/windows.rs
95++++ b/src/easy/windows.rs
96+@@ -4,21 +4,21 @@
97
98 #[cfg(target_env = "msvc")]
99 mod win {
100@@ -38,20 +43,20 @@
101 if n == ptr::null() {
102 None
103 } else {
104---- a/src/lib.rs 2018-09-21 18:01:35.962553903 +0000
105-+++ b/src/lib.rs 2018-09-21 18:01:35.962553903 +0000
106-@@ -61,8 +61,6 @@ extern crate openssl_probe;
107- #[cfg(windows)]
108+--- a/src/lib.rs
109++++ b/src/lib.rs
110+@@ -62,8 +62,6 @@
111 extern crate winapi;
112
113--#[cfg(target_env = "msvc")]
114--extern crate kernel32;
115 #[cfg(target_env = "msvc")]
116+-extern crate kernel32;
117+-#[cfg(target_env = "msvc")]
118 extern crate schannel;
119
120---- a/src/multi.rs 2018-09-21 18:01:35.962553903 +0000
121-+++ b/src/multi.rs 2018-09-21 18:01:35.962553903 +0000
122-@@ -8,7 +8,7 @@ use libc::{c_int, c_char, c_void, c_long, c_short};
123+ use std::ffi::CStr;
124+--- a/src/multi.rs
125++++ b/src/multi.rs
126+@@ -8,7 +8,7 @@
127 use curl_sys;
128
129 #[cfg(windows)]
130diff --git a/src/flate2/debian/patches/disable-miniz.patch b/src/flate2/debian/patches/disable-miniz.patch
131index a6f6670..0ac771b 100644
132--- a/src/flate2/debian/patches/disable-miniz.patch
133+++ b/src/flate2/debian/patches/disable-miniz.patch
134@@ -5,11 +5,11 @@
135 optional = true
136
137 -[dependencies.miniz-sys]
138--version = "0.1.7"
139+-version = "0.1.11"
140 -optional = true
141 -
142 [dependencies.miniz_oxide_c_api]
143- version = "0.1"
144+ version = "0.2"
145 features = ["no_c_export"]
146 @@ -56,7 +52,8 @@
147 version = "0.1"
148diff --git a/src/flate2/debian/patches/drop-deps-for-cargo.patch b/src/flate2/debian/patches/drop-deps-for-cargo.patch
149new file mode 100644
150index 0000000..19c4a55
151--- /dev/null
152+++ b/src/flate2/debian/patches/drop-deps-for-cargo.patch
153@@ -0,0 +1,28 @@
154+--- flate2.orig/Cargo.toml
155++++ flate2/Cargo.toml
156+@@ -33,11 +33,6 @@
157+ version = "1.0"
158+ optional = true
159+
160+-[dependencies.miniz_oxide_c_api]
161+-version = "0.2"
162+-features = ["no_c_export"]
163+-optional = true
164+-
165+ [dependencies.tokio-io]
166+ version = "0.1"
167+ optional = true
168+@@ -54,12 +49,9 @@
169+ [features]
170+ default = ["zlib"]
171+ miniz-sys = ["zlib"]
172+-rust_backend = ["miniz_oxide_c_api"]
173++rust_backend = ["zlib"]
174+ tokio = ["tokio-io", "futures"]
175+ zlib = ["libz-sys"]
176+-[target."cfg(all(target_arch = \"wasm32\", not(target_os = \"emscripten\")))".dependencies.miniz_oxide_c_api]
177+-version = "0.2"
178+-features = ["no_c_export"]
179+ [badges.appveyor]
180+ repository = "alexcrichton/flate2-rs"
181+
182diff --git a/src/flate2/debian/patches/series b/src/flate2/debian/patches/series
183index d42c267..393adff 100644
184--- a/src/flate2/debian/patches/series
185+++ b/src/flate2/debian/patches/series
186@@ -1 +1,2 @@
187 disable-miniz.patch
188+drop-deps-for-cargo.patch
189diff --git a/src/jobserver/debian/patches/relax-dep-version.patch b/src/jobserver/debian/patches/relax-dep-version.patch
190index b3218cc..d12faa5 100644
191--- a/src/jobserver/debian/patches/relax-dep-version.patch
192+++ b/src/jobserver/debian/patches/relax-dep-version.patch
193@@ -1,8 +1,8 @@
194---- a/Cargo.toml 2018-08-03 01:58:48.002962262 -0700
195-+++ b/Cargo.toml 2018-08-03 01:58:54.275006248 -0700
196+--- a/Cargo.toml
197++++ b/Cargo.toml
198 @@ -61,4 +61,4 @@
199 [target."cfg(unix)".dependencies.libc]
200 version = "0.2"
201 [target."cfg(windows)".dependencies.rand]
202--version = "0.4"
203+-version = "0.6"
204 +version = "< 0.6, >= 0.4"
205diff --git a/src/openssl-sys/debian/patches/disable-vendor.patch b/src/openssl-sys/debian/patches/disable-vendor.patch
206index a4e6d8f..45a0d36 100644
207--- a/src/openssl-sys/debian/patches/disable-vendor.patch
208+++ b/src/openssl-sys/debian/patches/disable-vendor.patch
209@@ -5,7 +5,7 @@
210 version = "1.0"
211
212 -[build-dependencies.openssl-src]
213--version = "110.0.4"
214+-version = "111.0.1"
215 -optional = true
216 -
217 [build-dependencies.pkg-config]
218diff --git a/src/rand/debian/patches/disable-fuchsia-zircon-dep.diff b/src/rand/debian/patches/disable-fuchsia-zircon-dep.diff
219index d5c8ce5..08ca008 100644
220--- a/src/rand/debian/patches/disable-fuchsia-zircon-dep.diff
221+++ b/src/rand/debian/patches/disable-fuchsia-zircon-dep.diff
222@@ -1,11 +1,9 @@
223-Index: rand/Cargo.toml
224-===================================================================
225---- rand.orig/Cargo.toml
226-+++ rand/Cargo.toml
227-@@ -48,7 +48,7 @@ default = ["std"]
228- i128_support = []
229- nightly = ["i128_support"]
230- serde1 = ["serde", "serde_derive", "rand_core/serde1"]
231+--- a/Cargo.toml
232++++ b/Cargo.toml
233+@@ -65,7 +65,7 @@
234+ nightly = ["simd_support"]
235+ serde1 = ["rand_core/serde1", "rand_isaac/serde1", "rand_xorshift/serde1"]
236+ simd_support = ["packed_simd"]
237 -std = ["rand_core/std", "alloc", "libc", "winapi", "cloudabi", "fuchsia-zircon"]
238 +std = ["rand_core/std", "alloc", "libc", "winapi", "cloudabi"]
239 [target."cfg(target_os = \"cloudabi\")".dependencies.cloudabi]
240diff --git a/src/unicode-bidi/debian/patches/no-flamegraphs.patch b/src/unicode-bidi/debian/patches/no-flamegraphs.patch
241index 6234d5d..2c1dce7 100644
242--- a/src/unicode-bidi/debian/patches/no-flamegraphs.patch
243+++ b/src/unicode-bidi/debian/patches/no-flamegraphs.patch
244@@ -12,12 +12,13 @@
245 -version = "0.1"
246 -optional = true
247
248- [dependencies.matches]
249- version = "0.1"
250-@@ -44,6 +37,5 @@
251+ [dependencies.serde]
252+ version = ">=0.8, <2.0"
253+@@ -43,7 +36,6 @@
254+
255 [features]
256- bench_it = []
257- default = []
258+ with_serde = ["serde"]
259 -flame_it = ["flame", "flamer"]
260 unstable = []
261- with_serde = ["serde"]
262+ default = []
263+ bench_it = []