forked from rosa/hakurei
Upstream testdata is not broken on the arm64 builder, but breaks reproducibly on amd64. Signed-off-by: Ophestra <cat@gensokyo.uk>
57 lines
1.1 KiB
Go
57 lines
1.1 KiB
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newCurl() (pkg.Artifact, string) {
|
|
const (
|
|
version = "8.19.0"
|
|
checksum = "YHuVLVVp8q_Y7-JWpID5ReNjq2Zk6t7ArHB6ngQXilp_R5l3cubdxu3UKo-xDByv"
|
|
)
|
|
return t.NewPackage("curl", version, pkg.NewHTTPGetTar(
|
|
nil, "https://curl.se/download/curl-"+version+".tar.bz2",
|
|
mustDecode(checksum),
|
|
pkg.TarBzip2,
|
|
), &PackageAttr{
|
|
// remove broken test
|
|
Writable: true,
|
|
ScriptEarly: `
|
|
chmod +w tests/data && rm tests/data/test459
|
|
`,
|
|
}, &MakeHelper{
|
|
Configure: [][2]string{
|
|
{"with-openssl"},
|
|
{"with-ca-bundle", "/system/etc/ssl/certs/ca-bundle.crt"},
|
|
|
|
{"disable-smb"},
|
|
},
|
|
Check: []string{
|
|
`TFLAGS="-j$(expr "$(nproc)" '*' 2)"`,
|
|
"test-nonflaky",
|
|
},
|
|
},
|
|
Perl,
|
|
Python,
|
|
PkgConfig,
|
|
Diffutils,
|
|
|
|
Libpsl,
|
|
OpenSSL,
|
|
), version
|
|
}
|
|
func init() {
|
|
artifactsM[Curl] = Metadata{
|
|
f: Toolchain.newCurl,
|
|
|
|
Name: "curl",
|
|
Description: "command line tool and library for transferring data with URLs",
|
|
Website: "https://curl.se/",
|
|
|
|
Dependencies: P{
|
|
Libpsl,
|
|
OpenSSL,
|
|
},
|
|
|
|
ID: 381,
|
|
}
|
|
}
|