summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2022-05-05 11:59:11 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2022-05-05 11:59:11 +0200
commit971cbc2f8b5a85a14332ffd5051064b8ada05aae (patch)
tree8e23b25af1a310e940978d1d287dcfbfa3a50cc5 /extra
parent1788b6a0924e18adaee67f2f9ce365691c127d9d (diff)
downloadpackages-971cbc2f8b5a85a14332ffd5051064b8ada05aae.tar.xz
extra/java8-openjdk: applied all patches from build-support
Diffstat (limited to 'extra')
-rw-r--r--extra/java8-openjdk/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/extra/java8-openjdk/PKGBUILD b/extra/java8-openjdk/PKGBUILD
new file mode 100644
index 00000000..a8553565
--- /dev/null
+++ b/extra/java8-openjdk/PKGBUILD
@@ -0,0 +1,41 @@
+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
+ _DOC_ARCH=x86
+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}-}"