internal/rosa/package: db
All checks were successful
Test / Create distribution (push) Successful in 2m36s
Test / Sandbox (push) Successful in 2m46s
Test / ShareFS (push) Successful in 3m46s
Test / Hakurei (push) Successful in 3m55s
Test / Sandbox (race detector) (push) Successful in 5m20s
Test / Hakurei (race detector) (push) Successful in 6m33s
Test / Flake checks (push) Successful in 1m30s

For iproute2.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-25 10:31:45 +09:00
parent 7eebf49b98
commit 8ca70550ab
4 changed files with 44 additions and 2 deletions

View File

@@ -28,6 +28,8 @@ type MakeHelper struct {
SkipConfigure bool SkipConfigure bool
// Alternative name for the configure script. // Alternative name for the configure script.
ConfigureName string ConfigureName string
// Add autoconf arguments regardless of ConfigureName.
ForceAutoconf bool
// Flags passed to the configure script. // Flags passed to the configure script.
Configure []KV Configure []KV
// Host target triple, zero value is equivalent to the Rosa OS triple. // Host target triple, zero value is equivalent to the Rosa OS triple.
@@ -100,9 +102,11 @@ func (attr *MakeHelper) script(t Toolchain, name string) string {
if !attr.SkipConfigure { if !attr.SkipConfigure {
configure = attr.ConfigureName configure = attr.ConfigureName
if configure == "" { if configure == "" {
configure += `/usr/src/` + name + `/configure \ configure += `/usr/src/` + name + `/configure`
}
if attr.ForceAutoconf || attr.ConfigureName == "" {
configure += ` \
--prefix=/system` --prefix=/system`
host := `"${ROSA_TRIPLE}"` host := `"${ROSA_TRIPLE}"`
if attr.Host != "" { if attr.Host != "" {
host = attr.Host host = attr.Host

View File

@@ -0,0 +1,35 @@
package db {
description = "Berkeley DB";
website = "https://www.oracle.com/database/technologies/related/berkeleydb.html";
anitya = 1587;
version# = "18.1.40";
source = remoteTar {
url = "https://download.oracle.com/berkeley-db/db-"+version+".tar.gz";
checksum = "26i6UfgNxPVzS7kr37Q9-9feeCiQ825qRi8uvn2oG4AngOXHcFoSGDijckKvWSH7";
compress = gzip;
};
writable = true;
chmod = true;
early = `
cd build_unix
# broken install target
touch \
../docs/bdb-sql \
../docs/gsg_db_server
`;
exec = make {
inPlace = true;
configureName = "../dist/configure";
forceAutoconf = true;
configure = {
"enable-cxx";
"enable-compat185";
"with-repmgr-ssl": "no";
};
check = [ "examples_c" ];
postInstall = "rm -r /work/system/docs";
};
}

View File

@@ -41,6 +41,7 @@ package iproute2 {
libbpf, libbpf,
libmnl, libmnl,
db,
libcap, libcap,
kernel-headers, kernel-headers,
]; ];
@@ -48,6 +49,7 @@ package iproute2 {
runtime = [ runtime = [
libbpf, libbpf,
libmnl, libmnl,
db,
libcap, libcap,
]; ];
} }

View File

@@ -776,6 +776,7 @@ func (s *S) getFrame() azalea.Frame {
k("inPlace"): &attr.InPlace, k("inPlace"): &attr.InPlace,
k("skipConfigure"): &attr.SkipConfigure, k("skipConfigure"): &attr.SkipConfigure,
k("configureName"): &attr.ConfigureName, k("configureName"): &attr.ConfigureName,
k("forceAutoconf"): &attr.ForceAutoconf,
k("configure"): &attr.Configure, k("configure"): &attr.Configure,
k("host"): &attr.Host, k("host"): &attr.Host,
k("build"): &attr.Build, k("build"): &attr.Build,