internal/rosa: util-linux artifact
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m40s
Test / Hakurei (push) Successful in 3m51s
Test / ShareFS (push) Successful in 4m2s
Test / Hpkg (push) Successful in 4m35s
Test / Sandbox (race detector) (push) Successful in 5m0s
Test / Hakurei (race detector) (push) Successful in 6m12s
Test / Flake checks (push) Successful in 1m34s
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m40s
Test / Hakurei (push) Successful in 3m51s
Test / ShareFS (push) Successful in 4m2s
Test / Hpkg (push) Successful in 4m35s
Test / Sandbox (race detector) (push) Successful in 5m0s
Test / Hakurei (race detector) (push) Successful in 6m12s
Test / Flake checks (push) Successful in 1m34s
This stuff will likely be implemented natively in the final system. For now, it is useful for debugging. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -77,7 +77,7 @@ const (
|
|||||||
Toybox
|
Toybox
|
||||||
toyboxEarly
|
toyboxEarly
|
||||||
Unzip
|
Unzip
|
||||||
utilMacros
|
UtilLinux
|
||||||
Wayland
|
Wayland
|
||||||
WaylandProtocols
|
WaylandProtocols
|
||||||
XCB
|
XCB
|
||||||
@@ -88,6 +88,7 @@ const (
|
|||||||
Zstd
|
Zstd
|
||||||
|
|
||||||
buildcatrust
|
buildcatrust
|
||||||
|
utilMacros
|
||||||
|
|
||||||
// gcc is a hacked-to-pieces GCC toolchain meant for use in intermediate
|
// gcc is a hacked-to-pieces GCC toolchain meant for use in intermediate
|
||||||
// stages only. This preset and its direct output must never be exposed.
|
// stages only. This preset and its direct output must never be exposed.
|
||||||
@@ -188,6 +189,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
|
|||||||
"squashfs-tools": SquashfsTools,
|
"squashfs-tools": SquashfsTools,
|
||||||
"toybox": Toybox,
|
"toybox": Toybox,
|
||||||
"unzip": Unzip,
|
"unzip": Unzip,
|
||||||
|
"util-linux": UtilLinux,
|
||||||
"wayland": Wayland,
|
"wayland": Wayland,
|
||||||
"wayland-protocols": WaylandProtocols,
|
"wayland-protocols": WaylandProtocols,
|
||||||
"xcb": XCB,
|
"xcb": XCB,
|
||||||
|
|||||||
49
internal/rosa/util-linux.go
Normal file
49
internal/rosa/util-linux.go
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
package rosa
|
||||||
|
|
||||||
|
import (
|
||||||
|
"strings"
|
||||||
|
|
||||||
|
"hakurei.app/internal/pkg"
|
||||||
|
)
|
||||||
|
|
||||||
|
func (t Toolchain) newUtilLinux() pkg.Artifact {
|
||||||
|
const (
|
||||||
|
version = "2.41.3"
|
||||||
|
checksum = "gPTd5JJ2ho_Rd0qainuogcLiiWwKSXEZPXN3yCCRl0m0KBgMaqwFuMjYgu9z8zCH"
|
||||||
|
)
|
||||||
|
return t.NewViaMake("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,
|
||||||
|
), &MakeAttr{
|
||||||
|
ScriptEarly: `
|
||||||
|
ln -s ../system/bin/bash /bin/
|
||||||
|
`,
|
||||||
|
|
||||||
|
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,
|
||||||
|
},
|
||||||
|
t.Load(Bash),
|
||||||
|
|
||||||
|
t.Load(KernelHeaders),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
func init() { artifactsF[UtilLinux] = Toolchain.newUtilLinux }
|
||||||
Reference in New Issue
Block a user