textwrap - make changes to allow autopkgtest to run.
Peter Michael Green
2 years ago
3 | 3 |
* Package textwrap 0.15.0 from crates.io using debcargo 2.5.0
|
4 | 4 |
* Disable hypenation feature for now, it can be re-enabled if/when
|
5 | 5 |
a compatible version of the hypenation package is available.
|
|
6 |
* Remove unsatisfiable dev-dependencies and disable a couple of tests
|
|
7 |
so the autopkgtest can run the rest of the tests.
|
6 | 8 |
|
7 | |
-- Peter Michael Green <plugwash@debian.org> Sun, 13 Mar 2022 21:52:22 +0000
|
|
9 |
-- Peter Michael Green <plugwash@debian.org> Sun, 13 Mar 2022 22:58:44 +0000
|
8 | 10 |
|
9 | 11 |
rust-textwrap (0.15.0-1) unstable; urgency=medium
|
10 | 12 |
|
|
0 |
The crates.io release does not include the benches or examples, but there is
|
|
1 |
still metadata related to them in Cargo.toml, clean it up so the autopkgtest
|
|
2 |
can run succesfully.
|
|
3 |
|
|
4 |
Index: textwrap/Cargo.toml
|
|
5 |
===================================================================
|
|
6 |
--- textwrap.orig/Cargo.toml
|
|
7 |
+++ textwrap/Cargo.toml
|
|
8 |
@@ -25,21 +25,6 @@ repository = "https://github.com/mgeisle
|
|
9 |
[package.metadata.docs.rs]
|
|
10 |
all-features = true
|
|
11 |
|
|
12 |
-[[example]]
|
|
13 |
-name = "termwidth"
|
|
14 |
-path = "examples/termwidth.rs"
|
|
15 |
-required-features = ["terminal_size"]
|
|
16 |
-
|
|
17 |
-[[bench]]
|
|
18 |
-name = "linear"
|
|
19 |
-path = "benches/linear.rs"
|
|
20 |
-harness = false
|
|
21 |
-
|
|
22 |
-[[bench]]
|
|
23 |
-name = "indent"
|
|
24 |
-path = "benches/indent.rs"
|
|
25 |
-harness = false
|
|
26 |
-
|
|
27 |
[dependencies.smawk]
|
|
28 |
version = "0.3.1"
|
|
29 |
optional = true
|
|
30 |
@@ -55,11 +40,6 @@ optional = true
|
|
31 |
[dependencies.unicode-width]
|
|
32 |
version = "0.1.9"
|
|
33 |
optional = true
|
|
34 |
-[dev-dependencies.criterion]
|
|
35 |
-version = "0.3.5"
|
|
36 |
-
|
|
37 |
-[dev-dependencies.lipsum]
|
|
38 |
-version = "0.8.0"
|
|
39 |
|
|
40 |
[dev-dependencies.unic-emoji-char]
|
|
41 |
version = "0.9.0"
|
|
0 |
Index: textwrap/Cargo.toml
|
|
1 |
===================================================================
|
|
2 |
--- textwrap.orig/Cargo.toml
|
|
3 |
+++ textwrap/Cargo.toml
|
|
4 |
@@ -56,9 +56,6 @@ optional = true
|
|
5 |
version = "0.1.9"
|
|
6 |
optional = true
|
|
7 |
|
|
8 |
-[dev-dependencies.unic-emoji-char]
|
|
9 |
-version = "0.9.0"
|
|
10 |
-
|
|
11 |
[dev-dependencies.version-sync]
|
|
12 |
version = "0.9.4"
|
|
13 |
|
|
14 |
Index: textwrap/src/core.rs
|
|
15 |
===================================================================
|
|
16 |
--- textwrap.orig/src/core.rs
|
|
17 |
+++ textwrap/src/core.rs
|
|
18 |
@@ -358,7 +358,7 @@ mod tests {
|
|
19 |
assert_eq!(chars.next(), Some('H'));
|
|
20 |
}
|
|
21 |
|
|
22 |
- #[test]
|
|
23 |
+ /*#[test]
|
|
24 |
fn emojis_have_correct_width() {
|
|
25 |
use unic_emoji_char::is_emoji;
|
|
26 |
|
|
27 |
@@ -397,7 +397,7 @@ mod tests {
|
|
28 |
|
|
29 |
// The remaining planes contain almost no assigned code points
|
|
30 |
// and thus also no emojis.
|
|
31 |
- }
|
|
32 |
+ }*/
|
|
33 |
|
|
34 |
#[test]
|
|
35 |
fn display_width_works() {
|
|
0 |
Index: textwrap/Cargo.toml
|
|
1 |
===================================================================
|
|
2 |
--- textwrap.orig/Cargo.toml
|
|
3 |
+++ textwrap/Cargo.toml
|
|
4 |
@@ -56,9 +56,6 @@ optional = true
|
|
5 |
version = "0.1.9"
|
|
6 |
optional = true
|
|
7 |
|
|
8 |
-[dev-dependencies.version-sync]
|
|
9 |
-version = "0.9.4"
|
|
10 |
-
|
|
11 |
[features]
|
|
12 |
default = ["unicode-linebreak", "unicode-width", "smawk"]
|
|
13 |
[target."cfg(unix)".dev-dependencies.termion]
|
|
14 |
Index: textwrap/tests/version-numbers.rs
|
|
15 |
===================================================================
|
|
16 |
--- textwrap.orig/tests/version-numbers.rs
|
|
17 |
+++ textwrap/tests/version-numbers.rs
|
|
18 |
@@ -1,4 +1,4 @@
|
|
19 |
-#[test]
|
|
20 |
+/*#[test]
|
|
21 |
fn test_readme_deps() {
|
|
22 |
version_sync::assert_markdown_deps_updated!("README.md");
|
|
23 |
}
|
|
24 |
@@ -19,4 +19,4 @@ fn test_html_root_url() {
|
|
25 |
#[test]
|
|
26 |
fn test_dependency_graph() {
|
|
27 |
version_sync::assert_contains_regex!("src/lib.rs", "master/images/textwrap-{version}.svg");
|
|
28 |
-}
|
|
29 |
+}*/
|
0 | 0 |
disable-hyphenation.diff
|
|
1 |
remove-leftovers.patch
|
|
2 |
remove-unic-emoji-char.patch
|
|
3 |
remove-version-sync.patch
|