From a086ab5c3db1dcdc8c1924cd0266a55edf5c8c65 Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 28 Sep 2017 13:52:33 -0500 Subject: [PATCH] cargo: convert to versioned include file We'll need the prior version of cargo to boot strap ourselves going forward so include the version info so we can support multiple versions in the tree. (cherry picked from commit 1ff41650d52489fcae971ed40752496aa7cac426) --- recipes-devtools/cargo/cargo-0.16.0.inc | 5 +++++ recipes-devtools/cargo/cargo-snapshot.inc | 4 ---- recipes-devtools/cargo/cargo.inc | 5 +---- recipes-devtools/cargo/cargo_0.16.0.bb | 4 +++- 4 files changed, 9 insertions(+), 9 deletions(-) create mode 100644 recipes-devtools/cargo/cargo-0.16.0.inc delete mode 100644 recipes-devtools/cargo/cargo-snapshot.inc diff --git a/recipes-devtools/cargo/cargo-0.16.0.inc b/recipes-devtools/cargo/cargo-0.16.0.inc new file mode 100644 index 0000000..8a2088c --- /dev/null +++ b/recipes-devtools/cargo/cargo-0.16.0.inc @@ -0,0 +1,5 @@ + +CARGO_SNAPSHOT = "2016-09-01/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz;downloadfilename=cargo-nightly-x86_64-unknown-linux-gnu-2016-09-01.tar.gz" +SRC_URI[cargo-snapshot.md5sum] = "d41ebf79290a7c9c9e5df87cb27e5091" +SRC_URI[cargo-snapshot.sha256sum] = "365e5cad79512d244b8ced32f8e5b86a710fc6c17f0d0f5f744b8058ef6dc756" + diff --git a/recipes-devtools/cargo/cargo-snapshot.inc b/recipes-devtools/cargo/cargo-snapshot.inc deleted file mode 100644 index 8f3c28a..0000000 --- a/recipes-devtools/cargo/cargo-snapshot.inc +++ /dev/null @@ -1,4 +0,0 @@ - -CARGO_SNAPSHOT = "2016-09-01/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz;downloadfilename=cargo-nightly-x86_64-unknown-linux-gnu-2016-09-01.tar.gz" -SRC_URI[md5sum] = "d41ebf79290a7c9c9e5df87cb27e5091" -SRC_URI[sha256sum] = "365e5cad79512d244b8ced32f8e5b86a710fc6c17f0d0f5f744b8058ef6dc756" diff --git a/recipes-devtools/cargo/cargo.inc b/recipes-devtools/cargo/cargo.inc index f3258af..d2b550a 100644 --- a/recipes-devtools/cargo/cargo.inc +++ b/recipes-devtools/cargo/cargo.inc @@ -1,15 +1,12 @@ -require cargo-snapshot.inc - SECTION = "devel" DEPENDS = "openssl zlib libgit2 curl ca-certificates libssh2" SRC_URI += "\ - http://static-rust-lang-org.s3.amazonaws.com/cargo-dist/${CARGO_SNAPSHOT} \ + https://static.rust-lang.org/cargo-dist/${CARGO_SNAPSHOT};name=cargo-snapshot \ " LIC_FILES_CHKSUM += " \ -file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \ file://LICENSE-THIRD-PARTY;md5=892ea68b169e69cfe75097fc38a15b56 \ " diff --git a/recipes-devtools/cargo/cargo_0.16.0.bb b/recipes-devtools/cargo/cargo_0.16.0.bb index 4982c0b..8845982 100644 --- a/recipes-devtools/cargo/cargo_0.16.0.bb +++ b/recipes-devtools/cargo/cargo_0.16.0.bb @@ -1,4 +1,4 @@ -# Auto-Generated by cargo-bitbake 0.3.6 +# Auto-Generated by cargo-bitbake 0.3.8 # inherit cargo @@ -89,6 +89,7 @@ crate://crates.io/ws2_32-sys/0.2.1 \ LIC_FILES_CHKSUM=" \ file://LICENSE-MIT;md5=362255802eb5aa87810d12ddf3cfedb4 \ +file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \ " SUMMARY = "Cargo, a package manager for Rust." @@ -98,4 +99,5 @@ LICENSE = "MIT | Apache-2.0" # includes this file if it exists but does not fail # this is useful for anything you may want to override from # what cargo-bitbake generates. +include cargo-${PV}.inc include cargo.inc