forked from rosa/hakurei
internal/rosa: expose in-place behaviour in generic helper
This change also combines the createDir and wantsDir methods, and replaces the non-inplace target of the generic helper with a deterministic path. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -153,7 +153,9 @@ package gen_init_cpio {
|
||||
description = "a program in the kernel source tree for creating initramfs archive";
|
||||
source = kernel-source;
|
||||
|
||||
enterSource = true;
|
||||
exec = generic {
|
||||
inPlace = true;
|
||||
build = `
|
||||
mkdir -p /work/system/bin/
|
||||
cc -o /work/system/bin/gen_init_cpio usr/gen_init_cpio.c
|
||||
|
||||
@@ -13,7 +13,6 @@ package make {
|
||||
toyboxEarly = true;
|
||||
|
||||
exec = generic {
|
||||
mktemp = true;
|
||||
build = `/usr/src/make/configure \
|
||||
--prefix=/system \
|
||||
--build="${ROSA_TRIPLE}" \
|
||||
|
||||
@@ -16,8 +16,6 @@ package mksh {
|
||||
];
|
||||
|
||||
exec = generic {
|
||||
mktemp = true;
|
||||
|
||||
build = `sh /usr/src/mksh/Build.sh -r
|
||||
CPPFLAGS="${CPPFLAGS} -DMKSH_BINSHPOSIX -DMKSH_BINSHREDUCED" \
|
||||
sh /usr/src/mksh/Build.sh -r -L
|
||||
|
||||
@@ -78,7 +78,9 @@ package nss-cacert {
|
||||
|
||||
source = nss;
|
||||
|
||||
enterSource = true;
|
||||
exec = generic {
|
||||
inPlace = true;
|
||||
build = `
|
||||
mkdir -p /work/system/etc/ssl/{certs/unbundled,certs/hashed,trust-source}
|
||||
buildcatrust \
|
||||
|
||||
@@ -59,10 +59,12 @@ package perl-Module-Build {
|
||||
checksum = "ZKxEFG4hE1rqZt52zBL2LRZBMkYzhjb5-cTBXcsyA52EbPeeYyVxU176yAea8-Di";
|
||||
};
|
||||
|
||||
enterSource = true;
|
||||
writable = true;
|
||||
chmod = true;
|
||||
|
||||
exec = generic {
|
||||
inPlace = true;
|
||||
build = `
|
||||
perl Build.PL --prefix=/system
|
||||
./Build build`;
|
||||
|
||||
@@ -15,10 +15,12 @@ package unzip {
|
||||
compress = gzip;
|
||||
};
|
||||
|
||||
enterSource = true;
|
||||
writable = true;
|
||||
chmod = true;
|
||||
|
||||
exec = generic {
|
||||
inPlace = true;
|
||||
build = `unix/configure
|
||||
make -f unix/Makefile generic1`;
|
||||
install = `
|
||||
|
||||
Reference in New Issue
Block a user