1
0

fix: add gcc-6 to debian 10

This commit is contained in:
dump_stack() 2023-05-29 18:45:28 +00:00
parent 3b76b4c0cd
commit 1e3b7a867d
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -292,6 +292,21 @@ func (d Debian) runs() (commands []string) {
cmdf("apt-get -y install -t unstable gcc-5")
// 10
case Buster:
repo := "deb [check-valid-until=no trusted=yes] " +
"http://snapshot.debian.org/archive/debian/" +
"20230423T032533Z stretch main"
cmdf("echo '%s' >> /etc/apt/sources.list", repo)
cmdf("echo 'Package: *' >> /etc/apt/preferences.d/stretch")
cmdf("echo 'Pin: release a=stretch' >> /etc/apt/preferences.d/stretch")
cmdf("echo 'Pin-Priority: 10' >> /etc/apt/preferences.d/stretch")
cmdf("apt-get -y update")
cmdf("apt-get -y install -t stretch gcc-6")
// 12
case Bookworm:
// For some kernels that use gcc-11 but depend on libssl1