internal/rosa: findutils artifact
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m43s
Test / Hakurei (push) Successful in 3m46s
Test / ShareFS (push) Successful in 4m3s
Test / Hpkg (push) Successful in 4m29s
Test / Sandbox (race detector) (push) Successful in 4m59s
Test / Hakurei (race detector) (push) Successful in 5m58s
Test / Flake checks (push) Successful in 1m59s
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m43s
Test / Hakurei (push) Successful in 3m46s
Test / ShareFS (push) Successful in 4m3s
Test / Hpkg (push) Successful in 4m29s
Test / Sandbox (race detector) (push) Successful in 4m59s
Test / Hakurei (race detector) (push) Successful in 5m58s
Test / Flake checks (push) Successful in 1m59s
Required by llvm test suite, compiler-rt sanitisers-related tests fail on toybox xargs. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -18,6 +18,7 @@ const (
|
|||||||
CMake
|
CMake
|
||||||
Coreutils
|
Coreutils
|
||||||
Diffutils
|
Diffutils
|
||||||
|
Findutils
|
||||||
Fuse
|
Fuse
|
||||||
Gawk
|
Gawk
|
||||||
Gettext
|
Gettext
|
||||||
@@ -97,6 +98,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
|
|||||||
"cmake": CMake,
|
"cmake": CMake,
|
||||||
"coreutils": Coreutils,
|
"coreutils": Coreutils,
|
||||||
"diffutils": Diffutils,
|
"diffutils": Diffutils,
|
||||||
|
"findutils": Findutils,
|
||||||
"fuse": Fuse,
|
"fuse": Fuse,
|
||||||
"gawk": Gawk,
|
"gawk": Gawk,
|
||||||
"gettext": Gettext,
|
"gettext": Gettext,
|
||||||
|
|||||||
@@ -322,3 +322,35 @@ make DESTDIR=/work install
|
|||||||
)))
|
)))
|
||||||
}
|
}
|
||||||
func init() { artifactsF[Gawk] = Toolchain.newGawk }
|
func init() { artifactsF[Gawk] = Toolchain.newGawk }
|
||||||
|
|
||||||
|
func (t Toolchain) newFindutils() pkg.Artifact {
|
||||||
|
const (
|
||||||
|
version = "4.10.0"
|
||||||
|
checksum = "ZXABdNBQXL7QjTygynRRTdXYWxQKZ0Wn5eMd3NUnxR0xaS0u0VfcKoTlbo50zxv6"
|
||||||
|
)
|
||||||
|
return t.New("findutils-"+version, false, []pkg.Artifact{
|
||||||
|
t.Load(Make),
|
||||||
|
t.Load(XZ),
|
||||||
|
t.Load(Sed),
|
||||||
|
}, nil, nil, `
|
||||||
|
cd /usr/src
|
||||||
|
xzcat findutils.tar.xz | tar -x
|
||||||
|
mv 'findutils-`+version+`' findutils
|
||||||
|
|
||||||
|
cd findutils
|
||||||
|
echo '#!/bin/sh' > gnulib-tests/test-c32ispunct.sh
|
||||||
|
echo 'int main(){return 0;}' > tests/xargs/test-sigusr.c
|
||||||
|
|
||||||
|
cd "$(mktemp -d)"
|
||||||
|
/usr/src/findutils/configure \
|
||||||
|
--prefix=/system \
|
||||||
|
--build="${ROSA_TRIPLE}"
|
||||||
|
make "-j$(nproc)" check
|
||||||
|
make DESTDIR=/work install
|
||||||
|
`, pkg.Path(AbsUsrSrc.Append("findutils.tar.xz"), false, pkg.NewHTTPGet(
|
||||||
|
nil,
|
||||||
|
"https://ftp.gnu.org/gnu/findutils/findutils-"+version+".tar.xz",
|
||||||
|
mustDecode(checksum),
|
||||||
|
)))
|
||||||
|
}
|
||||||
|
func init() { artifactsF[Findutils] = Toolchain.newFindutils }
|
||||||
|
|||||||
Reference in New Issue
Block a user