fix: install only the latest gcc on debian wheezy
This commit is contained in:
parent
60de4af81e
commit
a57478e38b
@ -276,10 +276,11 @@ func (d Debian) runs() (commands []string) {
|
|||||||
pkglist := []string{
|
pkglist := []string{
|
||||||
"wget", "build-essential", "libelf-dev", "git",
|
"wget", "build-essential", "libelf-dev", "git",
|
||||||
"kmod", "linux-base", "libssl-dev",
|
"kmod", "linux-base", "libssl-dev",
|
||||||
"'^(gcc-[0-9].[0-9]|gcc-[0-9]|gcc-[1-9][0-9])$'",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if d.release >= 8 {
|
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")
|
pkglist = append(pkglist, "initramfs-tools")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,6 +298,8 @@ func (d Debian) runs() (commands []string) {
|
|||||||
"|| apt-get install -y %s", packages, packages, packages)
|
"|| apt-get install -y %s", packages, packages, packages)
|
||||||
|
|
||||||
if d.release == 7 {
|
if d.release == 7 {
|
||||||
|
cmdf("apt-get -y install gcc-4.9-backport")
|
||||||
|
|
||||||
// by default Debian backports repositories have a lower
|
// by default Debian backports repositories have a lower
|
||||||
// priority than stable, so we should specify it manually
|
// priority than stable, so we should specify it manually
|
||||||
cmdf("apt-get -y install -t %s-backports "+
|
cmdf("apt-get -y install -t %s-backports "+
|
||||||
|
Loading…
Reference in New Issue
Block a user