Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extra/java8-openjdk/PKGBUILD
blob: d175a67a03f2f5de57abbf24c2a9732ed2881ef5 (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
# temporary workaround for wrong checksums (FS#63430)

sha256sums=('0f55ff00da5e356a7bd703cef9208c5a3c2fd0dfa02fa42575ff42348688a530'
            '0ad3f9a17fc91f23bddf6bbecd6999ae38a83a4ccc2d26a977c7a59be084f12e'
            'b2d48ef855bcf7ec036567516ad45b34e9c4c5c54b087cd0642254ec55c2897c'
            'dad37f169d79a86bd45db58a97d2f78a4b78a9627d9d2f8131717517dcc225bb'
            '4d7fc3a95b0c728a4109cf92ea263981cfa6a477551ea07daeef6e87927b9258'
            '0583ba9a993a0eb38a91c173552ea060b5d53294e5b86ad968c745c4f5bb16da'
            '6ff07b7bcf955819ef80daa8bd2c4d8546f8b74d8941f84e430b20e381c4b11f'
            '0699029f693e22dd6945571050a6e8a9e3e0d5295e33b6200d5b5b405caaf767')

# glibc 2.28 readdir_r -> readdir hotfix (or, let's hope readdir is
# actually thread-safe internally)

source+=('hotspot-jdk8u181-b13-readdir_r.patch')
sha256sums+=('76b176e6ec65e90b1352cb42ebf6c47a11c9a632662c31ff413965d03e3a5d41')

eval "$(
  declare -f prepare | \
    sed '
       /^}$/ i cd ${srcdir}/hotspot-${_repo_ver} && patch -Np1 < "${srcdir}/hotspot-jdk8u181-b13-readdir_r.patch"
    '
)"

eval "$(
  declare -f build | \
    sed '
       s/-Wno-error=deprecated-declarations/-Wno-error=deprecated-declarations -Wno-error=deprecated/
    '
)"

eval "$(
  declare -f package_jre8-openjdk-headless | \
    sed '
      s/^\s*rm\s/\0-f /
      T
      s/ -f -f / -f /
    '
)"

# i486-specific
if [ "${CARCH}" = "i486" ]; then
  _JARCH=i386
fi

# pentium4-specific
if [ "${CARCH}" = "pentium4" ]; then
  _JARCH=i386
  _DOC_ARCH=x86

  # force 4-byte stack alignment on SSE aptimized systems, see FS32#75
  eval "$(
    declare -f build | \
      sed '
        s/\(export CFLAGS="\)/\1-mincoming-stack-boundary=2 /
        s/\(export CXXFLAGS="\)/\1-mincoming-stack-boundary=2 /
      '
  )"
fi

_nonheadless=(
  "${_nonheadless[@]/\/\///${_JARCH}/}"
)
_imgdir="${_imgdir//--/-${_JARCH}-}"