diff options
Diffstat (limited to 'firefox/abuild')
| -rw-r--r-- | firefox/abuild | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/firefox/abuild b/firefox/abuild index 443b4e2a..4aede4e4 100644 --- a/firefox/abuild +++ b/firefox/abuild @@ -1,11 +1,27 @@ name=firefox version=147.0.4 -release=1 +release=2 source="https://ftp.mozilla.org/pub/${name}/releases/${version}/source/${name}-${version}.source.tar.xz - musl-prctl.patch - libcxx18.patch" + enable-jxl.patch + gtk-focus-mask.patch + libcxx18.patch + musl-heap-reporter.patch + musl-no-features-h.patch + musl-prctl.patch + musl-pread64.patch + musl-pthread-name.patch + musl-sandbox-libgcc.patch + musl-sandbox-sched.patch + musl-siginfo.patch + musl-single-threaded.patch + no-build-id.patch" build() { + # musl: allow select() syscall in all sandbox policies + awk '/CASES_FOR_poll:/{print; print "#ifdef __NR_select"; print " case __NR_select:"; print "#endif"; next}1' \ + security/sandbox/linux/SandboxFilter.cpp > SandboxFilter.tmp + mv SandboxFilter.tmp security/sandbox/linux/SandboxFilter.cpp + cat > .mozconfig << EOF ac_add_options --prefix=/usr ac_add_options --libdir=/usr/lib @@ -45,16 +61,11 @@ ac_add_options --disable-system-extension-dirs ac_add_options --disable-default-browser-agent ac_add_options --disable-backgroundtasks ac_add_options --disable-webspeech +ac_add_options --enable-default-toolkit=cairo-gtk3-wayland-only ac_add_options --target=x86_64-unknown-linux-musl ac_add_options --host=x86_64-unknown-linux-musl EOF - if [ -f $SPM_PKGDB/libx11 ] && [ ! -f $SPM_PKGDB/wayland ]; then - echo "ac_add_options --enable-default-toolkit=cairo-gtk3-x11-only" >> .mozconfig - elif [ -f $SPM_PKGDB/wayland ] && [ ! -f $SPM_PKGDB/libx11 ]; then - echo "ac_add_options --enable-default-toolkit=cairo-gtk3-wayland-only" >> .mozconfig - fi - if [ -e '/usr/bin/ccache' ]; then echo 'ac_add_options --enable-ccache' >> .mozconfig PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//') |