summaryrefslogtreecommitdiff
path: root/extra/java8-openjdk/PKGBUILD
blob: e1f5e16322261b2b5dd2b318f35453fbe4c8bae4 (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
# 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/
    '
)"

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

  # a lot of things missing during bootstrapping
  makedepends=(${makedepends[@]//libpulse>=0.9.11/})
  makedepends=(${makedepends[@]//gtk2/})
  makedepends=(${makedepends[@]//java-rhino/})
  makedepends=(${makedepends[@]//eclipse-ecj/})

  eval "$(
    declare -f build | \
      sed '
        s|--with-rhino|--without-rhino|
        s|--with-jdk-home=${JAVA_HOME}|--with-jdk-home=/opt/jdk7-openjdk|
      '
  )"

fi