]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - mkosi.build
user-util: synthesize user records for "nobody" the same way as for "root"
[thirdparty/systemd.git] / mkosi.build
index 12e88b909ca3d46b5a0adc9e6c43f7a996b5667d..c2693dedcfa182c5b957425882e3cbfaa4f2a25d 100755 (executable)
 # as out-of-tree build dir. Otherwise, let's make up our own builddir.
 [ -z "$BUILDDIR" ] && BUILDDIR=build
 
-export LC_CTYPE=C.UTF-8
+export LC_CTYPE=en_US.UTF-8
 
-[ -f "$BUILDDIR"/build.ninja ] || meson "$BUILDDIR"
+sysvinit_path=`realpath /etc/init.d`
+
+[ -f "$BUILDDIR"/build.ninja ] || meson "$BUILDDIR" -D "sysvinit-path=$sysvinit_path" -D default-hierarchy=unified -D man=false
 ninja -C "$BUILDDIR" all
-[ "$WITH_TESTS" = 0 ] || ninja -C "$BUILDDIR" test
+[ "$WITH_TESTS" = 0 ] || ninja -C "$BUILDDIR" test || ( RET="$?" ; cat "$BUILDDIR"/meson-logs/testlog.txt ; exit "$RET" )
 ninja -C "$BUILDDIR" install
 
 mkdir -p "$DESTDIR"/etc