aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-11-26 09:48:11 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-11-26 14:46:35 +0000
commit5805e7ae807a95db29d62508f868435da1cdeff0 (patch)
tree217c74b8d836f0341a4f2bcc1a5884a50d25fa32
parent8e029d9fbf9fffc5ed5f590e41a3c41b1eff5132 (diff)
downloadaports-5805e7ae807a95db29d62508f868435da1cdeff0.tar.gz
aports-5805e7ae807a95db29d62508f868435da1cdeff0.tar.bz2
aports-5805e7ae807a95db29d62508f868435da1cdeff0.tar.xz
community/firefox: add patch for LARGEFILE in sandbox
-rw-r--r--community/firefox/APKBUILD4
-rw-r--r--community/firefox/sandbox-largefile.patch17
2 files changed, 20 insertions, 1 deletions
diff --git a/community/firefox/APKBUILD b/community/firefox/APKBUILD
index c0d81b2059..99c43c28a9 100644
--- a/community/firefox/APKBUILD
+++ b/community/firefox/APKBUILD
@@ -5,7 +5,7 @@ pkgname=firefox
pkgver=82.0.3
# Date of release, YY-MM-DD for metainfo file (see package())
_releasedate=2020-11-10
-pkgrel=0
+pkgrel=1
pkgdesc="Firefox web browser"
url="https://www.firefox.com/"
# Limited on:
@@ -76,6 +76,7 @@ source="https://ftp.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkg
disable-neon-in-aom.patch
sandbox-fork.patch
sandbox-sched_setscheduler.patch
+ sandbox-largefile.patch
firefox-pipewire-0-3.patch
avoid-redefinition.patch
@@ -371,5 +372,6 @@ bb75b2abda86e455d81571052a2cfec5a9d858ffa91c50a7217b4b6c02cbfc0400e9114a27bd54ce
f963fcdba7307a0b1712dfb95ceba4ab49f449f60e550bb69d15d50272e6df9add90862251ee561e4ea5fd171a2703552ffa7aade92996f5f0b3e577f1544a6d disable-neon-in-aom.patch
4911ddb41bef8d9f6d6200159cde465627e940fe1c09099be55769d21a5a52a3f737e1bf803daa96126c035b091aea880fbc5d2e6cf5da96ddd17322461a72d6 sandbox-fork.patch
db26757b2ebf9f567962e32294b4ae48b3a5d0378a7589dfe650fe3a179ff58befbab5082981c68e1c25fb9e56b2db1e4e510d4bca17c3e3aedbf9a2f21806eb sandbox-sched_setscheduler.patch
+b7d0a6126bdf6c0569f80aabf5b37ed2c7a35712eb8a0404a2d85381552f5555d4f97d213ea26cec6a45dc2785f22439376ed5f8e78b4fd664ef0223307b333e sandbox-largefile.patch
5927f4f6fa9e6a208bed1f37e2c2f2e9633d280a7cb2baa0c74567107ba30524b7ccbbea5961a34eb7a3c39ec07c5a11ef5e2bb5dd5ca884441f9e868c056503 firefox-pipewire-0-3.patch
360c687f45bfc13812f0dc4e42afafe410c801d8df7a73ec947cb110677ea51087ed123d36b3d1e959eb438f77c44d9a90b503dd611a962453a55d93938f7016 avoid-redefinition.patch"
diff --git a/community/firefox/sandbox-largefile.patch b/community/firefox/sandbox-largefile.patch
new file mode 100644
index 0000000000..f1cf28b51b
--- /dev/null
+++ b/community/firefox/sandbox-largefile.patch
@@ -0,0 +1,17 @@
+--- a/security/sandbox/linux/SandboxFilter.cpp 2020-11-23 22:41:14.556378950 +0100
++++ b/security/sandbox/linux/SandboxFilter.cpp 2020-11-23 22:40:23.595806444 +0100
+@@ -68,7 +68,13 @@
+
+ // The headers define O_LARGEFILE as 0 on x86_64, but we need the
+ // actual value because it shows up in file flags.
+-#define O_LARGEFILE_REAL 00100000
++#if defined(__x86_64__) || defined(__i386__) || defined(__mips__)
++#define O_LARGEFILE_REAL 0100000
++#elif defined(__powerpc__)
++#define O_LARGEFILE_REAL 0200000
++#else
++#define O_LARGEFILE_REAL O_LARGEFILE
++#endif
+
+ // Not part of UAPI, but userspace sees it in F_GETFL; see bug 1650751.
+ #define FMODE_NONOTIFY 0x4000000