Codebase list rust-libslirp / ba0681c
update debcargo Ximin Luo 2 years ago
5 changed file(s) with 23 addition(s) and 84 deletion(s). Raw diff Collapse all Expand all
0 rust-debcargo (2.5.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Package debcargo 2.5.0 from crates.io using debcargo 2.5.0
3
4 -- Ximin Luo <infinity0@debian.org> Thu, 11 Nov 2021 13:33:58 +0000
5
06 rust-debcargo (2.4.4-1) unstable; urgency=medium
17
28 * Team upload.
+0
-60
src/debcargo/debian/patches/cargo-0.43.patch less more
0 This patch reverts the changes for cargo 0.49 and allows building with the
1 rust-cargo 0.43 package that is in Debian, it should be removed when cargo
2 0.49 is packaged.
3
4 Index: debcargo/src/crates.rs
5 ===================================================================
6 --- debcargo.orig/src/crates.rs
7 +++ debcargo/src/crates.rs
8 @@ -3,6 +3,7 @@ use cargo::{
9 core::manifest::ManifestMetadata,
10 core::registry::PackageRegistry,
11 core::source::MaybePackage,
12 + core::InternedString,
13 core::{
14 Dependency, EitherManifest, FeatureValue, Manifest, Package, PackageId, Registry, Source,
15 SourceId, Summary, Target, TargetKind, Workspace,
16 @@ -10,7 +11,7 @@ use cargo::{
17 ops,
18 ops::PackageOpts,
19 sources::registry::RegistrySource,
20 - util::{interning::InternedString, toml::read_manifest, FileLock},
21 + util::{toml::read_manifest, FileLock},
22 Config,
23 };
24 use filetime::{set_file_times, FileTime};
25 @@ -115,7 +116,7 @@ impl CrateInfo {
26 all_features: true,
27 no_default_features: false,
28 jobs: None,
29 - targets: Vec::new(),
30 + target: None,
31 features: Vec::new(),
32 };
33
34 @@ -565,10 +566,9 @@ impl CrateInfo {
35
36 // Ensure that Cargo.toml is in standard form, e.g. does not contain
37 // path dependencies, so can be built standalone (see #4030).
38 - let toml_path = path.join("Cargo.toml");
39 - let ws = Workspace::new(&toml_path.canonicalize()?, &self.config)?;
40 - let registry_toml = self.package().to_registry_toml(&ws)?;
41 + let registry_toml = self.package().to_registry_toml(&self.config)?;
42 let mut actual_toml = String::new();
43 + let toml_path = path.join("Cargo.toml");
44 fs::File::open(&toml_path)?.read_to_string(&mut actual_toml)?;
45
46 if !actual_toml.contains("AUTOMATICALLY GENERATED BY CARGO") {
47 Index: debcargo/Cargo.toml
48 ===================================================================
49 --- debcargo.orig/Cargo.toml
50 +++ debcargo/Cargo.toml
51 @@ -25,7 +25,7 @@ version = "0.12"
52 version = "1.0"
53
54 [dependencies.cargo]
55 -version = "0.49"
56 +version = "0.43"
57
58 [dependencies.chrono]
59 version = "0.4"
+0
-22
src/debcargo/debian/patches/relax-dep.diff less more
0 Index: debcargo/Cargo.toml
1 ===================================================================
2 --- debcargo.orig/Cargo.toml
3 +++ debcargo/Cargo.toml
4 @@ -52,7 +52,7 @@ version = "0.9"
5 version = "1.0"
6
7 [dependencies.semver]
8 -version = "0.10"
9 +version = "0.9"
10
11 [dependencies.semver-parser]
12 version = "0.9"
13 @@ -70,7 +70,7 @@ version = "0.4"
14 version = "3"
15
16 [dependencies.textwrap]
17 -version = "0.13"
18 +version = "0.11"
19
20 [dependencies.toml]
21 version = "0.5"
0 Description: Downgrade textwrap dep to 0.11, same as clap 2.33.3
1 Updating clap 2.33.3 to use textwrap 0.14 is much more painful
2 .
3 This patch can be dropped when debcargo updates clap to version 3
4 which uses textwrap 0.14.
5 --- a/Cargo.toml
6 +++ b/Cargo.toml
7 @@ -74,7 +74,7 @@
8 version = "3"
9
10 [dependencies.textwrap]
11 -version = "0.14"
12 +version = "0.11"
13
14 [dependencies.toml]
15 version = "0.5"
0 relax-dep.diff
1 cargo-0.43.patch
0 relax-dep.patch