summaryrefslogtreecommitdiff
path: root/core/systemd/PKGBUILD
blob: 6b71579baa7379d9f8029c916c790e32d4d5609e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# some tests run into timeouts
eval "$(
  declare -f check | \
    sed '
      s/\(meson test -C build\)/\1 || true/
    '
)"

# disabling LTO on i486 in EFI, fails with undefined entry point efi_main
# => didn't help, disabling gnu-efi now on i486
if [ "${CARCH}" = "i486" ]; then
  eval "$(
    declare -f build | \
      sed '
        /local _meson_options.*/ a \
          _meson_options+=(-Db_lto=false)
        s/-Dgnu-efi=true/-Dgnu-efi=false/
      '
  )"
fi

# see upstream https://github.com/systemd/systemd/pull/23609 and 
# https://github.com/systemd/systemd/commit/38c87ca2ab96d085158485ecfc46c7cb6af0f166
source+=('fix-23609-efi-ia32.patch')
sha512sums+=('1ebcfd699894d62520f9a02a05e966b24e8152b9ab72646e8d0a47212244bd83202bffb4a019f610ace64deaffee24c359d991d08c2e45eae413a55b576b940f')
eval "$(
  declare -f prepare | \
    sed '
      $ i patch -Np1 < ../fix-23609-efi-ia32.patch
    '
)"