From 81ea9f2d2cdca77414175a408f646288313ae5f1 Mon Sep 17 00:00:00 2001 From: Tyler Hall Date: Tue, 24 Oct 2017 14:14:08 -0400 Subject: [PATCH] bitflags: update to 0.8.2 and Rust 1.20 compat 0.8.2 is the last version before the breaking "flags" keyword change. For now, no_std crates need to be rlibs because rustc complains about missing lang items on dylibs even though it would eventually be resolved in the final link. Ignore pub_use_of_private_extern_crate as there exists no version with this fixed that uses the old API. --- .../bitflags/{bitflags_0.5.0.bb => bitflags_0.8.2.bb} | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) rename recipes-core/bitflags/{bitflags_0.5.0.bb => bitflags_0.8.2.bb} (78%) diff --git a/recipes-core/bitflags/bitflags_0.5.0.bb b/recipes-core/bitflags/bitflags_0.8.2.bb similarity index 78% rename from recipes-core/bitflags/bitflags_0.5.0.bb rename to recipes-core/bitflags/bitflags_0.8.2.bb index e4f14e9..7140409 100644 --- a/recipes-core/bitflags/bitflags_0.5.0.bb +++ b/recipes-core/bitflags/bitflags_0.8.2.bb @@ -8,12 +8,14 @@ LIC_FILES_CHKSUM = "\ inherit rust-bin -SRC_URI = "git://github.com/rust-lang-nursery/bitflags.git;protocol=https" -SRCREV = "41aa413a7c30d70b93b44ab5447276c381ef249e" +SRC_URI = "git://github.com/rust-lang-nursery/bitflags.git;protocol=https;nobranch=1" +SRCREV = "e30da43cac0e52fc8d0007ce99a316ec6473033e" S = "${WORKDIR}/git" LIB_SRC = "${S}/src/lib.rs" +CRATE_TYPE = "rlib" +RUSTFLAGS += "-A pub_use_of_private_extern_crate" do_compile () { oe_compile_rust_lib