-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #1080: guix: use Rust 1.70 for release builds
860a1ea guix: use Rust 1.70 for release builds (Antoine Poinsot) Pull request description: This is prep work for #597, which bumps the MSRV of the GUI to 1.70. We are being pulled over in two different directions when it comes to our reproducible builds. On the one hand we need to target reasonably old glibc versions in order to be compatible with older systems. On the other hand the immaturity of the Rust ecosystem makes us require bleeding edge versions of the compiler. With Guix to get the newer versions of the compiler we need to also bump the glibc version. This was not a sustainable situation. I was planning for a long time to cleanup our reproducible builds. To create a proper Guix package for both the daemon and the GUI using the build system they provide. I had envisioned this way i could rewrite the inputs of the Guix package to use an older glibc, while being able to bump the Guix time-machine. It would even have allowed us to perform Windows builds inside Guix! And who knows i could even have attempted to perform Apple ones too. Unfortunately it turned out to be more complicated than that. I couldn't manage to get my package to compile using an older glibc. Some details about some of my failed attempts can be found there: https://lists.gnu.org/archive/html/help-guix/2024-04/msg00056.html. Instead of wasting more time on this, backport the newer Rust declarations from up-to-date Guix to Guix-of-our-time-machine. ACKs for top commit: edouardparis: utACK 860a1ea Tree-SHA512: ee0a753376b380c5b39d9cefd6ac49c95d818b3233183f6832df256b93fe5627bf5d9193de1340ae12c0e8e8ec8e5c869674e975d5066723d9d38e66a509cbef
- Loading branch information
Showing
4 changed files
with
165 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
contrib/reproducible/guix/patches/rust-1.70-fix-rustix-build.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@@ -0,0 +1,20 @@ | ||
--- a/vendor/fd-lock/Cargo.toml 2023-05-31 14:44:48.000000000 -0700 | ||
+++ b/vendor/fd-lock/Cargo.toml 2023-07-14 21:19:34.637702319 -0700 | ||
@@ -45,7 +45,7 @@ | ||
|
||
[target."cfg(unix)".dependencies.rustix] | ||
version = "0.37.0" | ||
-features = ["fs"] | ||
+features = ["fs", "cc"] | ||
|
||
[target."cfg(windows)".dependencies.windows-sys] | ||
version = "0.45.0" | ||
--- a/src/bootstrap/Cargo.lock 2023-07-11 20:32:40.000000000 -0700 | ||
+++ b/src/bootstrap/Cargo.lock 2023-07-14 22:41:53.269284713 -0700 | ||
@@ -618,6 +618,7 @@ | ||
dependencies = [ | ||
"bitflags", | ||
+ "cc", | ||
"errno", | ||
"io-lifetimes", | ||
"libc", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters