Hello community, here is the log from the commit of package cargo-c for openSUSE:Factory checked in at 2019-12-16 15:19:38 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/cargo-c (Old) and /work/SRC/openSUSE:Factory/.cargo-c.new.4691 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cargo-c" Mon Dec 16 15:19:38 2019 rev:3 rq:757184 version:0.5.0 Changes: -------- --- /work/SRC/openSUSE:Factory/cargo-c/cargo-c.changes 2019-12-12 23:18:32.262211466 +0100 +++ /work/SRC/openSUSE:Factory/.cargo-c.new.4691/cargo-c.changes 2019-12-16 15:19:44.755154721 +0100 @@ -1,0 +2,7 @@ +Sun Dec 15 13:13:58 UTC 2019 - Andreas Schneider <a...@cryptomilk.org> + +- Update to version 0.5.0 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.5.0 + * https://github.com/lu-zero/cargo-c/releases/tag/v0.4.0 + +------------------------------------------------------------------- Old: ---- cargo-c-0.3.1.tar.gz New: ---- cargo-c-0.5.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cargo-c.spec ++++++ --- /var/tmp/diff_new_pack.eG08EU/_old 2019-12-16 15:19:46.247154100 +0100 +++ /var/tmp/diff_new_pack.eG08EU/_new 2019-12-16 15:19:46.251154099 +0100 @@ -18,7 +18,7 @@ Name: cargo-c -Version: 0.3.1 +Version: 0.5.0 Release: 0 Summary: Helper to build and install c-like libraries from Rust License: MIT ++++++ cargo-c-0.3.1.tar.gz -> cargo-c-0.5.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cargo-c-0.3.1/Cargo.toml new/cargo-c-0.5.0/Cargo.toml --- old/cargo-c-0.3.1/Cargo.toml 2019-11-16 18:29:05.000000000 +0100 +++ new/cargo-c-0.5.0/Cargo.toml 2019-12-14 17:44:14.000000000 +0100 @@ -1,6 +1,6 @@ [package] name = "cargo-c" -version = "0.3.1" +version = "0.5.0" authors = ["Luca Barbato <lu_z...@gentoo.org>"] description = "Helper program to build and install c-like libraries" license = "MIT" @@ -26,7 +26,7 @@ cargo_metadata = "0.9" structopt = "0.3" regex = "1" -cbindgen = "0.9" +cbindgen = "0.11" toml = "0.5" serde = "1.0" serde_derive = "1.0" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cargo-c-0.3.1/README.md new/cargo-c-0.5.0/README.md --- old/cargo-c-0.3.1/README.md 2019-11-16 18:29:05.000000000 +0100 +++ new/cargo-c-0.5.0/README.md 2019-12-14 17:44:14.000000000 +0100 @@ -30,7 +30,7 @@ the first member is the crate you want to export, that means that you might have [to add a "." member at the start of the list][diff-3]. - Since Rust 1.38, also add "staticlib" to the "lib" `crate-type`. -- Remember to [add][diff-4] a [`cbindgen.toml`][cbinden-toml] and fill it with +- Remember to [add][diff-4] a [`cbindgen.toml`][cbindgen-toml] and fill it with at least the include guard and probably you want to set the language to C (it defaults to C++) - Once you are happy with the result update your documentation to tell the user diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/cargo-c-0.3.1/src/main.rs new/cargo-c-0.5.0/src/main.rs --- old/cargo-c-0.3.1/src/main.rs 2019-11-16 18:29:05.000000000 +0100 +++ new/cargo-c-0.5.0/src/main.rs 2019-12-14 17:44:14.000000000 +0100 @@ -154,7 +154,7 @@ let targetdir = cfg.targetdir.join("deps"); let (shared_lib, static_lib, impl_lib, def) = match (os.as_str(), env.as_str()) { - ("linux", _) => { + ("linux", _) | ("freebsd", _) | ("dragonfly", _) | ("netbsd", _) => { let static_lib = targetdir.join(&format!("lib{}-{}.a", name, hash)); let shared_lib = targetdir.join(&format!("lib{}-{}.so", name, hash)); (shared_lib, static_lib, None, None) @@ -272,7 +272,7 @@ .find(|t| t.kind.iter().any(|x| x == "lib")) .expect("Cannot find a library target") .name - .clone(); + .replace("-", "_"); Config { name, @@ -397,7 +397,7 @@ let warning = config.autogen_warning.unwrap_or_default(); let version_info = format!( "\n#define {0}_MAJOR {1}\n#define {0}_MINOR {2}\n#define {0}_PATCH {3}\n", - self.pkg.name.to_uppercase().replace("-", "_"), + self.name.to_uppercase(), self.pkg.version.major, self.pkg.version.minor, self.pkg.version.patch @@ -428,7 +428,7 @@ let libdir = &self.libdir; let target_dir = &self.targetdir; - if os == "linux" { + if os == "linux" || os == "freebsd" || os == "dragonfly" || os == "netbsd" { lines.push(format!("-Wl,-soname,lib{}.so.{}", name, major)); } else if os == "macos" { let line = format!("-Wl,-install_name,{1}/lib{0}.{2}.{3}.{4}.dylib,-current_version,{2}.{3}.{4},-compatibility_version,{2}", ++++++ vendor.tar.xz ++++++ /work/SRC/openSUSE:Factory/cargo-c/vendor.tar.xz /work/SRC/openSUSE:Factory/.cargo-c.new.4691/vendor.tar.xz differ: char 15, line 1