Update to rust and cargo version 1.36.0
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Common variables used by all Rust builds
|
# Common variables used by all Rust builds
|
||||||
export rustlibdir = "${libdir}/rust"
|
export rustlibdir = "${libdir}/rust"
|
||||||
FILES_${PN} += "${rustlibdir}/*.so"
|
FILES_${PN} += "${rustlibdir}/*.so"
|
||||||
FILES_${PN}-dev += "${rustlibdir}/*.rlib"
|
FILES_${PN}-dev += "${rustlibdir}/*.rlib ${rustlibdir}/*.rmeta"
|
||||||
FILES_${PN}-dbg += "${rustlibdir}/.debug"
|
FILES_${PN}-dbg += "${rustlibdir}/.debug"
|
||||||
|
|
||||||
RUSTLIB = "-L ${STAGING_LIBDIR}/rust"
|
RUSTLIB = "-L ${STAGING_LIBDIR}/rust"
|
||||||
|
|||||||
@@ -0,0 +1,31 @@
|
|||||||
|
From 42e65192b6f7520b7a05924856e00600961f6758 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Johan Anderholm <johan.anderholm@gmail.com>
|
||||||
|
Date: Sun, 27 Jan 2019 10:19:00 +0100
|
||||||
|
Subject: [PATCH] Disable http2
|
||||||
|
|
||||||
|
http2 requires that curl is build with nghttp2 which in turn depends on
|
||||||
|
many dependencies and ultimately a dependency loop in the case of
|
||||||
|
curl-native. As long as multiplexing is disabled in cargo this should
|
||||||
|
be fine.
|
||||||
|
|
||||||
|
Upstream-Status: Inappropriate
|
||||||
|
---
|
||||||
|
Cargo.toml | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Cargo.toml b/Cargo.toml
|
||||||
|
index c3fcacf5..bd6ec50b 100644
|
||||||
|
--- a/Cargo.toml
|
||||||
|
+++ b/Cargo.toml
|
||||||
|
@@ -24,7 +24,7 @@ bytesize = "1.0"
|
||||||
|
crates-io = { path = "src/crates-io", version = "0.25" }
|
||||||
|
crossbeam-utils = "0.6"
|
||||||
|
crypto-hash = "0.3.1"
|
||||||
|
-curl = { version = "0.4.21", features = ['http2'] }
|
||||||
|
+curl = { version = "0.4.21" }
|
||||||
|
curl-sys = "0.4.18"
|
||||||
|
env_logger = "0.6.0"
|
||||||
|
pretty_env_logger = { version = "0.3", optional = true }
|
||||||
|
--
|
||||||
|
2.11.0
|
||||||
|
|
||||||
@@ -7,8 +7,6 @@ DEPENDS = "openssl zlib libgit2 curl ca-certificates libssh2"
|
|||||||
|
|
||||||
LIC_FILES_CHKSUM = " \
|
LIC_FILES_CHKSUM = " \
|
||||||
file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d \
|
file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d \
|
||||||
file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \
|
|
||||||
file://LICENSE-THIRD-PARTY;md5=892ea68b169e69cfe75097fc38a15b56 \
|
|
||||||
"
|
"
|
||||||
|
|
||||||
SRC_URI += "file://0001-Disable-http2.patch"
|
SRC_URI += "file://0001-Disable-http2.patch"
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
require recipes-devtools/rust/rust-source-${PV}.inc
|
|
||||||
require recipes-devtools/rust/rust-snapshot-${PV}.inc
|
|
||||||
require cargo.inc
|
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
require recipes-devtools/rust/rust-source-${PV}.inc
|
require recipes-devtools/rust/rust-source-${PV}.inc
|
||||||
require recipes-devtools/rust/rust-snapshot-${PV}.inc
|
require recipes-devtools/rust/rust-snapshot-${PV}.inc
|
||||||
require cargo.inc
|
require cargo.inc
|
||||||
|
|
||||||
|
LIC_FILES_CHKSUM += " \
|
||||||
|
file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \
|
||||||
|
file://LICENSE-THIRD-PARTY;md5=892ea68b169e69cfe75097fc38a15b56 \
|
||||||
|
"
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
require recipes-devtools/rust/rust-source-${PV}.inc
|
||||||
|
require recipes-devtools/rust/rust-snapshot-${PV}.inc
|
||||||
|
require cargo.inc
|
||||||
|
|
||||||
|
LIC_FILES_CHKSUM += " \
|
||||||
|
file://LICENSE-APACHE;md5=71b224ca933f0676e26d5c2e2271331c \
|
||||||
|
file://LICENSE-THIRD-PARTY;md5=f257ad009884cb88a3a87d6920e7180a \
|
||||||
|
"
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
require rust-source-${PV}.inc
|
require rust-source-${PV}.inc
|
||||||
require libstd-rs.inc
|
require libstd-rs.inc
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://../../COPYRIGHT;md5=27e0aaa5e5cbd279af456711d3bdc066"
|
LIC_FILES_CHKSUM = "file://../../COPYRIGHT;md5=93a95682d51b4cb0a633a97046940ef0"
|
||||||
|
|
||||||
CARGO_FEATURES ?= "panic-unwind backtrace"
|
CARGO_FEATURES ?= "panic-unwind backtrace"
|
||||||
|
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
require rust-source-${PV}.inc
|
require rust-source-${PV}.inc
|
||||||
require rust-llvm.inc
|
require rust-llvm.inc
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=c520ed40e11887bb1d24d86f7f5b1f05"
|
LIC_FILES_CHKSUM = "file://LICENSE.TXT;md5=c6b766a4e85dd28301eeed54a6684648"
|
||||||
|
|
||||||
do_install_prepend () {
|
do_install_prepend () {
|
||||||
# the install does a sed on this without installing the file
|
# the install does a sed on this without installing the file
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
## This is information on the rust-snapshot (binary) used to build our current release.
|
|
||||||
## snapshot info is taken from rust/src/stage0.txt
|
|
||||||
## TODO: find a way to add additional SRC_URIs based on the contents of an
|
|
||||||
## earlier SRC_URI.
|
|
||||||
RS_VERSION = "1.32.0"
|
|
||||||
|
|
||||||
RUST_STD_SNAPSHOT = "rust-std-${RS_VERSION}-${BUILD_ARCH}-unknown-linux-gnu"
|
|
||||||
RUSTC_SNAPSHOT = "rustc-${RS_VERSION}-${BUILD_ARCH}-unknown-linux-gnu"
|
|
||||||
CARGO_VERSION = "0.33.0"
|
|
||||||
CARGO_SNAPSHOT = "cargo-${CARGO_VERSION}-${BUILD_ARCH}-unknown-linux-gnu"
|
|
||||||
|
|
||||||
SRC_URI += " \
|
|
||||||
https://static.rust-lang.org/dist/${RUST_STD_SNAPSHOT}.tar.gz;name=rust-std-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
|
|
||||||
https://static.rust-lang.org/dist/${RUSTC_SNAPSHOT}.tar.gz;name=rustc-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
|
|
||||||
https://static.rust-lang.org/dist/${CARGO_SNAPSHOT}.tar.gz;name=cargo-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
|
|
||||||
"
|
|
||||||
|
|
||||||
# TODO: Add hashes for other architecture toolchains as well. Make a script?
|
|
||||||
SRC_URI[rustc-snapshot-x86_64.md5sum] = "e8d74f3043fb0b566f6af0110a73af7f"
|
|
||||||
SRC_URI[rustc-snapshot-x86_64.sha256sum] = "75c31f32e19548c1608611d08b82b87560e02f15caac7b2663a8189a4609977c"
|
|
||||||
SRC_URI[rust-std-snapshot-x86_64.md5sum] = "5e644ee49ce9ce449824f9f0a4153409"
|
|
||||||
SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "9f2705a3ed3217c13fd55569406c52f590030752f57520312e135223ae930caf"
|
|
||||||
SRC_URI[cargo-snapshot-x86_64.md5sum] = "13fbd6575ff9e5d865127bf0bff3b51d"
|
|
||||||
SRC_URI[cargo-snapshot-x86_64.sha256sum] = "9dd7f79a0ab882ed7c892731514a4aed6435f7bc8a20381a8346b471c8a14209"
|
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
## This is information on the rust-snapshot (binary) used to build our current release.
|
||||||
|
## snapshot info is taken from rust/src/stage0.txt
|
||||||
|
## TODO: find a way to add additional SRC_URIs based on the contents of an
|
||||||
|
## earlier SRC_URI.
|
||||||
|
RS_VERSION = "1.35.0"
|
||||||
|
|
||||||
|
RUSTC_SNAPSHOT = "rustc-${RS_VERSION}-${BUILD_ARCH}-unknown-linux-gnu"
|
||||||
|
RUST_STD_SNAPSHOT = "rust-std-${RS_VERSION}-${BUILD_ARCH}-unknown-linux-gnu"
|
||||||
|
CARGO_VERSION = "0.36.0"
|
||||||
|
CARGO_SNAPSHOT = "cargo-${CARGO_VERSION}-${BUILD_ARCH}-unknown-linux-gnu"
|
||||||
|
|
||||||
|
SRC_URI += " \
|
||||||
|
https://static.rust-lang.org/dist/${RUSTC_SNAPSHOT}.tar.xz;name=rustc-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
|
||||||
|
https://static.rust-lang.org/dist/${RUST_STD_SNAPSHOT}.tar.xz;name=rust-std-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
|
||||||
|
https://static.rust-lang.org/dist/${CARGO_SNAPSHOT}.tar.xz;name=cargo-snapshot-${BUILD_ARCH};subdir=rust-snapshot-components \
|
||||||
|
"
|
||||||
|
|
||||||
|
# TODO: Add hashes for other architecture toolchains as well. Make a script?
|
||||||
|
SRC_URI[rustc-snapshot-x86_64.md5sum] = "47ea78f6b3f68e30f24b9c94e465d6bd"
|
||||||
|
SRC_URI[rustc-snapshot-x86_64.sha256sum] = "5d6dc216ba429ddf3a1657e70f3e5e380549b546fe56de897677a11d72aa4e07"
|
||||||
|
SRC_URI[rust-std-snapshot-x86_64.md5sum] = "348ec23ca8e47fc65079bc80e63cca5f"
|
||||||
|
SRC_URI[rust-std-snapshot-x86_64.sha256sum] = "ccff05d0e2d88499505b10f8e33e8b1645df057f918edc81f8acb0fcee9f90b2"
|
||||||
|
SRC_URI[cargo-snapshot-x86_64.md5sum] = "93a375e771f3d9b3a139e612dd4730ee"
|
||||||
|
SRC_URI[cargo-snapshot-x86_64.sha256sum] = "ab5a6ff1947463dbd2477ca5dac2012494dae821112098ae0c54add652adfdc3"
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
SRC_URI += "https://static.rust-lang.org/dist/rustc-${PV}-src.tar.gz;name=rust"
|
|
||||||
|
|
||||||
SRC_URI[rust.md5sum] = "54b688b5bc328ae72d8bfcf218969cea"
|
|
||||||
SRC_URI[rust.sha256sum] = "5a01a8d7e65126f6079042831385e77485fa5c014bf217e9f3e4aff36a485d94"
|
|
||||||
|
|
||||||
# later versions of rust change the directory that they unextract to
|
|
||||||
RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
|
|
||||||
# set this as our default
|
|
||||||
S = "${RUSTSRC}"
|
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=27e0aaa5e5cbd279af456711d3bdc066"
|
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
SRC_URI += "https://static.rust-lang.org/dist/rustc-${PV}-src.tar.xz;name=rust"
|
||||||
|
|
||||||
|
SRC_URI[rust.md5sum] = "78ffc0b029aaed216b45c3fe24747d46"
|
||||||
|
SRC_URI[rust.sha256sum] = "f51645b9f787af4a5d94db17f6af39db0c55980ed24fe366cad55b57900f8f2d"
|
||||||
|
|
||||||
|
# later versions of rust change the directory that they unextract to
|
||||||
|
RUSTSRC = "${WORKDIR}/rustc-${PV}-src"
|
||||||
|
# set this as our default
|
||||||
|
S = "${RUSTSRC}"
|
||||||
|
|
||||||
|
LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=93a95682d51b4cb0a633a97046940ef0"
|
||||||
Reference in New Issue
Block a user