diff --git a/PKGBUILD b/PKGBUILD index a162950..66e85f9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -69,23 +69,29 @@ build() { ) local _meson_options=( - -Dversion-tag="${pkgver}-${pkgrel}-arch" + # internal version comparison is incompatible with pacman: + # 249~rc1 < 249 < 249.1 < 249rc + -Dversion-tag="${_tag_name/-/\~}-${pkgrel}-arch" + -Dshared-lib-tag="${pkgver}-${pkgrel}" -Dmode=release - -Dgnu-efi=true + -Dbootloader=true + -Dbpf-framework=true -Dima=false -Dlibidn2=true -Dlz4=true -Dman=true + -Dnscd=false # We disable DNSSEC by default, it still causes trouble: # https://github.com/systemd/systemd/issues/10579 -Ddbuspolicydir=/usr/share/dbus-1/system.d -Ddefault-dnssec=no - -Ddefault-hierarchy=hybrid + -Ddefault-hierarchy=unified -Ddefault-kill-user-processes=false - -Ddefault-locale=C + -Ddefault-locale='C.UTF-8' + -Dlocalegen-path=/usr/bin/locale-gen -Ddns-over-tls=openssl -Dfallback-hostname='archlinux' -Dnologin-path=/usr/bin/nologin @@ -94,11 +100,21 @@ build() { -Drpmmacrosdir=no -Dsysvinit-path= -Dsysvrcnd-path= + + -Dsbat-distro='arch' + -Dsbat-distro-summary='Arch Linux' + -Dsbat-distro-pkgname="${pkgname}" + -Dsbat-distro-version="${pkgver}" + -Dsbat-distro-url="https://archlinux.org/packages/core/x86_64/${pkgname}/" ) - arch-meson "systemd-stable" build "${_meson_options[@]}" + # this uses malloc_usable_size, which is incompatible with fortification level 3 + export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" + export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" - ninja -C build + arch-meson "$pkgbase-stable" build "${_meson_options[@]}" + + meson compile -C build } #check() { meson test -C build; }