aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpsykose <alice@ayaya.dev>2022-08-08 03:00:22 +0000
committeralice <alice@ayaya.dev>2022-08-08 04:57:45 +0000
commit4afcd7daeb7725ea88fb9eea8732dabdac9080ea (patch)
treef36c9de7ce4dd26abe8313c7dc6c52fc8bb384bf
parent0134c611c258ca2963d5ae1a87016357d12c0013 (diff)
downloadaports-4afcd7daeb7725ea88fb9eea8732dabdac9080ea.tar.gz
aports-4afcd7daeb7725ea88fb9eea8732dabdac9080ea.tar.bz2
aports-4afcd7daeb7725ea88fb9eea8732dabdac9080ea.tar.xz
community/webkit2gtk: upgrade to 2.36.6
-rw-r--r--community/webkit2gtk/APKBUILD30
1 files changed, 18 insertions, 12 deletions
diff --git a/community/webkit2gtk/APKBUILD b/community/webkit2gtk/APKBUILD
index 8a05d04cf0..1f61fccc60 100644
--- a/community/webkit2gtk/APKBUILD
+++ b/community/webkit2gtk/APKBUILD
@@ -3,15 +3,17 @@
# Contributor: Jiri Horner <laeqten@gmail.com>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=webkit2gtk
-pkgver=2.36.5
+pkgver=2.36.6
pkgrel=0
pkgdesc="Portable web rendering engine WebKit for GTK+"
url="https://webkitgtk.org/"
-arch="all"
+# no desktop
+arch="all !s390x"
license="LGPL-2.0-or-later AND BSD-2-Clause"
depends="bubblewrap xdg-dbus-proxy dbus:org.freedesktop.Secrets"
makedepends="
bison
+ clang
cmake
enchant2-dev
flex
@@ -40,9 +42,10 @@ makedepends="
libxml2-dev
libxslt-dev
libxt-dev
+ lld
+ llvm
mesa-dev
openjpeg-dev
- openjpeg-tools
pango-dev
python3
ruby
@@ -281,18 +284,21 @@ builddir="$srcdir/webkitgtk-$pkgver"
# - CVE-2017-2373
build() {
- # TODO: both of the below memory issues are solved with clang, but
- # clang fails to build armv7 only due to some NEON related thing.
case "$CARCH" in
- armhf|x86)
- # disable _FORTIFY_SOURCE to work around:
- # cc1plus: out of memory allocating 65536 bytes after a total of 3131101184 bytes
- CXXFLAGS="$CXXFLAGS -U_FORTIFY_SOURCE"
+ armv7)
+ # clang fails to build armv7 only due to some NEON related thing.
+ # https://github.com/WebKit/WebKit/pull/1233 should fix it
+ ;;
+ *)
+ # the debug symbols become 1/2 the size, and actual webkit becomes
+ # smaller too.
+ export CC=clang
+ export CXX=clang++
+ export LDFLAGS="$LDFLAGS -fuse-ld=lld"
;;
esac
- # reduce memory usage on 32 bit (with dbg symbols)
- # https://bugs.webkit.org/show_bug.cgi?id=199272
+ # significantly reduce debug symbol size
export CXXFLAGS="$CXXFLAGS -g1"
cmake -B build -G Ninja \
@@ -322,5 +328,5 @@ package() {
}
sha512sums="
-71be328aae93f1454d74371c3a614aab15190d2abc7dd7d7a003004c2f35a19d610d2613e64292f21e472d5112cba865ef019fecc2b4066eb87368c6d363b545 webkitgtk-2.36.5.tar.xz
+21e91d7b9a4af3b6c7eb7a8dd9fbbbd82c14d01a5cd6734c9476bcc6b81007dc622867f3c6cb1e5531a16c5abfe208f8540ca0a182fa02e274b46ebc4f9dd0d0 webkitgtk-2.36.6.tar.xz
"