internal/rosa: elfutils artifact
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m43s
Test / Hakurei (push) Successful in 3m56s
Test / ShareFS (push) Successful in 4m2s
Test / Hpkg (push) Successful in 4m37s
Test / Sandbox (race detector) (push) Successful in 5m4s
Test / Hakurei (race detector) (push) Successful in 5m58s
Test / Flake checks (push) Successful in 1m40s
All checks were successful
Test / Create distribution (push) Successful in 1m1s
Test / Sandbox (push) Successful in 2m43s
Test / Hakurei (push) Successful in 3m56s
Test / ShareFS (push) Successful in 4m2s
Test / Hpkg (push) Successful in 4m37s
Test / Sandbox (race detector) (push) Successful in 5m4s
Test / Hakurei (race detector) (push) Successful in 5m58s
Test / Flake checks (push) Successful in 1m40s
Required by the kernel. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -24,6 +24,7 @@ const (
|
|||||||
Curl
|
Curl
|
||||||
DTC
|
DTC
|
||||||
Diffutils
|
Diffutils
|
||||||
|
Elfutils
|
||||||
Findutils
|
Findutils
|
||||||
Flex
|
Flex
|
||||||
Fuse
|
Fuse
|
||||||
@@ -142,6 +143,7 @@ func ResolveName(name string) (p PArtifact, ok bool) {
|
|||||||
"curl": Curl,
|
"curl": Curl,
|
||||||
"dtc": DTC,
|
"dtc": DTC,
|
||||||
"diffutils": Diffutils,
|
"diffutils": Diffutils,
|
||||||
|
"elfutils": Elfutils,
|
||||||
"findutils": Findutils,
|
"findutils": Findutils,
|
||||||
"flex": Flex,
|
"flex": Flex,
|
||||||
"fuse": Fuse,
|
"fuse": Fuse,
|
||||||
|
|||||||
41
internal/rosa/elfutils.go
Normal file
41
internal/rosa/elfutils.go
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
package rosa
|
||||||
|
|
||||||
|
import "hakurei.app/internal/pkg"
|
||||||
|
|
||||||
|
func (t Toolchain) newElfutils() pkg.Artifact {
|
||||||
|
const (
|
||||||
|
version = "0.194"
|
||||||
|
checksum = "Q3XUygUPv9vR1TkWucwUsQ8Kb1_F6gzk-KMPELr3cC_4AcTrprhVPMvN0CKkiYRa"
|
||||||
|
)
|
||||||
|
return t.NewViaMake("elfutils", version, pkg.NewHTTPGetTar(
|
||||||
|
nil, "https://sourceware.org/elfutils/ftp/"+
|
||||||
|
version+"/elfutils-"+version+".tar.bz2",
|
||||||
|
mustDecode(checksum),
|
||||||
|
pkg.TarBzip2,
|
||||||
|
), &MakeAttr{
|
||||||
|
Env: []string{
|
||||||
|
"CC=cc" +
|
||||||
|
// nonstandard glibc extension
|
||||||
|
" -DFNM_EXTMATCH=0",
|
||||||
|
},
|
||||||
|
|
||||||
|
// nonstandard glibc extension
|
||||||
|
SkipCheck: true,
|
||||||
|
|
||||||
|
Configure: [][2]string{
|
||||||
|
{"enable-deterministic-archives"},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
t.Load(M4),
|
||||||
|
t.Load(PkgConfig),
|
||||||
|
|
||||||
|
t.Load(Zlib),
|
||||||
|
t.Load(Bzip2),
|
||||||
|
t.Load(Zstd),
|
||||||
|
t.Load(ArgpStandalone),
|
||||||
|
t.Load(MuslFts),
|
||||||
|
t.Load(MuslObstack),
|
||||||
|
t.Load(KernelHeaders),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
func init() { artifactsF[Elfutils] = Toolchain.newElfutils }
|
||||||
Reference in New Issue
Block a user