All checks were successful
Test / Create distribution (push) Successful in 57s
Test / Sandbox (push) Successful in 2m57s
Test / Hakurei (push) Successful in 4m4s
Test / ShareFS (push) Successful in 4m21s
Test / Sandbox (race detector) (push) Successful in 5m15s
Test / Hakurei (race detector) (push) Successful in 6m12s
Test / Flake checks (push) Successful in 1m26s
This change also removes some unused options. Signed-off-by: Ophestra <cat@gensokyo.uk>
52 lines
1.0 KiB
Go
52 lines
1.0 KiB
Go
package rosa
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"hakurei.app/container/fhs"
|
|
"hakurei.app/internal/pkg"
|
|
)
|
|
|
|
func (t Toolchain) newGLib() pkg.Artifact {
|
|
const (
|
|
version = "2.86.4"
|
|
checksum = "AfTjBrrxtXXPL6dFa1LfTe40PyPSth62CoIkM5m_VJTUngGLOFHw6I4XE7RGQE8G"
|
|
)
|
|
return t.NewPackage("glib", version, pkg.NewHTTPGet(
|
|
nil, "https://download.gnome.org/sources/glib/"+
|
|
strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+
|
|
"/glib-"+version+".tar.xz",
|
|
mustDecode(checksum),
|
|
), &PackageAttr{
|
|
SourceKind: sourceTarXZ,
|
|
|
|
Paths: []pkg.ExecPath{
|
|
pkg.Path(fhs.AbsEtc.Append(
|
|
"machine-id",
|
|
), false, pkg.NewFile(
|
|
"glib-machine-id",
|
|
[]byte("ffffffffffffffffffffffffffffffff\n"),
|
|
)),
|
|
pkg.Path(AbsSystem.Append(
|
|
"var/lib/dbus/machine-id",
|
|
), false, pkg.NewFile(
|
|
"glib-machine-id",
|
|
[]byte("fefefefefefefefefefefefefefefefe\n"),
|
|
)),
|
|
},
|
|
}, &MesonHelper{
|
|
Setup: [][2]string{
|
|
{"Ddefault_library", "both"},
|
|
},
|
|
},
|
|
XZ,
|
|
Packaging,
|
|
Bash,
|
|
|
|
PCRE2,
|
|
Libffi,
|
|
Zlib,
|
|
)
|
|
}
|
|
func init() { artifactsF[GLib] = Toolchain.newGLib }
|