Files
hakurei/internal/rosa/package/musl/package.az
T
cat 7193656b6a internal/rosa: improve helper bindings
This uses more intuitive names for some arguments and inverts their default value. Slices and nil-capable strings replace skip arguments.

Signed-off-by: Ophestra <cat@gensokyo.uk>
2026-08-10 21:55:47 +09:00

66 lines
1.3 KiB
Go

package musl-source {
description = "an implementation of the C standard library - source code";
exclude = true;
version# = "1.2.6";
output = remoteTar {
url = "https://musl.libc.org/releases/musl-"+version+".tar.gz";
checksum = "WtWb_OV_XxLDAB5NerOL9loLlHVadV00MmGk65PPBU1evaolagoMHfvpZp_vxEzS";
compress = gzip;
};
}
package musl-headers {
description = "system installation of musl headers";
source = musl-source;
// expected to be writable in copies
chmod = true;
env = [
"LDFLAGS=" + earlyLDFLAGS,
];
exec = make {
defaults = false;
make = [ "DESTDIR=/work", "install-headers" ];
check = nil;
install = "# headers installed during make";
};
inputs = [ coreutils ];
}
package musl {
description = "an implementation of the C standard library";
website = "https://musl.libc.org";
anitya = 11688;
source = musl-source;
patches = [ "ldso-rosa.patch" ];
// expected to be writable in copies
chmod = true;
env = [
"LDFLAGS=" + earlyLDFLAGS,
];
exec = make {
defaults = false;
check = nil;
postInstall = `
mkdir -p /work/system/bin
COMPAT_LINKER_NAME="ld-musl-` + linuxArch + `.so.1"
ln -vs ../lib/libc.so /work/system/bin/linker
ln -vs ../lib/libc.so /work/system/bin/ldd
ln -vs libc.so "/work/system/lib/${COMPAT_LINKER_NAME}"
rm -v "/work/lib/${COMPAT_LINKER_NAME}"
rmdir -v /work/lib
`;
};
inputs = [ coreutils ];
}