diff --git a/classes/cargo.bbclass b/classes/cargo.bbclass index 184d3e0..3d1605c 100644 --- a/classes/cargo.bbclass +++ b/classes/cargo.bbclass @@ -11,10 +11,6 @@ def cargo_base_dep(d): BASEDEPENDS_append = " ${@cargo_base_dep(d)}" -# FIXME: this is a workaround for a misbehavior in cargo when used with quilt. -# See https://github.com/rust-lang/cargo/issues/978 -PATCHTOOL = "patch" - # Cargo only supports in-tree builds at the moment B = "${S}" @@ -46,18 +42,6 @@ cargo_do_configure () { echo "]" >>../.cargo/config } -rust_cargo_patch () { - # FIXME: if there is already an entry for this target, in an existing - # cargo/config, this won't work. - cd "${S}" - cat >>Cargo.toml < Date: Wed, 3 Feb 2016 15:59:48 -0500 Subject: [PATCH] disable cargo snapshot fetch @@ -8,20 +8,20 @@ Subject: [PATCH] disable cargo snapshot fetch 1 file changed, 4 deletions(-) diff --git a/Makefile.in b/Makefile.in -index 286a593..9c66486 100644 +index fadcb4b..a8da630 100644 --- a/Makefile.in +++ b/Makefile.in -@@ -92,10 +92,6 @@ test-unit-$(1): $$(CARGO) +@@ -103,10 +103,6 @@ test-unit-$(1): $$(CARGO) endef $(foreach target,$(CFG_TARGET),$(eval $(call CARGO_TARGET,$(target)))) --$(TARGET_ROOT)/snapshot/bin/cargo$(X): src/snapshots.txt -- $(CFG_PYTHON) src/etc/dl-snapshot.py $(CFG_BUILD) +-$(TARGET_ROOT)/snapshot/bin/cargo$(X): $(S)src/snapshots.txt +- $(CFG_PYTHON) $(S)src/etc/dl-snapshot.py $(CFG_BUILD) - touch $@ - # === Tests -- -2.7.0 +2.8.2 diff --git a/recipes-devtools/cargo/files/ssh2-rs/0001-libssh2-sys-avoid-explicitly-linking-in-openssl.patch b/recipes-devtools/cargo/files/ssh2-rs/0001-libssh2-sys-avoid-explicitly-linking-in-openssl.patch index 18465b7..4c2b1eb 100644 --- a/recipes-devtools/cargo/files/ssh2-rs/0001-libssh2-sys-avoid-explicitly-linking-in-openssl.patch +++ b/recipes-devtools/cargo/files/ssh2-rs/0001-libssh2-sys-avoid-explicitly-linking-in-openssl.patch @@ -1,20 +1,20 @@ -From be07c11b438550829d82dc844e38806570232cd7 Mon Sep 17 00:00:00 2001 +From 65f07216c2c7a341cf13c35ecc1a781d7a489511 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Sat, 12 Dec 2015 22:44:14 -0500 Subject: [PATCH] libssh2-sys: avoid explicitly linking in openssl --- - libssh2-sys/Cargo.toml | 25 ------------------------- + libssh2-sys/Cargo.toml | 33 --------------------------------- libssh2-sys/lib.rs | 2 -- - 2 files changed, 27 deletions(-) + 2 files changed, 35 deletions(-) diff --git a/libssh2-sys/Cargo.toml b/libssh2-sys/Cargo.toml -index b9ecec2..78f92ac 100644 +index c4e006d..175be77 100644 --- a/libssh2-sys/Cargo.toml +++ b/libssh2-sys/Cargo.toml -@@ -18,31 +18,6 @@ libc = "0.2" - ws2_32-sys = ">= 0" - winapi = "0.2" +@@ -19,39 +19,6 @@ libc = "0.2" + [target."cfg(unix)".dependencies] + openssl-sys = ">= 0" -[target.i686-apple-darwin.dependencies] -openssl-sys = ">= 0" @@ -22,14 +22,22 @@ index b9ecec2..78f92ac 100644 -openssl-sys = ">= 0" -[target.i686-unknown-linux-gnu.dependencies] -openssl-sys = ">= 0" +-[target.i586-unknown-linux-gnu.dependencies] +-openssl-sys = ">= 0" -[target.x86_64-unknown-linux-gnu.dependencies] -openssl-sys = ">= 0" -[target.aarch64-unknown-linux-gnu.dependencies] -openssl-sys = ">= 0" +-[target.powerpc64-unknown-linux-gnu.dependencies] +-openssl-sys = ">= 0" +-[target.powerpc64le-unknown-linux-gnu.dependencies] +-openssl-sys = ">= 0" -[target.x86_64-unknown-linux-musl.dependencies] -openssl-sys = ">= 0" -[target.arm-unknown-linux-gnueabihf.dependencies] -openssl-sys = ">= 0" +-[target.armv7-unknown-linux-gnueabihf.dependencies] +-openssl-sys = ">= 0" -[target.i686-unknown-freebsd.dependencies] -openssl-sys = ">= 0" -[target.x86_64-unknown-freebsd.dependencies] @@ -45,11 +53,11 @@ index b9ecec2..78f92ac 100644 pkg-config = "0.3" cmake = "0.1.2" diff --git a/libssh2-sys/lib.rs b/libssh2-sys/lib.rs -index bb6c46f..40af82f 100644 +index 02fd203..3ca1806 100644 --- a/libssh2-sys/lib.rs +++ b/libssh2-sys/lib.rs -@@ -6,8 +6,6 @@ extern crate ws2_32; - extern crate winapi; +@@ -4,8 +4,6 @@ + extern crate libc; extern crate libz_sys; -#[cfg(unix)] @@ -58,5 +66,5 @@ index bb6c46f..40af82f 100644 use libc::{c_int, size_t, c_void, c_char, c_long, c_uchar, c_uint, c_ulong}; use libc::ssize_t; -- -2.4.10 +2.8.2