Skip to content

Commit 34b34ef

Browse files
Claude Botclaude
andcommitted
fix: use LLVM unstable repo for Debian trixie/forky
The LLVM apt repository (apt.llvm.org) doesn't have a dedicated release for Debian trixie (13) or forky. When running llvm.sh on these distros, it tries to access llvm-toolchain-trixie-19 which returns a 404. This fix passes -n=unstable to llvm.sh when running on Debian trixie or forky, directing it to use the unstable repository which does have the packages available. Fixes the docker image build failure: E: The repository 'http://apt.llvm.org/trixie llvm-toolchain-trixie-19 Release' does not have a Release file. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent cc3fc5a commit 34b34ef

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

scripts/bootstrap.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,18 @@ install_llvm() {
11571157
apt)
11581158
bash="$(require bash)"
11591159
llvm_script="$(download_file "https://apt.llvm.org/llvm.sh")"
1160-
execute_sudo "$bash" "$llvm_script" "$(llvm_version)" all
1160+
1161+
# Debian trixie and newer don't have their own LLVM apt repo, use unstable
1162+
llvm_codename_arg=""
1163+
if [ "$distro" = "debian" ]; then
1164+
case "$VERSION_CODENAME" in
1165+
trixie|forky)
1166+
llvm_codename_arg="-n=unstable"
1167+
;;
1168+
esac
1169+
fi
1170+
1171+
execute_sudo "$bash" "$llvm_script" "$(llvm_version)" all $llvm_codename_arg
11611172

11621173
# Install llvm-symbolizer explicitly to ensure it's available for ASAN
11631174
install_packages "llvm-$(llvm_version)-tools"

0 commit comments

Comments
 (0)