[Pkg-rust-maintainers] Upstream has changed the bootstrap process
Ximin Luo
infinity0 at debian.org
Thu Jul 7 21:50:41 UTC 2016
OK, looks like it's working:
https://anonscm.debian.org/cgit/pkg-rust/rust.git/log/
I've tested this with DEB_BUILD_PROFILES=dlstage0 and also without this; both builds work and all tests pass. :D Please review and upload if good!
In particular, @Angus: I updated add-soname.patch - upstream now has a CrateType enum to represent the type of library, instead of a "dylib" boolean. The values this enum can take are:
src/librustc/session/config.rs:
pub enum CrateType {
CrateTypeExecutable,
CrateTypeDylib,
CrateTypeRlib,
CrateTypeStaticlib,
CrateTypeCdylib,
}
I replaced the "if dylib" check with "crate_type == config::CrateTypeDylib", but I'm not sure if this is entirely correct. If you run "git log -p src/librustc_trans/back/link.rs" on the upstream repo, you will see that they sometimes did what I did, but sometimes replaced it to check "crate_type != config::CrateTypeExecutable" instead. Please fix this, if appropriate.
X
--
GPG: ed25519/56034877E1F87C35
GPG: rsa4096/1318EFAC5FBBDBCE
https://github.com/infinity0/pubkeys.git
More information about the Pkg-rust-maintainers
mailing list