update other deps of cargo
Ximin Luo
3 years ago
0 | rust-autocfg (1.0.1-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium | |
1 | ||
2 | * Package autocfg 1.0.1 from crates.io using debcargo 2.4.3 | |
3 | ||
4 | -- Ximin Luo <infinity0@debian.org> Thu, 01 Oct 2020 22:19:25 +0100 | |
5 | ||
0 | 6 | rust-autocfg (1.0.0-2) unstable; urgency=medium |
1 | 7 | |
2 | 8 | * Team upload. |
0 | Description: Use TESTS_TARGET_DIR envvar to override tests target dir | |
1 | Rationale: At Debian, the autopkgtests are run inside a non-writable | |
2 | directory, so the "target" subdirectory can't be used. Inside the | |
3 | autopkgtest environment, we have an env variable AUTOPKGTEST_TMP | |
4 | available which points to a temporary directory, that we can pass on to | |
5 | the tests as TESTS_TARGET_DIR. This makes the tests pass properly inside | |
6 | this environment. | |
7 | Author: Wolfgang Silbermayr <wolfgang@silbermayr.at> | |
8 | Forwarded: https://github.com/cuviper/autocfg/pull/22 | |
9 | Last-Update: 2020-02-18 | |
10 | --- | |
11 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ | |
12 | --- a/src/tests.rs | |
13 | +++ b/src/tests.rs | |
14 | @@ -1,4 +1,5 @@ | |
15 | use super::AutoCfg; | |
16 | +use std::env; | |
17 | ||
18 | impl AutoCfg { | |
19 | fn core_std(&self, path: &str) -> String { | |
20 | @@ -13,11 +14,18 @@ | |
21 | fn assert_min(&self, major: usize, minor: usize, probe_result: bool) { | |
22 | assert_eq!(self.probe_rustc_version(major, minor), probe_result); | |
23 | } | |
24 | + | |
25 | + fn for_test() -> Result<Self, super::error::Error> { | |
26 | + match env::var_os("TESTS_TARGET_DIR") { | |
27 | + Some(d) => Self::with_dir(d), | |
28 | + None => Self::with_dir("target"), | |
29 | + } | |
30 | + } | |
31 | } | |
32 | ||
33 | #[test] | |
34 | fn autocfg_version() { | |
35 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
36 | + let ac = AutoCfg::for_test().unwrap(); | |
37 | println!("version: {:?}", ac.rustc_version); | |
38 | assert!(ac.probe_rustc_version(1, 0)); | |
39 | } | |
40 | @@ -37,7 +45,7 @@ | |
41 | ||
42 | #[test] | |
43 | fn probe_add() { | |
44 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
45 | + let ac = AutoCfg::for_test().unwrap(); | |
46 | let add = ac.core_std("ops::Add"); | |
47 | let add_rhs = add.clone() + "<i32>"; | |
48 | let add_rhs_output = add.clone() + "<i32, Output = i32>"; | |
49 | @@ -51,7 +59,7 @@ | |
50 | ||
51 | #[test] | |
52 | fn probe_as_ref() { | |
53 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
54 | + let ac = AutoCfg::for_test().unwrap(); | |
55 | let as_ref = ac.core_std("convert::AsRef"); | |
56 | let as_ref_str = as_ref.clone() + "<str>"; | |
57 | let dyn_as_ref_str = "dyn ".to_string() + &*as_ref_str; | |
58 | @@ -63,7 +71,7 @@ | |
59 | ||
60 | #[test] | |
61 | fn probe_i128() { | |
62 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
63 | + let ac = AutoCfg::for_test().unwrap(); | |
64 | let i128_path = ac.core_std("i128"); | |
65 | ac.assert_min(1, 26, ac.probe_path(&i128_path)); | |
66 | ac.assert_min(1, 26, ac.probe_type("i128")); | |
67 | @@ -71,7 +79,7 @@ | |
68 | ||
69 | #[test] | |
70 | fn probe_sum() { | |
71 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
72 | + let ac = AutoCfg::for_test().unwrap(); | |
73 | let sum = ac.core_std("iter::Sum"); | |
74 | let sum_i32 = sum.clone() + "<i32>"; | |
75 | let dyn_sum_i32 = "dyn ".to_string() + &*sum_i32; | |
76 | @@ -84,25 +92,25 @@ | |
77 | ||
78 | #[test] | |
79 | fn probe_std() { | |
80 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
81 | + let ac = AutoCfg::for_test().unwrap(); | |
82 | ac.assert_std(ac.probe_sysroot_crate("std")); | |
83 | } | |
84 | ||
85 | #[test] | |
86 | fn probe_alloc() { | |
87 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
88 | + let ac = AutoCfg::for_test().unwrap(); | |
89 | ac.assert_min(1, 36, ac.probe_sysroot_crate("alloc")); | |
90 | } | |
91 | ||
92 | #[test] | |
93 | fn probe_bad_sysroot_crate() { | |
94 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
95 | + let ac = AutoCfg::for_test().unwrap(); | |
96 | assert!(!ac.probe_sysroot_crate("doesnt_exist")); | |
97 | } | |
98 | ||
99 | #[test] | |
100 | fn probe_no_std() { | |
101 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
102 | + let ac = AutoCfg::for_test().unwrap(); | |
103 | assert!(ac.probe_type("i32")); | |
104 | assert!(ac.probe_type("[i32]")); | |
105 | ac.assert_std(ac.probe_type("Vec<i32>")); | |
106 | @@ -110,7 +118,7 @@ | |
107 | ||
108 | #[test] | |
109 | fn probe_expression() { | |
110 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
111 | + let ac = AutoCfg::for_test().unwrap(); | |
112 | assert!(ac.probe_expression(r#""test".trim_left()"#)); | |
113 | ac.assert_min(1, 30, ac.probe_expression(r#""test".trim_start()"#)); | |
114 | ac.assert_std(ac.probe_expression("[1, 2, 3].to_vec()")); | |
115 | @@ -118,7 +126,7 @@ | |
116 | ||
117 | #[test] | |
118 | fn probe_constant() { | |
119 | - let ac = AutoCfg::with_dir("target").unwrap(); | |
120 | + let ac = AutoCfg::for_test().unwrap(); | |
121 | assert!(ac.probe_constant("1 + 2 + 3")); | |
122 | ac.assert_min(1, 33, ac.probe_constant("{ let x = 1 + 2 + 3; x * x }")); | |
123 | ac.assert_min(1, 39, ac.probe_constant(r#""test".len()"#)); |
0 | Test-Command: TESTS_TARGET_DIR=${AUTOPKGTEST_TMP} /usr/share/cargo/bin/cargo-auto-test autocfg 1.0.0 --all-targets --all-features | |
0 | Test-Command: TESTS_TARGET_DIR=${AUTOPKGTEST_TMP} /usr/share/cargo/bin/cargo-auto-test autocfg 1.0.1 --all-targets --all-features | |
1 | 1 | Features: test-name=@ |
2 | 2 | Depends: dh-cargo (>= 18), @ |
3 | 3 | Restrictions: allow-stderr, skip-not-installable |
4 | 4 | |
5 | Test-Command: TESTS_TARGET_DIR=${AUTOPKGTEST_TMP} /usr/share/cargo/bin/cargo-auto-test autocfg 1.0.0 --all-targets --no-default-features | |
5 | Test-Command: TESTS_TARGET_DIR=${AUTOPKGTEST_TMP} /usr/share/cargo/bin/cargo-auto-test autocfg 1.0.1 --all-targets --no-default-features | |
6 | 6 | Features: test-name=librust-autocfg-dev |
7 | 7 | Depends: dh-cargo (>= 18), @ |
8 | 8 | Restrictions: allow-stderr, skip-not-installable |
0 | Test-Command: /usr/share/cargo/bin/cargo-auto-test autocfg 1.0.0 --all-targets --all-features | |
0 | Test-Command: /usr/share/cargo/bin/cargo-auto-test autocfg 1.0.1 --all-targets --all-features | |
1 | 1 | Features: test-name=@ |
2 | 2 | Depends: dh-cargo (>= 18), @ |
3 | 3 | Restrictions: allow-stderr, skip-not-installable |
4 | 4 | |
5 | Test-Command: /usr/share/cargo/bin/cargo-auto-test autocfg 1.0.0 --all-targets --no-default-features | |
5 | Test-Command: /usr/share/cargo/bin/cargo-auto-test autocfg 1.0.1 --all-targets --no-default-features | |
6 | 6 | Features: test-name=librust-autocfg-dev |
7 | 7 | Depends: dh-cargo (>= 18), @ |
8 | 8 | Restrictions: allow-stderr, skip-not-installable |
0 | rust-lazycell (1.3.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium | |
1 | ||
2 | * Team upload. | |
3 | * Package lazycell 1.3.0 from crates.io using debcargo 2.4.3 | |
4 | ||
5 | -- Ximin Luo <infinity0@debian.org> Thu, 01 Oct 2020 22:20:02 +0100 | |
6 | ||
0 | 7 | rust-lazycell (1.2.1-1) unstable; urgency=medium |
1 | 8 | |
2 | 9 | * Package lazycell 1.2.1 from crates.io using debcargo 2.2.9 |
7 | 7 | Files: * |
8 | 8 | Copyright: |
9 | 9 | 2014 The Rust Project Developers |
10 | 2016-2018 Nikita Pekin | |
11 | 2016-2018 The lazycell contributors | |
10 | 2016-2020 Nikita Pekin | |
11 | 2016-2020 The lazycell contributors | |
12 | 12 | License: MIT or Apache-2.0 |
13 | 13 | |
14 | 14 | Files: debian/* |
15 | 15 | Copyright: |
16 | 2018 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
17 | 2018 Wolfgang Silbermayr <wolfgang@silbermayr.at> | |
16 | 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
17 | 2018-2020 Wolfgang Silbermayr <wolfgang@silbermayr.at> | |
18 | 18 | License: MIT or Apache-2.0 |
19 | 19 | |
20 | 20 | License: Apache-2.0 |
27 | 27 | Files: ./src/lib.rs |
28 | 28 | Copyright: |
29 | 29 | 2014 The Rust Project Developers |
30 | 2016-2018 Nikita Pekin and the lazycell contributors | |
30 | 2016-2020 Nikita Pekin and the lazycell contributors | |
31 | License: UNKNOWN-LICENSE; FIXME (overlay) | |
32 | Comment: | |
33 | FIXME (overlay): These notices are extracted from files. Please review them | |
34 | before uploading to the archive. | |
35 | ||
36 | Files: ./src/serde_impl.rs | |
37 | Copyright: 2020 Nikita Pekin and the lazycell contributors | |
31 | 38 | License: UNKNOWN-LICENSE; FIXME (overlay) |
32 | 39 | Comment: |
33 | 40 | FIXME (overlay): These notices are extracted from files. Please review them |
35 | 42 | |
36 | 43 | Files: debian/* |
37 | 44 | Copyright: |
38 | 2018 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
39 | 2018 Wolfgang Silbermayr <wolfgang@silbermayr.at> | |
40 | 2018 kpcyrd <git@rxv.cc> | |
45 | 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
46 | 2018-2020 Wolfgang Silbermayr <wolfgang@silbermayr.at> | |
47 | 2018-2020 kpcyrd <git@rxv.cc> | |
41 | 48 | License: MIT or Apache-2.0 |
42 | 49 | |
43 | 50 | License: Apache-2.0 |
0 | --- a/Cargo.toml | |
1 | +++ b/Cargo.toml | |
2 | @@ -23,8 +23 @@ license = "MIT/Apache-2.0" | |
3 | repository = "https://github.com/indiv0/lazycell" | |
4 | -[dependencies.clippy] | |
5 | -version = "0.0" | |
6 | -optional = true | |
7 | - | |
8 | -[features] | |
9 | -nightly = [] | |
10 | -nightly-testing = ["clippy", "nightly"] |
0 | rust-pkg-config (0.3.17-4) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium | |
0 | rust-pkg-config (0.3.18-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium | |
1 | 1 | |
2 | * Package pkg-config 0.3.18 from crates.io using debcargo 2.4.3 | |
3 | ||
4 | [ Sylvestre Ledru ] | |
2 | 5 | * Team upload. |
3 | 6 | * Package pkg-config 0.3.17 from crates.io using debcargo 2.4.2 |
4 | 7 | * Disable one more test |
5 | 8 | |
6 | -- Sylvestre Ledru <sylvestre@debian.org> Sun, 12 Apr 2020 14:23:49 +0200 | |
9 | -- Ximin Luo <infinity0@debian.org> Thu, 01 Oct 2020 22:27:03 +0100 | |
7 | 10 | |
8 | 11 | rust-pkg-config (0.3.17-3) unstable; urgency=medium |
9 | 12 |
0 | 0 | --- a/src/lib.rs |
1 | 1 | +++ b/src/lib.rs |
2 | @@ -385,9 +385,11 @@ | |
3 | } | |
4 | ||
2 | @@ -399,7 +389,11 @@ impl Config { | |
5 | 3 | fn command(&self, name: &str, args: &[&str]) -> Command { |
6 | - let exe = self | |
7 | - .env_var("PKG_CONFIG") | |
8 | - .unwrap_or_else(|_| String::from("pkg-config")); | |
9 | + let exe = self.env_var("PKG_CONFIG").unwrap_or_else(|_| { | |
10 | + self.env_var("DEB_HOST_GNU_TYPE") | |
11 | + .map(|t| t.to_string() + "-pkg-config") | |
12 | + .unwrap_or_else(|_| String::from("pkg-config")) | |
13 | + }); | |
4 | let exe = self | |
5 | .env_var_os("PKG_CONFIG") | |
6 | - .unwrap_or_else(|| OsString::from("pkg-config")); | |
7 | + .unwrap_or_else(|| { | |
8 | + self.env_var_os("DEB_HOST_GNU_TYPE") | |
9 | + .map(|mut t| { t.push(OsString::from("-pkg-config")); t }) | |
10 | + .unwrap_or_else(|| OsString::from("pkg-config")) | |
11 | + }); | |
14 | 12 | let mut cmd = Command::new(exe); |
15 | 13 | if self.is_static(name) { |
16 | 14 | cmd.arg("--static"); |
0 | --- a/tests/test.rs | |
1 | +++ b/tests/test.rs | |
2 | @@ -34,7 +34,6 @@ | |
3 | pkg_config::probe_library(name) | |
4 | } | |
5 | ||
6 | -#[test] | |
7 | fn cross_disabled() { | |
8 | let _g = LOCK.lock(); | |
9 | reset(); | |
10 | @@ -46,7 +45,6 @@ | |
11 | } | |
12 | } | |
13 | ||
14 | -#[test] | |
15 | fn cross_enabled() { | |
16 | let _g = LOCK.lock(); | |
17 | reset(); | |
18 | 0 | --- a/src/lib.rs |
19 | 1 | +++ b/src/lib.rs |
20 | 2 | @@ -9,8 +9,6 @@ |
26 | 8 | //! * `FOO_NO_PKG_CONFIG` - if set, this will disable running `pkg-config` when |
27 | 9 | //! probing for the library named `foo`. |
28 | 10 | //! |
29 | @@ -344,17 +342,7 @@ | |
11 | @@ -106,9 +104,8 @@ pub enum Error { | |
12 | /// Contains the name of the responsible environment variable. | |
13 | EnvNoPkgConfig(String), | |
14 | ||
15 | - /// Cross compilation detected. | |
16 | - /// | |
17 | - /// Override with `PKG_CONFIG_ALLOW_CROSS=1`. | |
18 | + /// Cross compilation detected. Kept for compatibility; | |
19 | + /// the Debian package never emits this. | |
20 | CrossCompilation, | |
21 | ||
22 | /// Failed to run `pkg-config`. | |
23 | @@ -152,11 +145,6 @@ impl fmt::Display for Error { | |
24 | fn fmt(&self, f: &mut fmt::Formatter) -> Result<(), fmt::Error> { | |
25 | match *self { | |
26 | Error::EnvNoPkgConfig(ref name) => write!(f, "Aborted because {} is set", name), | |
27 | - Error::CrossCompilation => write!( | |
28 | - f, | |
29 | - "Cross compilation detected. \ | |
30 | - Use PKG_CONFIG_ALLOW_CROSS=1 to override" | |
31 | - ), | |
32 | Error::Command { | |
33 | ref command, | |
34 | ref cause, | |
35 | @@ -180,7 +168,7 @@ impl fmt::Display for Error { | |
36 | } | |
37 | Ok(()) | |
38 | } | |
39 | - Error::__Nonexhaustive => panic!(), | |
40 | + Error::CrossCompilation | Error::__Nonexhaustive => panic!(), | |
41 | } | |
42 | } | |
43 | } | |
44 | @@ -341,6 +329,8 @@ impl Config { | |
45 | if host == target { | |
46 | return true; | |
47 | } | |
48 | + // always enable PKG_CONFIG_ALLOW_CROSS override in Debian | |
49 | + return true; | |
30 | 50 | |
31 | 51 | // pkg-config may not be aware of cross-compilation, and require |
32 | 52 | // a wrapper script that sets up platform-specific prefixes. |
33 | - match self.targetted_env_var("PKG_CONFIG_ALLOW_CROSS") { | |
34 | - // don't use pkg-config if explicitly disabled | |
35 | - Ok(ref val) if val == "0" => false, | |
36 | - Ok(_) => true, | |
37 | - Err(_) => { | |
38 | - // if not disabled, and pkg-config is customized, | |
39 | - // then assume it's prepared for cross-compilation | |
40 | - self.targetted_env_var("PKG_CONFIG").is_ok() | |
41 | - || self.targetted_env_var("PKG_CONFIG_SYSROOT_DIR").is_ok() | |
42 | - } | |
43 | - } | |
44 | + true | |
53 | --- a/tests/test.rs | |
54 | +++ b/tests/test.rs | |
55 | @@ -34,7 +34,6 @@ fn find(name: &str) -> Result<pkg_config | |
56 | pkg_config::probe_library(name) | |
57 | } | |
58 | ||
59 | -#[test] | |
60 | fn cross_disabled() { | |
61 | let _g = LOCK.lock(); | |
62 | reset(); | |
63 | @@ -46,7 +45,6 @@ fn cross_disabled() { | |
45 | 64 | } |
65 | } | |
46 | 66 | |
47 | /// Deprecated in favor of the top level `get_variable` function | |
67 | -#[test] | |
68 | fn cross_enabled() { | |
69 | let _g = LOCK.lock(); | |
70 | reset(); |
0 | rust-redox-syscall (0.1.56-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium | |
0 | rust-redox-syscall (0.2.1-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium | |
1 | 1 | |
2 | * Package redox_syscall 0.2.1 from crates.io using debcargo 2.4.3 | |
3 | ||
4 | [ Niklas Claesson ] | |
2 | 5 | * Team upload. |
3 | 6 | * Package redox_syscall 0.1.56 from crates.io using debcargo 2.2.10 |
4 | 7 | |
5 | -- Niklas Claesson <nicke.claesson@gmail.com> Sun, 7 Jul 2019 16:13:24 +0200 | |
8 | -- Ximin Luo <infinity0@debian.org> Thu, 01 Oct 2020 22:29:44 +0100 | |
6 | 9 | |
7 | 10 | rust-redox-syscall (0.1.40-2) unstable; urgency=medium |
8 | 11 |
10 | 10 | |
11 | 11 | Files: debian/* |
12 | 12 | Copyright: |
13 | 2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
14 | 2018-2019 kpcyrd <git@rxv.cc> | |
13 | 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
14 | 2018-2020 kpcyrd <git@rxv.cc> | |
15 | 15 | License: MIT |
16 | 16 | |
17 | 17 | License: MIT |
20 | 20 | |
21 | 21 | Files: debian/* |
22 | 22 | Copyright: |
23 | 2018-2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
24 | 2018-2019 kpcyrd <git@rxv.cc> | |
23 | 2018-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net> | |
24 | 2018-2020 kpcyrd <git@rxv.cc> | |
25 | 25 | License: MIT |
26 | 26 | |
27 | 27 | License: MIT |
16 | 16 | index 6b8d130..42526f0 100644 |
17 | 17 | --- a/src/lib.rs |
18 | 18 | +++ b/src/lib.rs |
19 | @@ -1,5 +1,5 @@ | |
19 | @@ -1,6 +1,6 @@ | |
20 | 20 | -#![feature(asm)] |
21 | -#![feature(const_fn)] | |
21 | -#![feature(llvm_asm)] | |
22 | -#![feature(const_fn)] // see https://github.com/rust-lang/rfcs/pull/2632 | |
22 | 23 | +#![cfg_attr(nightly, feature(asm))] |
23 | +#![cfg_attr(nightly, feature(const_fn))] | |
24 | +#![cfg_attr(nightly, feature(llvm_asm))] | |
25 | +#![cfg_attr(nightly, feature(const_fn))] // see https://github.com/rust-lang/rfcs/pull/2632 | |
24 | 26 | #![cfg_attr(not(test), no_std)] |
25 | 27 | |
26 | 28 | #[cfg(test)] |