Skip to content

Commit b6592a8

Browse files
committed
Build 1.59.0
1 parent 7555b72 commit b6592a8

6 files changed

+133
-0
lines changed

1.59.0/build.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/sh
2+
3+
RUSTC_BOOTSTRAP_VERSION=1.58.1
4+
CARGO_BOOTSTRAP_VERSION=1.58.1
5+
RUST_VERSION=1.59.0
6+
7+
CONFIGURE_CARGO_STATIC_FLAGS="--enable-cargo-native-static"
8+
9+
# XXX: miri does not build correctly that's why we need the flag below.
10+
ADDITIONAL_CONFIGURE_FLAGS="--enable-missing-tools"
11+
12+
# Since rust 1.38, OPENSSL_DIR has to be specified.
13+
export OPENSSL_DIR="/usr/local"
14+
15+
BASE=`pwd`
16+
DEST=$1
17+
LLVM_ROOT=""
18+
19+
. ../checksums.sh
20+
. ../common.sh
21+
22+
fixup-vendor() {
23+
fixup-vendor-patch openssl build.rs || exit 1
24+
fixup-vendor-patch openssl-sys build/cfgs.rs || exit 1
25+
fixup-vendor-patch libc-0.2.108 src/unix/bsd/freebsdlike/dragonfly/mod.rs || exit 1
26+
}
27+
28+
RUN info clean extract prepatch fixup-vendor config xbuild xdist inst 2>&1
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--- src/llvm-project/llvm/lib/Support/Unix/Path.inc.orig 2020-09-22 17:14:20 UTC
2+
+++ src/llvm-project/llvm/lib/Support/Unix/Path.inc
3+
@@ -69,13 +69,14 @@ extern char **environ;
4+
5+
#include <sys/types.h>
6+
#if !defined(__APPLE__) && !defined(__OpenBSD__) && !defined(__FreeBSD__) && \
7+
- !defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(_AIX)
8+
+ !defined(__linux__) && !defined(__FreeBSD_kernel__) && !defined(_AIX) && \
9+
+ !defined(__DragonFly__)
10+
#include <sys/statvfs.h>
11+
#define STATVFS statvfs
12+
#define FSTATVFS fstatvfs
13+
#define STATVFS_F_FRSIZE(vfs) vfs.f_frsize
14+
#else
15+
-#if defined(__OpenBSD__) || defined(__FreeBSD__)
16+
+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
17+
#include <sys/mount.h>
18+
#include <sys/param.h>
19+
#elif defined(__linux__)
20+
@@ -106,7 +107,7 @@ typedef uint_t uint;
21+
#define STATVFS_F_FRSIZE(vfs) static_cast<uint64_t>(vfs.f_bsize)
22+
#endif
23+
24+
-#if defined(__NetBSD__) || defined(__DragonFly__) || defined(__GNU__) || \
25+
+#if defined(__NetBSD__) || (__GNU__) || \
26+
defined(__MVS__)
27+
#define STATVFS_F_FLAG(vfs) (vfs).f_flag
28+
#else
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
--- vendor/libc-0.2.108/src/unix/bsd/freebsdlike/dragonfly/mod.rs.orig 2022-02-23 05:34:25 UTC
2+
+++ vendor/libc-0.2.108/src/unix/bsd/freebsdlike/dragonfly/mod.rs
3+
@@ -106,11 +106,6 @@ s! {
4+
pub f_uid_uuid: ::uuid_t,
5+
}
6+
7+
- #[deprecated(
8+
- since = "0.2.107",
9+
- note = "stat.st_blksize is an i64 and stat.st_qspare1 is replaced with \
10+
- stat.st_blksize in DragonFly 5.8"
11+
- )]
12+
pub struct stat {
13+
pub st_ino: ::ino_t,
14+
pub st_nlink: ::nlink_t,
15+
@@ -128,11 +123,11 @@ s! {
16+
pub st_ctime_nsec: ::c_long,
17+
pub st_size: ::off_t,
18+
pub st_blocks: i64,
19+
- pub st_blksize: u32,
20+
+ pub __old_st_blksize: u32,
21+
pub st_flags: u32,
22+
pub st_gen: u32,
23+
pub st_lspare: i32,
24+
- pub st_qspare1: i64,
25+
+ pub st_blksize: i64,
26+
pub st_qspare2: i64,
27+
}
28+
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--- vendor/openssl-sys/build/cfgs.rs.orig 2020-01-27 17:21:00 UTC
2+
+++ vendor/openssl-sys/build/cfgs.rs
3+
@@ -28,6 +28,21 @@ pub fn get(openssl_version: Option<u64>,
4+
if libressl_version >= 0x2_09_01_00_0 {
5+
cfgs.push("libressl291");
6+
}
7+
+ if libressl_version >= 0x2_09_02_00_0 {
8+
+ cfgs.push("libressl292");
9+
+ }
10+
+
11+
+ if libressl_version >= 0x3_00_00_00_0 {
12+
+ cfgs.push("libressl300");
13+
+ }
14+
+
15+
+ if libressl_version >= 0x3_00_01_00_0 {
16+
+ cfgs.push("libressl301");
17+
+ }
18+
+
19+
+ if libressl_version >= 0x3_00_02_00_0 {
20+
+ cfgs.push("libressl302");
21+
+ }
22+
} else {
23+
let openssl_version = openssl_version.unwrap();
24+
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--- vendor/openssl/build.rs.orig 2020-01-27 17:21:00 UTC
2+
+++ vendor/openssl/build.rs
3+
@@ -61,5 +61,17 @@ fn main() {
4+
if version >= 0x2_09_01_00_0 {
5+
println!("cargo:rustc-cfg=libressl291");
6+
}
7+
+
8+
+ if version >= 0x3_00_00_00_0 {
9+
+ println!("cargo:rustc-cfg=libressl300");
10+
+ }
11+
+
12+
+ if version >= 0x3_00_01_00_0 {
13+
+ println!("cargo:rustc-cfg=libressl301");
14+
+ }
15+
+
16+
+ if version >= 0x3_00_02_00_0 {
17+
+ println!("cargo:rustc-cfg=libressl302");
18+
+ }
19+
}
20+
}

checksums.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ SHA256_rustc_1_55_0_src_tar_gz=b2379ac710f5f876ee3c3e03122fe33098d6765d371cac6c3
4141
SHA256_rustc_1_56_0_src_tar_gz=cd0fd72d698deb3001c18e0f4bf8261d8f86420097eef94ca3a1fe047f2df43f
4242
SHA256_rustc_1_57_0_src_tar_gz=3546f9c3b91b1f8b8efd26c94d6b50312c08210397b4072ed2748e2bd4445c1a
4343
SHA256_rustc_1_58_1_src_tar_gz=a839afdd3625d6f3f3c4c10b79813675d1775c460d14be1feaf33a6c829c07c7
44+
SHA256_rustc_1_59_0_src_tar_gz=a7c8eeaee85bfcef84c96b02b3171d1e6540d15179ff83dddd9eafba185f85f9
4445

4546
SHA256_cargo_0_27_0_x86_64_unknown_dragonfly_tar_xz=a0b670f797d01ea156cf3ca9f0a7aa2a76bfa8b35dfa779510cfedc1d82eb19b
4647
SHA256_rustc_1_26_0_x86_64_unknown_dragonfly_tar_xz=d14e5d973bfb671535212460d7eca2552379150ffc207712e825f06febdd57c6
@@ -170,3 +171,7 @@ SHA256_cargo_1_57_0_x86_64_unknown_dragonfly_tar_xz=50fbd3596ec090042ab521fbe327
170171
SHA256_rustc_1_57_0_x86_64_unknown_dragonfly_tar_xz=888f0afb4edf5976bf32513eeb5ad06fa1c0afe0af426a606fe012646bf48678
171172
SHA256_rust_std_1_57_0_x86_64_unknown_dragonfly_tar_xz=aa924b58005f0af816f9197021261082803a8507b3f4d4b96ef6add9ea442640
172173

174+
SHA256_cargo_1_58_1_x86_64_unknown_dragonfly_tar_xz=1c20da26510705f446fe13a70e7e79d4c1deae3668dcf2d3a92d82e10c3a7407
175+
SHA256_rustc_1_58_1_x86_64_unknown_dragonfly_tar_xz=0e32635c70f6ff73541f106bed1eadb2f37bf670f2938797598683813f1ba382
176+
SHA256_rust_std_1_58_1_x86_64_unknown_dragonfly_tar_xz=0a09f01aa99fa7273941c36c428e07c9538a652b1ae5066a7cab7518e70d14b1
177+

0 commit comments

Comments
 (0)