From d80fa0f9312c9ada16edbf3a3711e0ef2a9b5b8d Mon Sep 17 00:00:00 2001 From: Ella Stanforth Date: Sat, 7 May 2022 19:39:10 +0000 Subject: [PATCH] firefox-hg: update to 101.0rc6 --- gui/firefox-hg/build.sh | 11 ++++++----- gui/firefox-hg/sandbox-allow-select.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 gui/firefox-hg/sandbox-allow-select.patch diff --git a/gui/firefox-hg/build.sh b/gui/firefox-hg/build.sh index d2079b3..9f141b5 100644 --- a/gui/firefox-hg/build.sh +++ b/gui/firefox-hg/build.sh @@ -1,18 +1,19 @@ pkgname=firefox -pkgver=26726cd430955db041e5de33d9792bb816c57608 +pkgver=101.0 mkdeps="cbindgen:rust" fetch() { #curl "https://ftp.mozilla.org/pub/firefox/releases/${pkgver}esr/source/firefox-${pkgver}esr.source.tar.xz" -o $pkgname-$pkgver.tar.xz - curl "https://hg.mozilla.org/mozilla-unified/archive/26726cd430955db041e5de33d9792bb816c57608.zip" -o $pkgname-$pkgver.zip - unzip - mv mozilla-unified-$pkgver $pkgname-$pkgver + #curl "https://hg.mozilla.org/mozilla-unified/archive/26726cd430955db041e5de33d9792bb816c57608.zip" -o $pkgname-$pkgver.zip + curl "https://archive.mozilla.org/pub/firefox/releases/${pkgver}b3/source/firefox-${pkgver}b3.source.tar.xz" -o $pkgname-$pkgver.tar.xz + tar -xf $pkgname-$pkgver.tar.xz cd $pkgname-$pkgver # patch -p1 < ../../no-x11.patch # patch -p1 < ../../fix-clang-as.patch patch -p1 < ../../avoid-redefinition.patch patch -p1 < ../../libcxx.patch patch -p1 < ../../grefptr.patch + patch -p1 < ../../sandbox-allow-select.patch # patch -p1 < ../../sandbox-fork.patch # patch -p1 < ../../sandbox-sched.patch } @@ -68,7 +69,7 @@ ac_add_options --without-wasm-sandboxed-libraries #ac_add_options MOZ_PGO=1 EOF - bad --gmake --gm4 --autoconf ./mach clobber + # bad --gmake --gm4 --autoconf ./mach clobber bad --gmake --gm4 --autoconf ./mach build } diff --git a/gui/firefox-hg/sandbox-allow-select.patch b/gui/firefox-hg/sandbox-allow-select.patch new file mode 100644 index 0000000..b78334a --- /dev/null +++ b/gui/firefox-hg/sandbox-allow-select.patch @@ -0,0 +1,12 @@ +--- a/security/sandbox/linux/SandboxFilter.cpp ++++ b/security/sandbox/linux/SandboxFilter.cpp +@@ -1999,6 +1999,9 @@ + case __NR_uname: + return Allow(); + ++ CASES_FOR_select: ++ return Allow(); ++ + default: + return SandboxPolicyCommon::EvaluateSyscall(sysno); + }