diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-11-24 21:32:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-11-24 21:32:26 +0900 |
| commit | cc91f85280268c951b8af7f4565af556fb0cbdf1 (patch) | |
| tree | 2f190ff2720d881f804a0a7d377e0fce99fc2dd5 /internal/rosa/package/netbsd-utils/package.az | |
| parent | 0726270f0d58114a18901ce27f19eec9ca1746f3 (diff) | |
internal/rosa/package/netbsd-utils: add col
This is no longer implemented by util-linux.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/netbsd-utils/package.az')
| -rw-r--r-- | internal/rosa/package/netbsd-utils/package.az | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/internal/rosa/package/netbsd-utils/package.az b/internal/rosa/package/netbsd-utils/package.az index caa97581..44d3e844 100644 --- a/internal/rosa/package/netbsd-utils/package.az +++ b/internal/rosa/package/netbsd-utils/package.az @@ -4,6 +4,7 @@ package netbsd-utils { ccommon = true; files = { + "col.c"; "getent.c"; "getconf.c"; }; @@ -13,14 +14,17 @@ package netbsd-utils { QEMU="qemu-`+linuxArch+` -L `+prefix+`/`+arch+` " `; build = ` -CC=${CC:-cc} +CC="${CC:-cc} -O3" +LIBBSD="-Wl,-Bstatic $(pkg-config --static --libs --cflags libbsd-overlay) -Wl,-Bdynamic" mkdir bin +$CC $LIBBSD -o bin/col /usr/src/col.c $CC -o bin/getent /usr/src/getent.c $CC -o bin/getconf /usr/src/getconf.c `; check = ` T="${QEMU:-} ./bin/" +${T}col <<< 'col ok' ${T}getent passwd cure ${T}getconf PAGE_SIZE `; @@ -30,5 +34,12 @@ mv bin /work`+prefix+` `; }; + inputs = [ + libmd, + libbsd, + ]; + + runtime = nil; + tools = [ pkg-config ]; native = [ qemu ]; } |
