www-client/firefox: add missing "errno.h" include in SandboxOpenedFiles.cpp
authorThomas Deutschmann <whissi@gentoo.org>
Fri, 28 Sep 2018 11:59:39 +0000 (13:59 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Fri, 28 Sep 2018 12:00:09 +0000 (14:00 +0200)
In addition, patch "firefox-60.0-rust-1.29-comp.patch" was dropped from
firefox-62.x wchi was added in previous commit b1e7185593b8d3f4c46481d4
because patch is already present.

Closes: https://bugs.gentoo.org/667096
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Package-Manager: Portage-2.3.50, Repoman-2.3.11

www-client/firefox/files/firefox-60.0-missing-errno_h-in-SandboxOpenedFiles_cpp.patch [new file with mode: 0644]
www-client/firefox/firefox-60.2.1-r1.ebuild
www-client/firefox/firefox-62.0.2.ebuild

diff --git a/www-client/firefox/files/firefox-60.0-missing-errno_h-in-SandboxOpenedFiles_cpp.patch b/www-client/firefox/files/firefox-60.0-missing-errno_h-in-SandboxOpenedFiles_cpp.patch
new file mode 100644 (file)
index 0000000..c746c73
--- /dev/null
@@ -0,0 +1,27 @@
+https://bugs.gentoo.org/667096
+
+https://bugzilla.mozilla.org/show_bug.cgi?id=1480554
+--- a/security/sandbox/linux/SandboxOpenedFiles.cpp
++++ b/security/sandbox/linux/SandboxOpenedFiles.cpp
+@@ -4,16 +4,17 @@
+  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+  * You can obtain one at http://mozilla.org/MPL/2.0/. */
+ #include "SandboxOpenedFiles.h"
+ #include "mozilla/Move.h"
+ #include "SandboxLogging.h"
++#include <errno.h>
+ #include <fcntl.h>
+ #include <unistd.h>
+ namespace mozilla {
+ // The default move constructor almost works, but Atomic isn't
+ // move-constructable and the fd needs some special handling.
+ SandboxOpenedFile::SandboxOpenedFile(SandboxOpenedFile&& aMoved)
+
+
+
+
index 89ad061bccf9472d05945c9f085bb1dd63d06149..36964cc42d08a5a6bfa44616158a88e27eb399aa 100644 (file)
@@ -127,6 +127,7 @@ src_prepare() {
        eapply "${FILESDIR}"/bug_1461221.patch
        eapply "${FILESDIR}"/${PN}-60.0-blessings-TERM.patch # 654316
        eapply "${FILESDIR}"/${PN}-60.0-rust-1.29-comp.patch
+       eapply "${FILESDIR}"/${PN}-60.0-missing-errno_h-in-SandboxOpenedFiles_cpp.patch
 
        # Enable gnomebreakpad
        if use debug ; then
index 82a6728b4eea30c2f3d55f321b92e82d178fdc47..bee2af624194f8cdfc394e6c4743f8434d13ee99 100644 (file)
@@ -187,7 +187,7 @@ src_prepare() {
        eapply "${FILESDIR}"/${PN}-60.0-blessings-TERM.patch # 654316
        eapply "${FILESDIR}"/${PN}-60.0-do-not-force-lld.patch
        eapply "${FILESDIR}"/${PN}-60.0-sandbox-lto.patch # 666580
-       eapply "${FILESDIR}"/${PN}-60.0-rust-1.29-comp.patch
+       eapply "${FILESDIR}"/${PN}-60.0-missing-errno_h-in-SandboxOpenedFiles_cpp.patch
 
        # Enable gnomebreakpad
        if use debug ; then