1
0

fix: install only the latest gcc on debian wheezy

This commit is contained in:
dump_stack() 2023-05-26 09:38:53 +00:00
parent 60de4af81e
commit a57478e38b
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -276,10 +276,11 @@ func (d Debian) runs() (commands []string) {
pkglist := []string{
"wget", "build-essential", "libelf-dev", "git",
"kmod", "linux-base", "libssl-dev",
"'^(gcc-[0-9].[0-9]|gcc-[0-9]|gcc-[1-9][0-9])$'",
}
if d.release >= 8 {
gccs := "'^(gcc-[0-9].[0-9]|gcc-[0-9]|gcc-[1-9][0-9])$'"
pkglist = append(pkglist, gccs)
pkglist = append(pkglist, "initramfs-tools")
}
@ -297,6 +298,8 @@ func (d Debian) runs() (commands []string) {
"|| apt-get install -y %s", packages, packages, packages)
if d.release == 7 {
cmdf("apt-get -y install gcc-4.9-backport")
// by default Debian backports repositories have a lower
// priority than stable, so we should specify it manually
cmdf("apt-get -y install -t %s-backports "+