www-client/firefox: Fix llvm9 build failure
authorJory Pratt <anarchy@gentoo.org>
Sun, 16 Feb 2020 03:05:42 +0000 (21:05 -0600)
committerJory Pratt <anarchy@gentoo.org>
Sun, 16 Feb 2020 03:07:17 +0000 (21:07 -0600)
Closes: https://bugs.gentoo.org/704924
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Jory Pratt <anarchy@gentoo.org>
www-client/firefox/files/firefox-73.0_fix_llvm9.patch [new file with mode: 0644]
www-client/firefox/firefox-73.0.ebuild

diff --git a/www-client/firefox/files/firefox-73.0_fix_llvm9.patch b/www-client/firefox/files/firefox-73.0_fix_llvm9.patch
new file mode 100644 (file)
index 0000000..e12417e
--- /dev/null
@@ -0,0 +1,19 @@
+diff --git a/config/gcc-stl-wrapper.template.h b/config/gcc-stl-wrapper.template.h
+--- a/config/gcc-stl-wrapper.template.h
++++ b/config/gcc-stl-wrapper.template.h
+@@ -32,6 +32,14 @@
+ #  define moz_dont_include_mozalloc_for_cstdlib
+ #endif
++#ifndef moz_dont_include_mozalloc_for_type_traits
++#  define moz_dont_include_mozalloc_for_type_traits
++#endif
++
++#ifndef moz_dont_include_mozalloc_for_limits
++#  define moz_dont_include_mozalloc_for_limits
++#endif
++
+ // Include mozalloc after the STL header and all other headers it includes
+ // have been preprocessed.
+ #if !defined(MOZ_INCLUDE_MOZALLOC_H) && \
+
index c4fb0b23ad168253189268bb5ff0982bf601f41e..6e104cb56f90787fe02f18efd12cf6c8056403ca 100644 (file)
@@ -258,6 +258,7 @@ src_prepare() {
        eapply "${WORKDIR}/firefox"
 
        eapply "${FILESDIR}/${PN}-73.0_fix_lto_pgo_builds.patch"
+       eapply "${FILESDIR}/${PN}-73.0_fix_llvm9.patch"
 
        # Allow user to apply any additional patches without modifing ebuild
        eapply_user