]>
Commit | Line | Data |
---|---|---|
45fb7eea XL |
1 | For various reasons sometimes the debcargo-conf patches can't be applied as-is, |
2 | so 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 | ||
be43d6fa BN |
10 | - unicode-normalization, vte, tempfile: have dependency relaxation that applies, |
11 | but doesn't match the vendored copy | |
45fb7eea | 12 | |
5174d271 FG |
13 | - concolor: more recent version in debcargo-conf, can be dropped once cargo |
14 | upstream updates | |
15 | ||
16 | - clap: clap is v4 in debcargo-conf, patches from clap-3 temporarily patched in | |
17 | until we update to a cargo version using clap 4.x | |
18 | ||
19 | diff --git a/src/clap/debian/patches/disable-derive-deprecated.patch b/src/clap/debian/patches/disable-derive-deprecated.patch | |
20 | new file mode 100644 | |
21 | index 000000000..6ed82171f | |
22 | --- /dev/null | |
23 | +++ b/src/clap/debian/patches/disable-derive-deprecated.patch | |
24 | @@ -0,0 +1,11 @@ | |
25 | +--- a/Cargo.toml | |
26 | ++++ b/Cargo.toml | |
27 | +@@ -418,7 +418,7 @@ | |
28 | + "color", | |
29 | + "suggestions", | |
30 | + ] | |
31 | +-deprecated = ["clap_derive/deprecated"] | |
32 | ++deprecated = [] | |
33 | + derive = [ | |
34 | + "clap_derive", | |
35 | + "once_cell", | |
36 | diff --git a/src/clap/debian/patches/disable-snapbox.patch b/src/clap/debian/patches/disable-snapbox.patch | |
37 | index a6fbd083a..9335518c4 100644 | |
38 | --- a/src/clap/debian/patches/disable-snapbox.patch | |
39 | +++ b/src/clap/debian/patches/disable-snapbox.patch | |
40 | @@ -1,6 +1,12 @@ | |
41 | --- a/Cargo.toml | |
42 | +++ b/Cargo.toml | |
43 | -@@ -400,3 +399,0 @@ | |
44 | +@@ -397,9 +397,6 @@ | |
45 | + [dev-dependencies.shlex] | |
46 | + version = "1.1.0" | |
47 | + | |
48 | -[dev-dependencies.snapbox] | |
49 | --version = "0.4" | |
50 | +-version = "0.2.9" | |
51 | - | |
52 | + [dev-dependencies.static_assertions] | |
53 | + version = "1.1.0" | |
54 | + | |
55 | diff --git a/src/clap/debian/patches/disable-trycmd.diff b/src/clap/debian/patches/disable-trycmd.diff | |
56 | index aeb0bbad4..053bf14f9 100644 | |
57 | --- a/src/clap/debian/patches/disable-trycmd.diff | |
58 | +++ b/src/clap/debian/patches/disable-trycmd.diff | |
59 | @@ -1,8 +1,11 @@ | |
60 | --- a/Cargo.toml | |
61 | +++ b/Cargo.toml | |
62 | -@@ -413,9 +412,0 @@ | |
63 | +@@ -410,15 +410,6 @@ | |
64 | + [dev-dependencies.trybuild] | |
65 | + version = "1.0.18" | |
66 | + | |
67 | -[dev-dependencies.trycmd] | |
68 | --version = "0.14.3" | |
69 | +-version = "0.13" | |
70 | -features = [ | |
71 | - "color-auto", | |
72 | - "diff", | |
73 | @@ -10,3 +13,6 @@ | |
74 | -] | |
75 | -default-features = false | |
76 | - | |
77 | + [features] | |
78 | + cargo = ["once_cell"] | |
79 | + color = [ | |
80 | diff --git a/src/clap/debian/patches/disable-unic-emoji-char.patch b/src/clap/debian/patches/disable-unic-emoji-char.patch | |
81 | deleted file mode 100644 | |
82 | index 97aa25af0..000000000 | |
83 | --- a/src/clap/debian/patches/disable-unic-emoji-char.patch | |
84 | +++ /dev/null | |
85 | @@ -1,36 +0,0 @@ | |
86 | -Index: clap/Cargo.toml | |
87 | -=================================================================== | |
88 | ---- clap.orig/Cargo.toml | |
89 | -+++ clap/Cargo.toml | |
90 | -@@ -408,9 +408,6 @@ version = "1.1.0" | |
91 | - [dev-dependencies.trybuild] | |
92 | - version = "1.0.71" | |
93 | - | |
94 | --[dev-dependencies.unic-emoji-char] | |
95 | --version = "0.9.0" | |
96 | -- | |
97 | - [features] | |
98 | - cargo = ["dep:once_cell"] | |
99 | - color = [ | |
100 | -Index: clap/src/output/textwrap/core.rs | |
101 | -=================================================================== | |
102 | ---- clap.orig/src/output/textwrap/core.rs | |
103 | -+++ clap/src/output/textwrap/core.rs | |
104 | -@@ -90,7 +90,7 @@ mod tests { | |
105 | - #[cfg(feature = "unicode")] | |
106 | - use unicode_width::UnicodeWidthChar; | |
107 | - | |
108 | -- #[test] | |
109 | -+ /*#[test] | |
110 | - fn emojis_have_correct_width() { | |
111 | - use unic_emoji_char::is_emoji; | |
112 | - | |
113 | -@@ -129,7 +129,7 @@ mod tests { | |
114 | - | |
115 | - // The remaining planes contain almost no assigned code points | |
116 | - // and thus also no emojis. | |
117 | -- } | |
118 | -+ }*/ | |
119 | - | |
120 | - #[test] | |
121 | - #[cfg(feature = "unicode")] | |
122 | diff --git a/src/clap/debian/patches/disable-unstable-doc.patch b/src/clap/debian/patches/disable-unstable-doc.patch | |
123 | index 00de9ce79..404f1d9cf 100644 | |
124 | --- a/src/clap/debian/patches/disable-unstable-doc.patch | |
125 | +++ b/src/clap/debian/patches/disable-unstable-doc.patch | |
126 | @@ -1,25 +1,38 @@ | |
127 | --- a/Cargo.toml | |
128 | +++ b/Cargo.toml | |
129 | -@@ -39,3 +39,2 @@ | |
130 | +@@ -37,7 +37,6 @@ | |
131 | + repository = "https://github.com/clap-rs/clap" | |
132 | + | |
133 | [package.metadata.docs.rs] | |
134 | -features = ["unstable-doc"] | |
135 | rustdoc-args = [ | |
136 | -@@ -49,5 +48,2 @@ | |
137 | + "--cfg", | |
138 | + "docsrs", | |
139 | +@@ -47,9 +46,6 @@ | |
140 | + "-Zrustdoc-scrape-examples=examples", | |
141 | + ] | |
142 | ||
143 | -[package.metadata.playground] | |
144 | -features = ["unstable-doc"] | |
145 | - | |
146 | [package.metadata.release] | |
147 | -@@ -439,12 +435,2 @@ | |
148 | + shared-version = true | |
149 | + tag-name = "v{{version}}" | |
150 | +@@ -437,17 +433,6 @@ | |
151 | + "textwrap/unicode-width", | |
152 | + "unicase", | |
153 | ] | |
154 | -unstable-doc = [ | |
155 | - "derive", | |
156 | - "cargo", | |
157 | - "wrap_help", | |
158 | +- "yaml", | |
159 | - "env", | |
160 | - "unicode", | |
161 | -- "string", | |
162 | +- "regex", | |
163 | - "unstable-replace", | |
164 | - "unstable-grouped", | |
165 | -] | |
166 | unstable-grouped = [] | |
167 | + unstable-replace = [] | |
168 | + unstable-v4 = [ | |
169 | diff --git a/src/clap/debian/patches/disable-unstable-v4.patch b/src/clap/debian/patches/disable-unstable-v4.patch | |
170 | new file mode 100644 | |
171 | index 000000000..2993a959a | |
172 | --- /dev/null | |
173 | +++ b/src/clap/debian/patches/disable-unstable-v4.patch | |
174 | @@ -0,0 +1,13 @@ | |
175 | +--- a/Cargo.toml | |
176 | ++++ b/Cargo.toml | |
177 | +@@ -435,10 +435,6 @@ | |
178 | + ] | |
179 | + unstable-grouped = [] | |
180 | + unstable-replace = [] | |
181 | +-unstable-v4 = [ | |
182 | +- "clap_derive/unstable-v4", | |
183 | +- "deprecated", | |
184 | +-] | |
185 | + wrap_help = [ | |
186 | + "terminal_size", | |
187 | + "textwrap/terminal_size", | |
188 | diff --git a/src/clap/debian/patches/disable-unstable-v5.patch b/src/clap/debian/patches/disable-unstable-v5.patch | |
189 | deleted file mode 100644 | |
190 | index 5c2a59a30..000000000 | |
191 | --- a/src/clap/debian/patches/disable-unstable-v5.patch | |
192 | +++ /dev/null | |
193 | @@ -1,7 +0,0 @@ | |
194 | ---- a/Cargo.toml | |
195 | -+++ b/Cargo.toml | |
196 | -@@ -438,4 +437,0 @@ | |
197 | --unstable-v5 = [ | |
198 | -- "clap_derive?/unstable-v5", | |
199 | -- "deprecated", | |
200 | --] | |
201 | diff --git a/src/clap/debian/patches/once-cell-non-optional.patch b/src/clap/debian/patches/once-cell-non-optional.patch | |
202 | new file mode 100644 | |
203 | index 000000000..0e6692e81 | |
204 | --- /dev/null | |
205 | +++ b/src/clap/debian/patches/once-cell-non-optional.patch | |
206 | @@ -0,0 +1,29 @@ | |
207 | +--- a/Cargo.toml | |
208 | ++++ b/Cargo.toml | |
209 | +@@ -354,7 +354,6 @@ | |
210 | + | |
211 | + [dependencies.once_cell] | |
212 | + version = "1.12.0" | |
213 | +-optional = true | |
214 | + | |
215 | + [dependencies.regex] | |
216 | + version = "1.0" | |
217 | +@@ -404,7 +403,7 @@ | |
218 | + version = "1.0.18" | |
219 | + | |
220 | + [features] | |
221 | +-cargo = ["once_cell"] | |
222 | ++cargo = [] | |
223 | + color = [ | |
224 | + "atty", | |
225 | + "termcolor", | |
226 | +@@ -420,8 +419,7 @@ | |
227 | + ] | |
228 | + deprecated = [] | |
229 | + derive = [ | |
230 | +- "clap_derive", | |
231 | +- "once_cell", | |
232 | ++ "clap_derive" | |
233 | + ] | |
234 | + env = [] | |
235 | + std = ["indexmap/std"] | |
236 | diff --git a/src/clap/debian/patches/revert-switch-to-is-terminal.patch b/src/clap/debian/patches/revert-switch-to-is-terminal.patch | |
237 | deleted file mode 100644 | |
238 | index 425ff3aca..000000000 | |
239 | --- a/src/clap/debian/patches/revert-switch-to-is-terminal.patch | |
240 | +++ /dev/null | |
241 | @@ -1,44 +0,0 @@ | |
242 | -Index: clap/src/output/fmt.rs | |
243 | -=================================================================== | |
244 | ---- clap.orig/src/output/fmt.rs | |
245 | -+++ clap/src/output/fmt.rs | |
246 | -@@ -82,9 +82,10 @@ impl std::fmt::Display for Colorizer { | |
247 | - | |
248 | - #[cfg(feature = "color")] | |
249 | - fn is_a_tty(stream: Stream) -> bool { | |
250 | -- use is_terminal::IsTerminal; | |
251 | -- match stream { | |
252 | -- Stream::Stdout => std::io::stdout().is_terminal(), | |
253 | -- Stream::Stderr => std::io::stderr().is_terminal(), | |
254 | -- } | |
255 | -+ let stream = match stream { | |
256 | -+ Stream::Stdout => atty::Stream::Stdout, | |
257 | -+ Stream::Stderr => atty::Stream::Stderr, | |
258 | -+ }; | |
259 | -+ | |
260 | -+ atty::is(stream) | |
261 | - } | |
262 | -Index: clap/Cargo.toml | |
263 | -=================================================================== | |
264 | ---- clap.orig/Cargo.toml | |
265 | -+++ clap/Cargo.toml | |
266 | -@@ -365,8 +365,8 @@ optional = true | |
267 | - [dependencies.clap_lex] | |
268 | - version = "0.3.0" | |
269 | - | |
270 | --[dependencies.is-terminal] | |
271 | --version = "0.4.1" | |
272 | -+[dependencies.atty] | |
273 | -+version = "0.2" | |
274 | - optional = true | |
275 | - | |
276 | - [dependencies.once_cell] | |
277 | -@@ -414,7 +414,7 @@ version = "0.9.0" | |
278 | - [features] | |
279 | - cargo = ["dep:once_cell"] | |
280 | - color = [ | |
281 | -- "dep:is-terminal", | |
282 | -+ "dep:atty", | |
283 | - "dep:termcolor", | |
284 | - ] | |
285 | - debug = [ | |
286 | diff --git a/src/clap/debian/patches/series b/src/clap/debian/patches/series | |
287 | index 137658685..47bdb2c6b 100644 | |
288 | --- a/src/clap/debian/patches/series | |
289 | +++ b/src/clap/debian/patches/series | |
290 | @@ -1,6 +1,6 @@ | |
291 | disable-trycmd.diff | |
292 | disable-unstable-doc.patch | |
293 | -disable-unstable-v5.patch | |
294 | +disable-unstable-v4.patch | |
295 | disable-snapbox.patch | |
296 | -revert-switch-to-is-terminal.patch | |
297 | -disable-unic-emoji-char.patch | |
298 | +disable-derive-deprecated.patch | |
299 | +once-cell-non-optional.patch | |
c53c9cac FG |
300 | diff --git a/src/commoncrypto-sys/debian/patches/no-clippy.patch b/src/commoncrypto-sys/debian/patches/no-clippy.patch |
301 | index 3e4c8850e..93789f3b8 100644 | |
4a93559b XL |
302 | --- a/src/commoncrypto-sys/debian/patches/no-clippy.patch |
303 | +++ b/src/commoncrypto-sys/debian/patches/no-clippy.patch | |
304 | @@ -1,17 +1,16 @@ | |
dd30f875 VK |
305 | ---- a/Cargo.toml 2017-01-24 06:56:51.000000000 +0000 |
306 | -+++ b/Cargo.toml 2018-09-15 15:37:47.602333479 +0000 | |
4a93559b | 307 | -@@ -19,14 +19,8 @@ |
dd30f875 VK |
308 | +--- a/Cargo.toml |
309 | ++++ b/Cargo.toml | |
4a93559b XL |
310 | +@@ -8,13 +8,8 @@ |
311 | keywords = ["crypto", "hash", "digest", "osx", "commoncrypto"] | |
312 | license = "MIT" | |
313 | - repository = "https://github.com/malept/rust-commoncrypto" | |
314 | --[dependencies.clippy] | |
315 | --version = "0.0" | |
316 | --optional = true | |
317 | ||
318 | - [dependencies.libc] | |
319 | - version = "0.2" | |
320 | - [dev-dependencies.hex] | |
321 | - version = "0.2" | |
322 | -- | |
323 | -[features] | |
324 | -lint = ["clippy"] | |
325 | +- | |
326 | + [dependencies] | |
327 | + libc = "0.2" | |
328 | + | |
329 | +-clippy = { version = "0.0", optional = true } | |
330 | +- | |
331 | + [dev-dependencies] | |
332 | + hex = "0.2" | |
c53c9cac FG |
333 | diff --git a/src/commoncrypto/debian/patches/no-clippy.patch b/src/commoncrypto/debian/patches/no-clippy.patch |
334 | index 38d9c9255..b21a7cae5 100644 | |
4a93559b XL |
335 | --- a/src/commoncrypto/debian/patches/no-clippy.patch |
336 | +++ b/src/commoncrypto/debian/patches/no-clippy.patch | |
337 | @@ -1,17 +1,16 @@ | |
dd30f875 VK |
338 | ---- a/Cargo.toml 2017-01-24 06:56:51.000000000 +0000 |
339 | -+++ b/Cargo.toml 2018-09-15 17:37:01.354423224 +0000 | |
4a93559b | 340 | -@@ -19,14 +19,8 @@ |
dd30f875 VK |
341 | +--- a/Cargo.toml |
342 | ++++ b/Cargo.toml | |
4a93559b XL |
343 | +@@ -8,13 +8,8 @@ |
344 | keywords = ["crypto", "hash", "digest", "osx", "commoncrypto"] | |
345 | license = "MIT" | |
346 | - repository = "https://github.com/malept/rust-commoncrypto" | |
347 | --[dependencies.clippy] | |
348 | --version = "0.0" | |
349 | --optional = true | |
350 | ||
351 | - [dependencies.commoncrypto-sys] | |
352 | - version = "0.2.0" | |
353 | - [dev-dependencies.hex] | |
354 | - version = "0.2" | |
355 | -- | |
356 | -[features] | |
357 | -lint = ["clippy"] | |
358 | +- | |
359 | + [dependencies] | |
360 | + commoncrypto-sys = { version = "0.2.0", path = "../commoncrypto-sys" } | |
361 | + | |
362 | +-clippy = { version = "0.0", optional = true } | |
363 | +- | |
364 | + [dev-dependencies] | |
365 | + hex = "0.2" | |
5174d271 FG |
366 | diff --git a/src/concolor/debian/patches/series b/src/concolor/debian/patches/series |
367 | index cdf075927..942673b44 100644 | |
368 | --- a/src/concolor/debian/patches/series | |
369 | +++ b/src/concolor/debian/patches/series | |
370 | @@ -1,2 +1,2 @@ | |
371 | avoid-doctest-breakage.patch | |
372 | -switch-back-to-atty.patch | |
373 | +#switch-back-to-atty.patch | |
be43d6fa BN |
374 | diff --git a/src/tempfile/debian/patches/series b/src/tempfile/debian/patches/series |
375 | index 75abb7f14..2378a84ba 100644 | |
376 | --- a/src/tempfile/debian/patches/series | |
377 | +++ b/src/tempfile/debian/patches/series | |
378 | @@ -1 +1 @@ | |
379 | -relax-dep.diff | |
380 | +#relax-dep.diff | |
c53c9cac FG |
381 | diff --git a/src/unicode-normalization/debian/patches/series b/src/unicode-normalization/debian/patches/series |
382 | index 2c1db10bd..39fe7a4da 100644 | |
383 | --- a/src/unicode-normalization/debian/patches/series | |
384 | +++ b/src/unicode-normalization/debian/patches/series | |
385 | @@ -1,2 +1 @@ | |
386 | disable-tests-missing-testdata.patch | |
387 | -switch-back-to-smallvec.patch | |
388 | diff --git a/src/unicode-normalization/debian/patches/switch-back-to-smallvec.patch b/src/unicode-normalization/debian/patches/switch-back-to-smallvec.patch | |
389 | deleted file mode 100644 | |
390 | index 06e816ca7..000000000 | |
391 | --- a/src/unicode-normalization/debian/patches/switch-back-to-smallvec.patch | |
392 | +++ /dev/null | |
393 | @@ -1,134 +0,0 @@ | |
394 | -This patch switches back to using smallvec as we do not have tinyvec in Debian. | |
395 | -It is based on a revert of upstream commit d6abe8e5148c2c513cb65f487a037c7600de2498 | |
396 | -adapted by Peter Michael Green for use in the Debian package. | |
397 | - | |
398 | -Index: unicode-normalization/src/decompose.rs | |
399 | -=================================================================== | |
400 | ---- unicode-normalization.orig/src/decompose.rs | |
401 | -+++ unicode-normalization/src/decompose.rs | |
402 | -@@ -10,7 +10,7 @@ | |
403 | - use core::fmt::{self, Write}; | |
404 | - use core::iter::Fuse; | |
405 | - use core::ops::Range; | |
406 | --use tinyvec::TinyVec; | |
407 | -+use smallvec::SmallVec; | |
408 | - | |
409 | - #[derive(Clone)] | |
410 | - enum DecompositionType { | |
411 | -@@ -32,7 +32,7 @@ pub struct Decompositions<I> { | |
412 | - // 2) "Ready" characters which are sorted and ready to emit on demand; | |
413 | - // 3) A "pending" block which stills needs more characters for us to be able | |
414 | - // to sort in canonical order and is not safe to emit. | |
415 | -- buffer: TinyVec<[(u8, char); 4]>, | |
416 | -+ buffer: SmallVec<[(u8, char); 4]>, | |
417 | - ready: Range<usize>, | |
418 | - } | |
419 | - | |
420 | -@@ -41,7 +41,7 @@ pub fn new_canonical<I: Iterator<Item = | |
421 | - Decompositions { | |
422 | - kind: self::DecompositionType::Canonical, | |
423 | - iter: iter.fuse(), | |
424 | -- buffer: TinyVec::new(), | |
425 | -+ buffer: SmallVec::new(), | |
426 | - ready: 0..0, | |
427 | - } | |
428 | - } | |
429 | -@@ -51,7 +51,7 @@ pub fn new_compatible<I: Iterator<Item = | |
430 | - Decompositions { | |
431 | - kind: self::DecompositionType::Compatible, | |
432 | - iter: iter.fuse(), | |
433 | -- buffer: TinyVec::new(), | |
434 | -+ buffer: SmallVec::new(), | |
435 | - ready: 0..0, | |
436 | - } | |
437 | - } | |
438 | -Index: unicode-normalization/src/lib.rs | |
439 | -=================================================================== | |
440 | ---- unicode-normalization.orig/src/lib.rs | |
441 | -+++ unicode-normalization/src/lib.rs | |
442 | -@@ -50,7 +50,7 @@ extern crate alloc; | |
443 | - #[cfg(feature = "std")] | |
444 | - extern crate core; | |
445 | - | |
446 | --extern crate tinyvec; | |
447 | -+extern crate smallvec; | |
448 | - | |
449 | - pub use crate::decompose::Decompositions; | |
450 | - pub use crate::quick_check::{ | |
451 | -Index: unicode-normalization/src/recompose.rs | |
452 | -=================================================================== | |
453 | ---- unicode-normalization.orig/src/recompose.rs | |
454 | -+++ unicode-normalization/src/recompose.rs | |
455 | -@@ -10,7 +10,7 @@ | |
456 | - | |
457 | - use crate::decompose::Decompositions; | |
458 | - use core::fmt::{self, Write}; | |
459 | --use tinyvec::TinyVec; | |
460 | -+use smallvec::SmallVec; | |
461 | - | |
462 | - #[derive(Clone)] | |
463 | - enum RecompositionState { | |
464 | -@@ -24,7 +24,7 @@ enum RecompositionState { | |
465 | - pub struct Recompositions<I> { | |
466 | - iter: Decompositions<I>, | |
467 | - state: RecompositionState, | |
468 | -- buffer: TinyVec<[char; 4]>, | |
469 | -+ buffer: SmallVec<[char; 4]>, | |
470 | - composee: Option<char>, | |
471 | - last_ccc: Option<u8>, | |
472 | - } | |
473 | -@@ -34,7 +34,7 @@ pub fn new_canonical<I: Iterator<Item = | |
474 | - Recompositions { | |
475 | - iter: super::decompose::new_canonical(iter), | |
476 | - state: self::RecompositionState::Composing, | |
477 | -- buffer: TinyVec::new(), | |
478 | -+ buffer: SmallVec::new(), | |
479 | - composee: None, | |
480 | - last_ccc: None, | |
481 | - } | |
482 | -@@ -45,7 +45,7 @@ pub fn new_compatible<I: Iterator<Item = | |
483 | - Recompositions { | |
484 | - iter: super::decompose::new_compatible(iter), | |
485 | - state: self::RecompositionState::Composing, | |
486 | -- buffer: TinyVec::new(), | |
487 | -+ buffer: SmallVec::new(), | |
488 | - composee: None, | |
489 | - last_ccc: None, | |
490 | - } | |
491 | -Index: unicode-normalization/Cargo.toml | |
492 | -=================================================================== | |
493 | ---- unicode-normalization.orig/Cargo.toml | |
494 | -+++ unicode-normalization/Cargo.toml | |
495 | -@@ -43,9 +43,8 @@ keywords = [ | |
496 | - license = "MIT/Apache-2.0" | |
497 | - repository = "https://github.com/unicode-rs/unicode-normalization" | |
498 | - | |
499 | --[dependencies.tinyvec] | |
500 | -+[dependencies.smallvec] | |
501 | - version = "1" | |
502 | --features = ["alloc"] | |
503 | - | |
504 | - [features] | |
505 | - default = ["std"] | |
506 | -Index: unicode-normalization/src/replace.rs | |
507 | -=================================================================== | |
508 | ---- unicode-normalization.orig/src/replace.rs | |
509 | -+++ unicode-normalization/src/replace.rs | |
510 | -@@ -8,7 +8,7 @@ | |
511 | - // option. This file may not be copied, modified, or distributed | |
512 | - // except according to those terms. | |
513 | - use core::fmt::{self, Write}; | |
514 | --use tinyvec::ArrayVec; | |
515 | -+use smallvec::SmallVec; | |
516 | - | |
517 | - /// External iterator for replacements for a string's characters. | |
518 | - #[derive(Clone)] | |
519 | -@@ -36,7 +36,7 @@ impl<I: Iterator<Item = char>> Iterator | |
520 | - match self.iter.next() { | |
521 | - Some(ch) => { | |
522 | - // At this time, the longest replacement sequence has length 2. | |
523 | -- let mut buffer = ArrayVec::<[char; 2]>::new(); | |
524 | -+ let mut buffer = SmallVec::<[char; 2]>::new(); | |
525 | - super::char::decompose_cjk_compat_variants(ch, |d| buffer.push(d)); | |
526 | - self.buffer = buffer.get(1).copied(); | |
527 | - Some(buffer[0]) | |
528 | diff --git a/src/vte/debian/patches/arrayvec.diff b/src/vte/debian/patches/arrayvec.diff | |
529 | deleted file mode 100644 | |
530 | index 1923f9577..000000000 | |
531 | --- a/src/vte/debian/patches/arrayvec.diff | |
532 | +++ /dev/null | |
533 | @@ -1,26 +0,0 @@ | |
534 | -Index: vte/Cargo.toml | |
535 | -=================================================================== | |
536 | ---- vte.orig/Cargo.toml | |
537 | -+++ vte/Cargo.toml | |
538 | -@@ -24,7 +24,7 @@ categories = ["parsing", "no-std"] | |
539 | - license = "Apache-2.0 OR MIT" | |
540 | - repository = "https://github.com/alacritty/vte" | |
541 | - [dependencies.arrayvec] | |
542 | --version = "0.5.1" | |
543 | -+version = "0.7" | |
544 | - optional = true | |
545 | - default-features = false | |
546 | - | |
547 | -Index: vte/src/lib.rs | |
548 | -=================================================================== | |
549 | ---- vte.orig/src/lib.rs | |
550 | -+++ vte/src/lib.rs | |
551 | -@@ -78,7 +78,7 @@ pub struct Parser { | |
552 | - params: Params, | |
553 | - param: u16, | |
554 | - #[cfg(feature = "no_std")] | |
555 | -- osc_raw: ArrayVec<[u8; MAX_OSC_RAW]>, | |
556 | -+ osc_raw: ArrayVec<u8, MAX_OSC_RAW>, | |
557 | - #[cfg(not(feature = "no_std"))] | |
558 | - osc_raw: Vec<u8>, | |
559 | - osc_params: [(usize, usize); MAX_OSC_PARAMS], | |
560 | diff --git a/src/vte/debian/patches/series b/src/vte/debian/patches/series | |
561 | index 011b1a629..203bdd762 100644 | |
562 | --- a/src/vte/debian/patches/series | |
563 | +++ b/src/vte/debian/patches/series | |
564 | @@ -1,2 +1 @@ | |
565 | 00-remove-nightly-feature | |
566 | -arrayvec.diff |