forked from security/hakurei
The hardcoded value of 256 causes test failures due to excessive load on some machines. Twice the cpu count appears to almost saturate all cpus without causing spurious failures. Signed-off-by: Ophestra <cat@gensokyo.uk>
40 lines
849 B
Go
40 lines
849 B
Go
package rosa
|
|
|
|
import "hakurei.app/internal/pkg"
|
|
|
|
func (t Toolchain) newOpenSSL() pkg.Artifact {
|
|
const (
|
|
version = "3.5.5"
|
|
checksum = "I2Hp1LxcTR8j4G6LFEQMVy6EJH-Na1byI9Ti-ThBot6EMLNRnjGXGq-WXrim3Fkz"
|
|
)
|
|
return t.NewViaMake("openssl", version, pkg.NewHTTPGetTar(
|
|
nil, "https://github.com/openssl/openssl/releases/download/"+
|
|
"openssl-"+version+"/openssl-"+version+".tar.gz",
|
|
mustDecode(checksum),
|
|
pkg.TarGzip,
|
|
), &MakeAttr{
|
|
OmitDefaults: true,
|
|
SkipConfigure: true,
|
|
|
|
Env: []string{
|
|
"CC=cc",
|
|
},
|
|
ScriptConfigured: `
|
|
/usr/src/openssl/Configure \
|
|
--prefix=/system \
|
|
--libdir=lib \
|
|
--openssldir=etc/ssl
|
|
`,
|
|
CheckName: "test",
|
|
Make: []string{
|
|
`HARNESS_JOBS="$(expr "$(nproc)" '*' 2)"`,
|
|
},
|
|
},
|
|
t.Load(Perl),
|
|
|
|
t.Load(Zlib),
|
|
t.Load(KernelHeaders),
|
|
)
|
|
}
|
|
func init() { artifactsF[OpenSSL] = Toolchain.newOpenSSL }
|