Jan Alexander Steffens (heftig) pushed to branch main at Arch Linux / Packaging / Packages / wpewebkit
Commits: 78e7af81 by Jan Alexander Steffens (heftig) at 2024-10-11T08:26:49+02:00 2.46.1-4: Use clang See: https://gitlab.archlinux.org/archlinux/packaging/packages/webkitgtk-6.0/-/issues/4 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = wpewebkit pkgdesc = Embeddable web content engine pkgver = 2.46.1 - pkgrel = 3 + pkgrel = 4 url = https://wpewebkit.org arch = x86_64 license = AFL-2.0 OR GPL-2.0-or-later @@ -28,12 +28,14 @@ pkgbase = wpewebkit license = OFL-1.1 license = SunPro license = Unicode-TOU + makedepends = clang makedepends = cmake makedepends = gi-docgen makedepends = glib2-devel makedepends = gobject-introspection makedepends = gperf makedepends = gst-plugins-bad + makedepends = lld makedepends = ninja makedepends = python makedepends = ruby ===================================== PKGBUILD ===================================== @@ -6,7 +6,7 @@ pkgname=( wpewebkit-docs ) pkgver=2.46.1 -pkgrel=3 +pkgrel=4 pkgdesc="Embeddable web content engine" url="https://wpewebkit.org" arch=(x86_64) @@ -81,12 +81,14 @@ depends=( zlib ) makedepends=( + clang cmake gi-docgen glib2-devel gobject-introspection gperf gst-plugins-bad + lld ninja python ruby @@ -125,15 +127,19 @@ build() { -DENABLE_MINIBROWSER=ON ) + # Upstream prefers Clang + # https://gitlab.archlinux.org/archlinux/packaging/packages/webkitgtk-6.0/-/issues/4 + export CC=clang CXX=clang++ + LDFLAGS+=" -fuse-ld=lld" + + # Skia uses malloc_usable_size + CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" + CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}" + # JITted code crashes when CET is used CFLAGS+=' -fcf-protection=none' CXXFLAGS+=' -fcf-protection=none' - # Produce minimal debug info: 4.3 GB of debug data makes the - # build too slow and is too much to package for debuginfod - CFLAGS+=' -g1' - CXXFLAGS+=' -g1' - cmake -S wpewebkit-$pkgver -B build -G Ninja "${cmake_options[@]}" cmake --build build } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/wpewebkit/-/commit/78e7af815bd2b469ca9151b391e69223ad7a6e95 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/wpewebkit/-/commit/78e7af815bd2b469ca9151b391e69223ad7a6e95 You're receiving this email because of your account on gitlab.archlinux.org.