Codebase list rust-stfu8 / 3618834
Update pkg-config Ximin Luo 5 years ago
3 changed file(s) with 26 addition(s) and 32 deletion(s). Raw diff Collapse all Expand all
0 rust-pkg-config (0.3.12-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package pkg-config 0.3.12 from crates.io using debcargo 2.2.4
3
4 -- Ximin Luo <infinity0@debian.org> Tue, 24 Jul 2018 20:39:43 -0700
5
06 rust-pkg-config (0.3.11-1) unstable; urgency=medium
17
28 * Package pkg-config 0.3.11 from crates.io using debcargo 2.1.2
33 Source: https://github.com/alexcrichton/pkg-config-rs
44
55 Files: *
6 Copyright: FIXME (overlay) UNKNOWN Alex Crichton <alex@alexcrichton.com>
6 Copyright: FIXME (overlay) UNKNOWN-YEARS Alex Crichton <alex@alexcrichton.com>
77 License: MIT or Apache-2.0
88 Comment:
99 FIXME (overlay): Since upstream copyright years are not available in
1313
1414 Files: ./LICENSE-MIT
1515 Copyright: 2014 Alex Crichton
16 License: UNKNOWN; FIXME (overlay)
16 License: UNKNOWN-LICENSE; FIXME (overlay)
1717 Comment:
1818 FIXME (overlay): These notices are extracted from files. Please review them
1919 before uploading to the archive.
2020
2121 Files: debian/*
22 Copyright: 2018 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
23 2018 FIXME (overlay) Your Name <Your Email>
22 Copyright:
23 2018 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2018 FIXME (overlay) Your Name <Your Email>
2425 License: MIT or Apache-2.0
2526
2627 License: Apache-2.0
4546 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4647 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4748 SOFTWARE.
48
49
50
88 //! * `FOO_NO_PKG_CONFIG` - if set, this will disable running `pkg-config` when
99 //! probing for the library named `foo`.
1010 //!
11 @@ -76,15 +74,7 @@
12 use std::str;
13
14 pub fn target_supported() -> bool {
15 - let target = env::var("TARGET").unwrap_or_else(|_| String::new());
16 - let host = env::var("HOST").unwrap_or_else(|_| String::new());
17 -
18 - // Only use pkg-config in host == target situations by default (allowing an
19 - // override) and then also don't use pkg-config on MSVC as it's really not
20 - // meant to work there but when building MSVC code in a MSYS shell we may be
21 - // able to run pkg-config anyway.
22 - (host == target || env::var_os("PKG_CONFIG_ALLOW_CROSS").is_some()) &&
23 - !target.contains("msvc")
24 + true
11 @@ -81,7 +79,7 @@
12
13 // Only use pkg-config in host == target situations by default (allowing an
14 // override).
15 - (host == target || env::var_os("PKG_CONFIG_ALLOW_CROSS").is_some())
16 + (host == target || true)
2517 }
2618
2719 #[derive(Clone, Default)]
28 @@ -116,9 +106,8 @@
20 @@ -113,9 +111,8 @@
2921 /// Contains the name of the responsible environment variable.
3022 EnvNoPkgConfig(String),
3123
3628 + /// the Debian package never emits this.
3729 CrossCompilation,
3830
39 /// Attempted to compile using the MSVC ABI build
40 @@ -143,10 +132,7 @@
31 /// Failed to run `pkg-config`.
32 @@ -137,10 +134,6 @@
4133 fn description(&self) -> &str {
4234 match *self {
4335 Error::EnvNoPkgConfig(_) => "pkg-config requested to be aborted",
4537 - "pkg-config doesn't handle cross compilation. \
4638 - Use PKG_CONFIG_ALLOW_CROSS=1 to override"
4739 - }
48 + Error::CrossCompilation => panic!(),
49 Error::MSVC => "pkg-config is incompatible with the MSVC ABI build.",
5040 Error::Command { .. } => "failed to run pkg-config",
5141 Error::Failure { .. } => "pkg-config did not exit sucessfully",
52 @@ -222,10 +208,7 @@
42 Error::__Nonexhaustive => panic!(),
43 @@ -214,10 +207,6 @@
5344 Error::EnvNoPkgConfig(ref name) => {
5445 write!(f, "Aborted because {} is set", name)
5546 }
5748 - write!(f, "Cross compilation detected. \
5849 - Use PKG_CONFIG_ALLOW_CROSS=1 to override")
5950 - }
60 + Error::CrossCompilation => panic!(),
61 Error::MSVC => {
62 write!(f, "MSVC target detected. If you are using the MSVC ABI \
63 rust build, please use the GNU ABI build instead.")
64 @@ -405,7 +388,11 @@
51 Error::Command { ref command, ref cause } => {
52 write!(f, "Failed to run `{}`: {}", command, cause)
53 }
54 @@ -388,7 +377,11 @@
6555 }
6656
6757 fn command(&self, name: &str, args: &[&str]) -> Command {