From: "Marc Poulhiès" <dkm@kataplop.net>
To: buildbot@sourceware.org
Cc: "Marc Poulhiès" <dkm@kataplop.net>
Subject: [PATCH] Install recent rustc in Debian stable
Date: Mon, 26 Aug 2024 22:56:20 +0200 [thread overview]
Message-ID: <20240826205707.707445-1-dkm@kataplop.net> (raw)
Debian stable container is used for building all GCC frontends, except
for rust (gccrs) because Debian's rustc is too old for the few
dependencies the frontend has.
Installing a more recent rustc allows the building of the
frontend (until it can self-host).
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
---
builder/containers/Containerfile-debian-stable | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/builder/containers/Containerfile-debian-stable b/builder/containers/Containerfile-debian-stable
index b2e7614..9f77599 100644
--- a/builder/containers/Containerfile-debian-stable
+++ b/builder/containers/Containerfile-debian-stable
@@ -39,4 +39,10 @@ RUN wget -O /home/builder/bb-start.sh \
# And now run the script
USER builder
WORKDIR /home/builder
+
+# Rust from Debian stable is too old to build the small dependencies of GCCRS
+# The project currently use 1.72.0, so install and use the same.
+RUN (curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.72.0 --no-modify-path)
+ENV PATH="/home/builder/.cargo/bin:${PATH}"
+
ENTRYPOINT /home/builder/bb-start.sh
--
2.42.0
next reply other threads:[~2024-08-26 20:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-26 20:56 Marc Poulhiès [this message]
2024-08-27 7:08 ` Marc
2024-08-27 9:36 ` Mark Wielaard
2024-08-28 8:02 ` [PATCH v2] " Marc Poulhiès
2024-09-01 15:33 ` Mark Wielaard
2024-08-28 11:05 ` [PATCH] " Frank Ch. Eigler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240826205707.707445-1-dkm@kataplop.net \
--to=dkm@kataplop.net \
--cc=buildbot@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).