mirror of
https://github.com/systemd/systemd.git
synced 2025-01-03 05:18:09 +03:00
mkosi: Use --auto-features=enabled for meson
This commit is contained in:
parent
b6e8d086bd
commit
868c3a71d7
@ -44,23 +44,8 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f "$BUILDDIR"/build.ninja ]; then
|
if [ ! -f "$BUILDDIR"/build.ninja ]; then
|
||||||
[[ -d /etc/rc.d/init.d ]] && sysvinit_path="/etc/rc.d/init.d" || sysvinit_path="/etc/init.d"
|
|
||||||
|
|
||||||
if [ "$ID" = "centos" ] && [ "$VERSION" = "8" ]; then
|
|
||||||
UKIFY="disabled"
|
|
||||||
else
|
|
||||||
UKIFY="enabled"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# On Debian 'loadkeys us' fails
|
|
||||||
if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then
|
|
||||||
DEFAULT_KEYMAP=""
|
|
||||||
else
|
|
||||||
DEFAULT_KEYMAP="us"
|
|
||||||
fi
|
|
||||||
|
|
||||||
CONFIGURE_OPTS=(
|
CONFIGURE_OPTS=(
|
||||||
-D sysvinit-path="$sysvinit_path"
|
-D sysvinit-path="$([[ -d /etc/rc.d/init.d ]] && echo /etc/rc.d/init.d || echo /etc/init.d)"
|
||||||
-D man=disabled
|
-D man=disabled
|
||||||
-D translations=false
|
-D translations=false
|
||||||
-D version-tag="${VERSION_TAG}"
|
-D version-tag="${VERSION_TAG}"
|
||||||
@ -79,8 +64,6 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
|
|||||||
-D tpm=true
|
-D tpm=true
|
||||||
-D environment-d=true
|
-D environment-d=true
|
||||||
-D binfmt=true
|
-D binfmt=true
|
||||||
-D repart=enabled
|
|
||||||
-D sysupdate=enabled
|
|
||||||
-D coredump=true
|
-D coredump=true
|
||||||
-D pstore=true
|
-D pstore=true
|
||||||
-D oomd=true
|
-D oomd=true
|
||||||
@ -91,14 +74,10 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
|
|||||||
-D portabled=true
|
-D portabled=true
|
||||||
-D sysext=true
|
-D sysext=true
|
||||||
-D userdb=true
|
-D userdb=true
|
||||||
-D homed=enabled
|
|
||||||
-D networkd=true
|
-D networkd=true
|
||||||
-D timedated=true
|
-D timedated=true
|
||||||
-D timesyncd=true
|
-D timesyncd=true
|
||||||
-D remote=enabled
|
|
||||||
-D nss-myhostname=true
|
-D nss-myhostname=true
|
||||||
-D nss-mymachines=enabled
|
|
||||||
-D nss-resolve=enabled
|
|
||||||
-D nss-systemd=true
|
-D nss-systemd=true
|
||||||
-D firstboot=true
|
-D firstboot=true
|
||||||
-D randomseed=true
|
-D randomseed=true
|
||||||
@ -107,53 +86,26 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
|
|||||||
-D quotacheck=true
|
-D quotacheck=true
|
||||||
-D sysusers=true
|
-D sysusers=true
|
||||||
-D tmpfiles=true
|
-D tmpfiles=true
|
||||||
-D importd=enabled
|
|
||||||
-D hwdb=true
|
-D hwdb=true
|
||||||
-D rfkill=true
|
-D rfkill=true
|
||||||
-D xdg-autostart=true
|
-D xdg-autostart=true
|
||||||
-D translations=true
|
-D translations=true
|
||||||
-D polkit=enabled
|
|
||||||
-D acl=enabled
|
|
||||||
-D audit=enabled
|
|
||||||
-D blkid=enabled
|
|
||||||
-D fdisk=enabled
|
|
||||||
-D kmod=enabled
|
|
||||||
-D pam=enabled
|
|
||||||
-D pwquality=enabled
|
|
||||||
-D microhttpd=enabled
|
|
||||||
-D libcryptsetup=enabled
|
|
||||||
-D libcurl=enabled
|
|
||||||
-D idn=true
|
-D idn=true
|
||||||
-D libidn2=enabled
|
|
||||||
-D qrencode=enabled
|
|
||||||
-D gcrypt=enabled
|
|
||||||
-D gnutls=enabled
|
|
||||||
-D openssl=enabled
|
|
||||||
-D cryptolib=openssl
|
-D cryptolib=openssl
|
||||||
-D p11kit=enabled
|
|
||||||
-D libfido2=enabled
|
|
||||||
-D tpm2=enabled
|
|
||||||
-D elfutils=enabled
|
|
||||||
-D zstd=enabled
|
|
||||||
-D xkbcommon=enabled
|
|
||||||
-D pcre2=enabled
|
|
||||||
-D glib=enabled
|
|
||||||
-D dbus=enabled
|
|
||||||
-D bootloader=enabled
|
|
||||||
-D kernel-install=true
|
-D kernel-install=true
|
||||||
-D analyze=true
|
-D analyze=true
|
||||||
-D bpf-framework=enabled
|
-D ukify="$([[ "$ID" = "centos" ]] && [[ "$VERSION" = "8" ]] && echo disabled || echo enabled)"
|
||||||
-D ukify="$UKIFY"
|
-D selinux="$([[ "$ID" =~ centos|fedora|opensuse ]] && echo enabled || echo disabled)"
|
||||||
-D seccomp=enabled
|
-D apparmor="$([[ "$ID" =~ ubuntu|debian ]] && echo enabled || echo disabled)"
|
||||||
-D selinux=auto
|
|
||||||
-D apparmor=auto
|
|
||||||
-D smack=true
|
-D smack=true
|
||||||
-D ima=true
|
-D ima=true
|
||||||
-D first-boot-full-preset=true
|
-D first-boot-full-preset=true
|
||||||
-D initrd=true
|
-D initrd=true
|
||||||
-D fexecve=true
|
-D fexecve=true
|
||||||
-D default-keymap="$DEFAULT_KEYMAP"
|
-D default-keymap="$([[ "$ID" =~ debian|ubuntu ]] && echo "" || echo "us")"
|
||||||
-D libarchive=enabled
|
-D xenctrl="$([[ "$ID" =~ debian|ubuntu|fedora|opensuse ]] && echo enabled || echo disabled)"
|
||||||
|
-D libiptc="$([[ "$ID" =~ debian|ubuntu ]] && echo enabled || echo disabled)"
|
||||||
|
-D libcryptsetup-plugins="$([[ "$ID" = "centos" ]] && [[ "$VERSION" = "8" ]] && echo disabled || echo enabled)"
|
||||||
)
|
)
|
||||||
|
|
||||||
# On debian-like systems the library directory is not /usr/lib64 but /usr/lib/<arch-triplet>/.
|
# On debian-like systems the library directory is not /usr/lib64 but /usr/lib/<arch-triplet>/.
|
||||||
@ -200,7 +152,7 @@ if [ ! -f "$BUILDDIR"/build.ninja ]; then
|
|||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
( set -x; meson setup "$BUILDDIR" "$SRCDIR" "${CONFIGURE_OPTS[@]}" )
|
( set -x; meson setup "$BUILDDIR" "$SRCDIR" --auto-features=enabled "${CONFIGURE_OPTS[@]}" )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
( set -x; ninja -C "$BUILDDIR" "$@" )
|
( set -x; ninja -C "$BUILDDIR" "$@" )
|
||||||
|
@ -49,6 +49,7 @@ BuildPackages=
|
|||||||
pkgconfig(libfido2)
|
pkgconfig(libfido2)
|
||||||
pkgconfig(libidn2)
|
pkgconfig(libidn2)
|
||||||
pkgconfig(libkmod)
|
pkgconfig(libkmod)
|
||||||
|
pkgconfig(liblz4)
|
||||||
pkgconfig(libmicrohttpd)
|
pkgconfig(libmicrohttpd)
|
||||||
pkgconfig(libnftnl)
|
pkgconfig(libnftnl)
|
||||||
pkgconfig(libpcre2-8)
|
pkgconfig(libpcre2-8)
|
||||||
|
@ -6,6 +6,7 @@ Distribution=|ubuntu
|
|||||||
|
|
||||||
[Content]
|
[Content]
|
||||||
Packages=
|
Packages=
|
||||||
|
^libtss2-esys-[0-9\.]+-0$
|
||||||
dmsetup
|
dmsetup
|
||||||
libapparmor1
|
libapparmor1
|
||||||
libarchive13
|
libarchive13
|
||||||
@ -14,6 +15,7 @@ Packages=
|
|||||||
libglib2.0-0
|
libglib2.0-0
|
||||||
libgnutls30
|
libgnutls30
|
||||||
libidn2-0
|
libidn2-0
|
||||||
|
liblz4-1
|
||||||
libmicrohttpd12
|
libmicrohttpd12
|
||||||
libnftnl11
|
libnftnl11
|
||||||
libp11-kit0
|
libp11-kit0
|
||||||
@ -22,7 +24,9 @@ Packages=
|
|||||||
libqrencode4
|
libqrencode4
|
||||||
libssl3
|
libssl3
|
||||||
libip4tc2
|
libip4tc2
|
||||||
libtss2-dev # Use the -dev package to avoid churn in updating version numbers
|
^libtss2-mu[0-9\.-]+$
|
||||||
|
libtss2-rc0
|
||||||
|
libtss2-tcti-device0
|
||||||
tzdata
|
tzdata
|
||||||
|
|
||||||
BuildPackages=
|
BuildPackages=
|
||||||
@ -49,6 +53,7 @@ BuildPackages=
|
|||||||
libidn2-dev
|
libidn2-dev
|
||||||
libiptc-dev
|
libiptc-dev
|
||||||
libkmod-dev
|
libkmod-dev
|
||||||
|
liblz4-dev
|
||||||
libmicrohttpd-dev
|
libmicrohttpd-dev
|
||||||
libmount-dev
|
libmount-dev
|
||||||
libnftnl-dev
|
libnftnl-dev
|
||||||
@ -59,6 +64,7 @@ BuildPackages=
|
|||||||
libseccomp-dev
|
libseccomp-dev
|
||||||
libsmartcols-dev
|
libsmartcols-dev
|
||||||
libssl-dev
|
libssl-dev
|
||||||
|
libtss2-dev
|
||||||
libxen-dev
|
libxen-dev
|
||||||
libxkbcommon-dev
|
libxkbcommon-dev
|
||||||
libzstd-dev
|
libzstd-dev
|
||||||
|
@ -57,6 +57,7 @@ BuildPackages=
|
|||||||
libarchive-devel
|
libarchive-devel
|
||||||
libblkid-devel
|
libblkid-devel
|
||||||
libbpf-devel
|
libbpf-devel
|
||||||
|
libbz2-devel
|
||||||
libcap-devel
|
libcap-devel
|
||||||
libcryptsetup-devel
|
libcryptsetup-devel
|
||||||
libcurl-devel
|
libcurl-devel
|
||||||
@ -67,6 +68,7 @@ BuildPackages=
|
|||||||
libgcrypt-devel
|
libgcrypt-devel
|
||||||
libgnutls-devel
|
libgnutls-devel
|
||||||
libkmod-devel
|
libkmod-devel
|
||||||
|
liblz4-devel
|
||||||
libmicrohttpd-devel
|
libmicrohttpd-devel
|
||||||
libmount-devel
|
libmount-devel
|
||||||
libnftnl-devel
|
libnftnl-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user