From 5a8603bebb262f9d6ece90e133eeca98de3f84a7 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 8 Sep 2025 02:29:17 -0700 Subject: [PATCH] Install mold from the OS on Debian 13 (Trixie) (#37712) I ran `scripts/linux` on Debian Trixie 13. It suggested manually installing Mold, but [mold](http://packages.debian.org/mold) is packaged on Debian and so we could install it automatically. The version packaged there seems to work well enough for `cargo t` to pass, at least. ## Tested ``` ; sudo apt remove mold libstdc++-14-dev ... uninstalls them ; ./script/linux The following NEW packages will be installed: build-essential clang clang-19 clang-tools-19 g++ g++-14 g++-14-x86-64-linux-gnu g++-x86-64-linux-gnu libstdc++-14-dev mold ; cargo t (passes) ``` Release Notes: - N/A --- script/linux | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/script/linux b/script/linux index 029278bea383b50b949a42a3e1af518a4366f732..47f58c0bc5ff9e8127f51251c8e0420fc08debba 100755 --- a/script/linux +++ b/script/linux @@ -47,7 +47,10 @@ if [[ -n $apt ]]; then musl-dev build-essential ) - if (grep -qP 'PRETTY_NAME="(Linux Mint 22|.+24\.(04|10))' /etc/os-release); then + if (grep -qP 'PRETTY_NAME="((Debian|Raspbian).+13|' /etc/os-release); then + # libstdc++-14-dev is in build-essential + deps+=( mold ) + elif (grep -qP 'PRETTY_NAME="(Linux Mint 22|.+24\.(04|10))' /etc/os-release); then deps+=( mold libstdc++-14-dev ) elif (grep -qP 'PRETTY_NAME="((Debian|Raspbian).+12|Linux Mint 21|.+22\.04)' /etc/os-release); then deps+=( mold libstdc++-12-dev )