From b43a04648e3fe9090232d72ef843af04ccbc3f07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 24 Nov 2020 21:04:58 +0100 Subject: [PATCH] firefox-esr: fix sandbox for fcntl The patch for firefox also applies for the ESR release. --- .../firefox-esr/patches/sandbox-largefile.patch | 17 +++++++++++++++++ srcpkgs/firefox-esr/template | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/firefox-esr/patches/sandbox-largefile.patch diff --git a/srcpkgs/firefox-esr/patches/sandbox-largefile.patch b/srcpkgs/firefox-esr/patches/sandbox-largefile.patch new file mode 100644 index 00000000000..494ca82df5a --- /dev/null +++ b/srcpkgs/firefox-esr/patches/sandbox-largefile.patch @@ -0,0 +1,17 @@ +--- security/sandbox/linux/SandboxFilter.cpp 2020-11-23 22:41:14.556378950 +0100 ++++ 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 diff --git a/srcpkgs/firefox-esr/template b/srcpkgs/firefox-esr/template index eb66fe17cc8..4634d5bf710 100644 --- a/srcpkgs/firefox-esr/template +++ b/srcpkgs/firefox-esr/template @@ -4,7 +4,7 @@ # pkgname=firefox-esr version=78.5.0 -revision=1 +revision=2 wrksrc="firefox-${version}" build_helper="rust qemu" hostmakedepends="autoconf213 unzip zip pkg-config perl python3 yasm rust cargo