1
0

fix: set gcc to 4.8 for linux-compiler-3.12-x86

This commit is contained in:
dump_stack() 2023-05-26 08:53:21 +00:00
parent db9516b358
commit 3292e5c874
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -149,6 +149,13 @@ func ReleaseFromString(s string) (r Release) {
func kernelRelease(dk DebianKernel) (r Release, err error) { func kernelRelease(dk DebianKernel) (r Release, err error) {
var gcc string var gcc string
for _, dep := range dk.Dependencies { for _, dep := range dk.Dependencies {
// https://salsa.debian.org/kernel-team/linux
// from 08a7d92f2b772849cbf438102a61239ff71b0091
// to e6216f6f935fe1bc3c35ad5bfa037422a5a3ee95
if dep.Name == "linux-compiler-3.12-x86" {
gcc = "4.8"
}
if !strings.HasPrefix(dep.Name, "linux-compiler-gcc-") { if !strings.HasPrefix(dep.Name, "linux-compiler-gcc-") {
continue continue
} }