mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 09:40:05 +02:00
* Rust: add recipe for Rust 1.16.0 This is the first instance of the recipe where it builds cargo itself. * Rust: add recipe for Rust 1.17.0
162 lines
7.8 KiB
Plaintext
162 lines
7.8 KiB
Plaintext
From 919eca059d280e4b73403d4d1013a52525fc72e2 Mon Sep 17 00:00:00 2001
|
|
From: Niels Sascha Reedijk <niels.reedijk@gmail.com>
|
|
Date: Sun, 8 Oct 2017 08:09:26 +0000
|
|
Subject: [PATCH 1/4] Update dependencies to packages with Haiku support
|
|
|
|
* num_cpus from 1.3.0 to 1.4.0
|
|
* fs2 from 0.4.1 to 0.4.2
|
|
---
|
|
Cargo.lock | 12 ++++++------
|
|
1 file changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/Cargo.lock b/Cargo.lock
|
|
index 44c3a43..ef6d222 100644
|
|
--- a/Cargo.lock
|
|
+++ b/Cargo.lock
|
|
@@ -13,7 +13,7 @@ dependencies = [
|
|
"env_logger 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"filetime 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"flate2 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
- "fs2 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
+ "fs2 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"git2 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"git2-curl 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"glob 0.2.11 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
@@ -23,7 +23,7 @@ dependencies = [
|
|
"libgit2-sys 0.6.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"log 0.3.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
- "num_cpus 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
+ "num_cpus 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"openssl 0.9.10 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"psapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
"rustc-serialize 0.3.23 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
@@ -211,7 +211,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
[[package]]
|
|
name = "fs2"
|
|
-version = "0.4.1"
|
|
+version = "0.4.2"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
dependencies = [
|
|
"kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
@@ -468,7 +468,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
[[package]]
|
|
name = "num_cpus"
|
|
-version = "1.3.0"
|
|
+version = "1.4.0"
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
dependencies = [
|
|
"libc 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)",
|
|
@@ -833,7 +833,7 @@ dependencies = [
|
|
"checksum filetime 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "5363ab8e4139b8568a6237db5248646e5a8a2f89bd5ccb02092182b11fd3e922"
|
|
"checksum flate2 0.2.17 (registry+https://github.com/rust-lang/crates.io-index)" = "d4e4d0c15ef829cbc1b7cda651746be19cceeb238be7b1049227b14891df9e25"
|
|
"checksum foreign-types 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3e4056b9bd47f8ac5ba12be771f77a0dae796d1bbaaf5fd0b9c2d38b69b8a29d"
|
|
-"checksum fs2 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "34edaee07555859dc13ca387e6ae05686bb4d0364c95d649b6dab959511f4baf"
|
|
+"checksum fs2 0.4.2 (registry+https://github.com/rust-lang/crates.io-index)" = "9ab76cfd2aaa59b7bf6688ad9ba15bbae64bff97f04ea02144cfd3443e5c2866"
|
|
"checksum gcc 0.3.45 (registry+https://github.com/rust-lang/crates.io-index)" = "40899336fb50db0c78710f53e87afc54d8c7266fb76262fecc78ca1a7f09deae"
|
|
"checksum gdi32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "0912515a8ff24ba900422ecda800b52f4016a56251922d397c576bf92c690518"
|
|
"checksum git2 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)" = "046ae03385257040b2a35e56d9669d950dd911ba2bf48202fbef73ee6aab27b2"
|
|
@@ -862,7 +862,7 @@ dependencies = [
|
|
"checksum num-iter 0.1.33 (registry+https://github.com/rust-lang/crates.io-index)" = "f7d1891bd7b936f12349b7d1403761c8a0b85a18b148e9da4429d5d102c1a41e"
|
|
"checksum num-rational 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)" = "c2dc5ea04020a8f18318ae485c751f8cfa1c0e69dcf465c29ddaaa64a313cc44"
|
|
"checksum num-traits 0.1.37 (registry+https://github.com/rust-lang/crates.io-index)" = "e1cbfa3781f3fe73dc05321bed52a06d2d491eaa764c52335cf4399f046ece99"
|
|
-"checksum num_cpus 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a18c392466409c50b87369414a2680c93e739aedeb498eb2bff7d7eb569744e2"
|
|
+"checksum num_cpus 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ca313f1862c7ec3e0dfe8ace9fa91b1d9cb5c84ace3d00f5ec4216238e93c167"
|
|
"checksum openssl 0.9.10 (registry+https://github.com/rust-lang/crates.io-index)" = "d8aa0eb7aad44f0da6f7dda13ddb4559d91a0f40cfab150b1f76ad5b39ec523f"
|
|
"checksum openssl-probe 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "756d49c8424483a3df3b5d735112b4da22109ced9a8294f1f5cdf80fb3810919"
|
|
"checksum openssl-sys 0.9.10 (registry+https://github.com/rust-lang/crates.io-index)" = "14f5bfd12054d764510b887152d564ba11d99ae24ea7d740781778f646620576"
|
|
--
|
|
2.7.0
|
|
|
|
|
|
From c8a25f5dc277550dbd18fbe530337c92464fbf18 Mon Sep 17 00:00:00 2001
|
|
From: Niels Sascha Reedijk <niels.reedijk@gmail.com>
|
|
Date: Sun, 8 Oct 2017 08:10:10 +0000
|
|
Subject: [PATCH 2/4] Haiku: libc does not define SIGSYS. Use the constant
|
|
instead.
|
|
|
|
To be fixed in future versions of liblibc
|
|
---
|
|
src/cargo/util/errors.rs | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/cargo/util/errors.rs b/src/cargo/util/errors.rs
|
|
index 80a2540..2ccfc2b 100644
|
|
--- a/src/cargo/util/errors.rs
|
|
+++ b/src/cargo/util/errors.rs
|
|
@@ -431,7 +431,7 @@ pub fn process_error(msg: &str,
|
|
libc::SIGSEGV => ", SIGSEGV: invalid memory reference",
|
|
libc::SIGTERM => ", SIGTERM: termination signal",
|
|
libc::SIGBUS => ", SIGBUS: access to undefined memory",
|
|
- libc::SIGSYS => ", SIGSYS: bad system call",
|
|
+ 25 => ", SIGSYS: bad system call",
|
|
libc::SIGTRAP => ", SIGTRAP: trace/breakpoint trap",
|
|
_ => "",
|
|
};
|
|
--
|
|
2.7.0
|
|
|
|
|
|
From 69d9620d86d523874414ab26dc4f2a1589ca2b19 Mon Sep 17 00:00:00 2001
|
|
From: Niels Sascha Reedijk <niels.reedijk@gmail.com>
|
|
Date: Sun, 8 Oct 2017 11:30:02 +0000
|
|
Subject: [PATCH 3/4] Haiku: properly process the SYSCONFDIR for Haiku
|
|
packaging
|
|
|
|
---
|
|
configure | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/configure b/configure
|
|
index 55e9bb0..ea47e82 100755
|
|
--- a/configure
|
|
+++ b/configure
|
|
@@ -379,6 +379,7 @@ CFG_INFODIR=${CFG_INFODIR#${CFG_PREFIX}}
|
|
CFG_DOCDIR=${CFG_DOCDIR#${CFG_PREFIX}}
|
|
CFG_MANDIR=${CFG_MANDIR#${CFG_PREFIX}}
|
|
CFG_LIBDIR=${CFG_LIBDIR#${CFG_PREFIX}}
|
|
+CFG_SYSCONFDIR=${CFG_SYSCONFDIR#${CFG_PREFIX}}
|
|
|
|
# copy host-triples to target-triples so that hosts are a subset of targets
|
|
V_TEMP=""
|
|
@@ -407,6 +408,7 @@ putvar CFG_DOCDIR
|
|
putvar CFG_INFODIR
|
|
putvar CFG_MANDIR
|
|
putvar CFG_LIBDIR
|
|
+putvar CFG_SYSCONFDIR
|
|
putvar CFG_RUSTC
|
|
putvar CFG_RUSTDOC
|
|
putvar CFG_CARGO
|
|
--
|
|
2.7.0
|
|
|
|
|
|
From 0351ea70283314d9b88fd9af529a864b07028877 Mon Sep 17 00:00:00 2001
|
|
From: Niels Sascha Reedijk <niels.reedijk@gmail.com>
|
|
Date: Sun, 8 Oct 2017 17:54:43 +0000
|
|
Subject: [PATCH 4/4] Haiku: rename() gives an error when the filenames are the
|
|
same. Backport of future fix
|
|
|
|
---
|
|
src/cargo/ops/cargo_rustc/mod.rs | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/cargo/ops/cargo_rustc/mod.rs b/src/cargo/ops/cargo_rustc/mod.rs
|
|
index 14ebcc2..4b029c9 100644
|
|
--- a/src/cargo/ops/cargo_rustc/mod.rs
|
|
+++ b/src/cargo/ops/cargo_rustc/mod.rs
|
|
@@ -364,7 +364,7 @@ fn rustc(cx: &mut Context, unit: &Unit, exec: Arc<Executor>) -> CargoResult<Work
|
|
let src = dst.with_file_name(dst.file_name().unwrap()
|
|
.to_str().unwrap()
|
|
.replace(&real_name, &crate_name));
|
|
- if src.exists() {
|
|
+ if src.exists() && src.file_name() != dst.file_name() {
|
|
fs::rename(&src, &dst).chain_error(|| {
|
|
internal(format!("could not rename crate {:?}", src))
|
|
})?;
|
|
--
|
|
2.7.0
|
|
|