You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.8 KiB
69 lines
1.8 KiB
#!/usr/bin/env bash |
|
|
|
sed -e 's/GROUP="render"/GROUP="video"/' \ |
|
-e 's/GROUP="sgx", //' \ |
|
-i rules.d/50-udev-default.rules.in |
|
|
|
mkdir -p build |
|
cd build || exit 1 |
|
|
|
meson setup .. \ |
|
--prefix=/usr \ |
|
--buildtype=release \ |
|
-D default-dnssec=no \ |
|
-D firstboot=false \ |
|
-D install-tests=false \ |
|
-D ldconfig=false \ |
|
-D sysusers=false \ |
|
-D rpmmacrosdir=no \ |
|
-D homed=disabled \ |
|
-D man=disabled \ |
|
-D mode=release \ |
|
-D pamconfdir=no \ |
|
-D dev-kvm-mode=0660 \ |
|
-D nobody-group=nogroup \ |
|
-D sysupdate=disabled \ |
|
-D ukify=disabled \ |
|
-D docdir=/usr/share/doc/systemd-259.1 |
|
|
|
ninja |
|
|
|
echo 'NAME="Linux From Scratch"' > /etc/os-release |
|
|
|
[ -e /tmp/systemd_ninja_test.log ] && rm /tmp/systemd_ninja_test.log |
|
|
|
if ! unshare -m ninja test | tee /tmp/systemd_ninja_test.log |
|
then |
|
grep 'FAIL ' /tmp/systemd_ninja_test.log | cut --delimiter=' ' --fields=2-7 | while IFS= read -r failure |
|
do |
|
echo "--- Check ${failure}" |
|
case ${failure} in |
|
core*systemd*test-namespace*) |
|
echo "Test is known to fail sometimes." |
|
continue |
|
;; |
|
test*systemd*test-chase*) |
|
echo "Test is known to fail sometimes." |
|
continue |
|
;; |
|
tmpfiles*systemd*test-systemd-tmpfiles*) |
|
echo "Test is known to fail sometimes." |
|
continue |
|
;; |
|
*) |
|
echo "Failed on ${failure}" |
|
exit 1 |
|
;; |
|
esac |
|
done |
|
fi |
|
|
|
ninja install |
|
|
|
tar -xf ../../systemd-man-pages-259.1.tar.xz \ |
|
--no-same-owner --strip-components=1 \ |
|
-C /usr/share/man |
|
|
|
systemd-machine-id-setup |
|
|
|
systemctl preset-all
|
|
|