use .SRCINFO if available

This commit is contained in:
2024-08-09 02:11:35 +02:00
parent 453c6d8a3a
commit 8dccbbee84
3 changed files with 39 additions and 0 deletions

View File

@@ -68,6 +68,15 @@ func (p *ProtoPackage) isEligible(ctx context.Context) bool {
case p.isPkgFailed():
log.Debugf("skipped %s: failed build", p.Pkgbase)
skipping = true
case p.Srcinfo != nil:
// skip haskell packages, since they cannot be optimized currently (no -O3 & march has no effect as far as I know)
if Contains(p.Srcinfo.MakeDepends, "ghc") || Contains(p.Srcinfo.MakeDepends, "haskell-ghc") ||
Contains(p.Srcinfo.Depends, "ghc") || Contains(p.Srcinfo.Depends, "haskell-ghc") {
log.Debugf("skipped %s: haskell", p.Pkgbase)
p.DBPackage.SkipReason = "haskell"
p.DBPackage.Status = dbpackage.StatusSkipped
skipping = true
}
}
if skipping {