summaryrefslogtreecommitdiffstats
path: root/vendor/env_logger/debian/patches
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/env_logger/debian/patches')
-rw-r--r--vendor/env_logger/debian/patches/eliminate-is-terminal.patch36
-rw-r--r--vendor/env_logger/debian/patches/series2
-rw-r--r--vendor/env_logger/debian/patches/skip-broken-test.diff10
3 files changed, 48 insertions, 0 deletions
diff --git a/vendor/env_logger/debian/patches/eliminate-is-terminal.patch b/vendor/env_logger/debian/patches/eliminate-is-terminal.patch
new file mode 100644
index 0000000..d402b90
--- /dev/null
+++ b/vendor/env_logger/debian/patches/eliminate-is-terminal.patch
@@ -0,0 +1,36 @@
+Index: env-logger/Cargo.toml
+===================================================================
+--- env-logger.orig/Cargo.toml
++++ env-logger/Cargo.toml
+@@ -93,10 +93,6 @@ harness = false
+ version = "2.0.0"
+ optional = true
+
+-[dependencies.is-terminal]
+-version = "0.4.0"
+-optional = true
+-
+ [dependencies.log]
+ version = "0.4.8"
+ features = ["std"]
+@@ -116,7 +112,6 @@ optional = true
+
+ [features]
+ auto-color = [
+- "dep:is-terminal",
+ "color",
+ ]
+ color = ["dep:termcolor"]
+Index: env-logger/src/fmt/writer/atty.rs
+===================================================================
+--- env-logger.orig/src/fmt/writer/atty.rs
++++ env-logger/src/fmt/writer/atty.rs
+@@ -8,7 +8,7 @@ printed.
+
+ #[cfg(feature = "auto-color")]
+ mod imp {
+- use is_terminal::IsTerminal;
++ use std::io::IsTerminal;
+
+ pub(in crate::fmt) fn is_stdout() -> bool {
+ std::io::stdout().is_terminal()
diff --git a/vendor/env_logger/debian/patches/series b/vendor/env_logger/debian/patches/series
new file mode 100644
index 0000000..81e0392
--- /dev/null
+++ b/vendor/env_logger/debian/patches/series
@@ -0,0 +1,2 @@
+skip-broken-test.diff
+eliminate-is-terminal.patch
diff --git a/vendor/env_logger/debian/patches/skip-broken-test.diff b/vendor/env_logger/debian/patches/skip-broken-test.diff
new file mode 100644
index 0000000..8be5f64
--- /dev/null
+++ b/vendor/env_logger/debian/patches/skip-broken-test.diff
@@ -0,0 +1,10 @@
+--- a/examples/in_tests.rs
++++ b/examples/in_tests.rs
+@@ -41,6 +41,7 @@ mod tests {
+ }
+
+ #[test]
++ #[ignore = "broken in debian"]
+ fn it_does_not_work() {
+ init_logger();
+