Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/qt5-webengine/PKGBUILD
blob: 9da2d7d4d210309d2261d6e0661353e5cf9495db (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
eval "$(
  declare -f prepare | \
    sed '
      $ i find ${srcdir} -type f -name 'BUILD.gn' -exec sed -i "/-Wl,--fatal-warnings/d" {} \+
    '
)"

# disable ICU in webengine (why?)
eval "$(
  declare -f build | \
    sed '
      s/ -webengine-icu//
    '
)"

# let's not use too much memory, gcc tmpfiles can in this
# case also be put on a real /tmp (instead of tmpfs) to reduce
# preasure on the RAM
eval "$(
  declare -f build | \
    sed '
      /qmake/ a find . -name Makefile -exec sed -i "s@-pipe@@g" {} \\;
    '
)"

# redone patch, see also https://bugs.gentoo.org/721876
# most is now fixed upstream in 5.15.0, patch for
# src/3rdparty/chromium/third_party/webrtc/modules/video_coding/decoding_state.h
# might be superfluous, but testing takes too much time, so keeping it for now.
# (IMHO it would include cstdint just by accident, the header file need uintxx_t)
source+=('qtwebengine-everywhere-src-5.15.0-gcc10-patches.patch')
sha256sums+=('b41d4eca4c75c6d8115444ac4b10b8aa0f742d3ce64077d77eb4fb2079d0a42c')

eval "$(
  declare -f prepare | \
    sed '
      $ i cd "$srcdir/${_pkgfqn}"; patch -Np1 -i "${srcdir}"/qtwebengine-everywhere-src-5.15.0-gcc10-patches.patch
    '
)"

# backport seccomp time function jail fix from chromium
# for for 64-bit time functions in seccomp sanbox (thanks to schnitzeltony)
# https://github.com/schnitzeltony/meta-browser/blob/master/recipes-browser/chromium/files/0003-Fix-sandbox-Aw-snap-for-syscalls-403-and-407.patch
source+=('qtwebengine-everywhere-src-5.15.0-sandbox-Aw-snap-for-syscalls-403-and-407.patch')
sha256sums+=('606adb05a5bc903ac371e8040a4c2b06847d32de72be8b15949a161946aa826c')

eval "$(
  declare -f prepare | \
    sed '
      $ i cd "$srcdir/${_pkgfqn}"; patch -Np1 -i "${srcdir}"/qtwebengine-everywhere-src-5.15.0-sandbox-Aw-snap-for-syscalls-403-and-407.patch
    '
)"

# glibc 2.33, some more tim64-affected functions for seccomp (futex_time64,
# pselect6_time64), also added missing network functions for __i386__ and missing statx
# (see also FS32#162)
source+=('qtwebengine-everywhere-src-5.15.2-glibc-2.33.patch')
sha256sums+=('6504c3a3ea58f9e870ba2108c9000f9ca7fb3dfb52213d79aa946c94f886b63a')

eval "$(
  declare -f prepare | \
    sed '
      /patch.*qtwebengine-everywhere-src-5.15.0-sandbox-Aw-snap-for-syscalls-403-and-407/ a \
        patch -Np1 -i "${srcdir}"/qtwebengine-everywhere-src-5.15.2-glibc-2.33.patch
    '
)"