diff --git a/core/systemd/0001-link-test-random-util-with-libm.patch b/core/systemd/0001-link-test-random-util-with-libm.patch new file mode 100644 index 000000000..6c66e922f --- /dev/null +++ b/core/systemd/0001-link-test-random-util-with-libm.patch @@ -0,0 +1,27 @@ +From 7010b37c91b0b02f5aaa01b22e17c9b67ed66f8d Mon Sep 17 00:00:00 2001 +From: Kevin Mihelich +Date: Thu, 1 Apr 2021 15:38:59 -0600 +Subject: [PATCH] link test-random-util with libm + +--- + src/test/meson.build | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/test/meson.build b/src/test/meson.build +index ff40a8d10d..dd4f219ee1 100644 +--- a/src/test/meson.build ++++ b/src/test/meson.build +@@ -158,7 +158,9 @@ tests += [ + + [['src/test/test-fstab-util.c']], + +- [['src/test/test-random-util.c']], ++ [['src/test/test-random-util.c'], ++ [], ++ [libm]], + + [['src/test/test-format-table.c']], + +-- +2.30.0 + diff --git a/core/systemd/PKGBUILD b/core/systemd/PKGBUILD index 9bfc91a44..736af4b8f 100644 --- a/core/systemd/PKGBUILD +++ b/core/systemd/PKGBUILD @@ -6,6 +6,7 @@ # - disable gold/LTO # - removed makedepend on gnu-efi-libs, set -Dgnuefi=false for !aarch64 # - add 242-1 changes in systemd.install to fix systemd-timesyncd +# - patch to fix v5 FTBFS pkgbase=systemd pkgname=('systemd' 'systemd-libs' 'systemd-resolvconf' 'systemd-sysvcompat') @@ -29,6 +30,7 @@ source=("git+https://github.com/systemd/systemd-stable#tag=${_tag}?signed" "git+https://github.com/systemd/systemd#tag=v${_tag_name%.*}?signed" '0001-Use-Arch-Linux-device-access-groups.patch' '0002-Disable-SYSTEMD_URLIFY-by-default.patch' + '0001-link-test-random-util-with-libm.patch' 'initcpio-hook-udev' 'initcpio-install-systemd' 'initcpio-install-udev' @@ -50,7 +52,7 @@ sha512sums=('SKIP' 'SKIP' '882e486b6d88c8bafc50088845e41a49686e98981967f72ca1fb4ef07a01767400632f4b648fd31857d2a2a24a8fd65bcc2a8983284dd4fff2380732741d4c41' '313f3d6cc3d88f718509007e029213a82d84b196afdadc6ef560580acf70ab480aaecd7622f51726cc1af7d7841c6ec5390f72890b055a54fc74722341395651' - '6c8d8b016d1ad56e0bb050782cb3974288ced78d954e540df9bd7de23e895a9967713261f874a859975b56a950615c4ce51ce9feef3b27b4fa3f9c271ce011c2' + 'e190abdadffecc8539c25558845c1c5a5c04082f9caa2423df104bb01ca698bd41bcb7692e6aac5cdc2cd035fa2452bfccb1b5a35357a20e8cd57393bc25d18a' 'f0d933e8c6064ed830dec54049b0a01e27be87203208f6ae982f10fb4eddc7258cb2919d594cbfb9a33e74c3510cfd682f3416ba8e804387ab87d1a217eb4b73' '4ad9db3e7335ab8577eb3189b25478d407f569cc4ffaeae34ca3fc5a075ac5dd9cd4ca39194d0e8e56e1a4ead13fb960b850a79373d0df8b3d3e5db0c914a68b' 'a25b28af2e8c516c3a2eec4e64b8c7f70c21f974af4a955a4a9d45fd3e3ff0d2a98b4419fe425d47152d5acae77d64e69d8d014a7209524b75a81b0edb10bf3a' @@ -96,6 +98,8 @@ prepare() { # https://github.com/gwsw/less/issues/140 patch -Np1 -i ../0002-Disable-SYSTEMD_URLIFY-by-default.patch + + patch -Np1 -i ../0001-link-test-random-util-with-libm.patch } build() {