Some checks failed
Test / Create distribution (push) Successful in 58s
Test / Sandbox (push) Successful in 2m34s
Test / Hakurei (push) Successful in 3m47s
Test / ShareFS (push) Successful in 3m48s
Test / Sandbox (race detector) (push) Successful in 5m4s
Test / Flake checks (push) Has been cancelled
Test / Hakurei (race detector) (push) Has been cancelled
Anitya appears to get confused when seeing release candidates. Signed-off-by: Ophestra <cat@gensokyo.uk>
63 lines
1.4 KiB
Go
63 lines
1.4 KiB
Go
package rosa
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"hakurei.app/internal/pkg"
|
|
)
|
|
|
|
func (t Toolchain) newUtilLinux() (pkg.Artifact, string) {
|
|
const (
|
|
version = "2.41.3"
|
|
checksum = "gPTd5JJ2ho_Rd0qainuogcLiiWwKSXEZPXN3yCCRl0m0KBgMaqwFuMjYgu9z8zCH"
|
|
)
|
|
return t.NewPackage("util-linux", version, pkg.NewHTTPGetTar(
|
|
nil, "https://www.kernel.org/pub/linux/utils/util-linux/"+
|
|
"v"+strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+
|
|
"/util-linux-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
), &PackageAttr{
|
|
ScriptEarly: `
|
|
ln -s ../system/bin/bash /bin/
|
|
`,
|
|
}, &MakeHelper{
|
|
Configure: [][2]string{
|
|
{"disable-use-tty-group"},
|
|
{"disable-makeinstall-setuid"},
|
|
{"disable-makeinstall-chown"},
|
|
{"enable-fs-paths-default", "" +
|
|
"/system/sbin:" +
|
|
"/system/sbin/fs.d:" +
|
|
"/system/sbin/fs"},
|
|
|
|
{"disable-su"},
|
|
{"disable-liblastlog2"},
|
|
{"disable-pam-lastlog2"},
|
|
},
|
|
|
|
// check script claims:
|
|
// For development purpose only.
|
|
// Don't execute on production system!
|
|
SkipCheck: true,
|
|
},
|
|
Bash,
|
|
|
|
KernelHeaders,
|
|
), version
|
|
}
|
|
func init() {
|
|
artifactsM[UtilLinux] = Metadata{
|
|
f: Toolchain.newUtilLinux,
|
|
|
|
Name: "util-linux",
|
|
Description: "a random collection of Linux utilities",
|
|
Website: "https://git.kernel.org/pub/scm/utils/util-linux/util-linux.git",
|
|
|
|
ID: 8179,
|
|
|
|
// release candidates confuse Anitya
|
|
latest: (*Versions).checkStable,
|
|
}
|
|
}
|