Add a patch to firefox to fix a gcc12 problem.

This commit is contained in:
Bruce Dubbs 2022-05-09 18:47:40 -05:00
parent f71be678b0
commit 8dacd5e93d

View File

@ -76,6 +76,12 @@
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Required patch:
<ulink url="&patch-root;/firefox-&firefox-version;esr-gcc12_fix-1.patch"/>
</para>
</listitem>
<listitem>
<para>
Recommended patch:
@ -309,6 +315,12 @@ EOF</userinput></screen>
<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-disable_rust_test-1.patch</userinput></screen>
<para>
Now apply a patch which allows the build to complete when using gcc-12 or later.
</para>
<screen><userinput>patch -Np1 -i ../firefox-&firefox-version;esr-gcc12_fix-1.patch</userinput></screen>
<!-- applying this for 11.1: upstream haven't make their mind yet
https://bugzilla.mozilla.org/show_bug.cgi?id=1729459 -->
<para>
@ -491,20 +503,18 @@ export MOZBUILD_STATE_PATH=${PWD}/mozbuild &amp;&amp;
<para>
If you use a desktop environment like <application>Gnome</application> or
<application>KDE</application> you may like to create a
<application>KDE</application> you may want to create a
<filename>firefox.desktop</filename> file so that
<application>Firefox</application> appears in the panel's menus. <!--If you
didn't enable startup-notification in your mozconfig change the
StartupNotify line to false.--> As the
<systemitem class="username">root</systemitem> user:
<application>Firefox</application> appears in the panel's menus.
As the &root; user:
</para>
<screen role="root"><userinput>mkdir -pv /usr/share/applications &amp;&amp;
mkdir -pv /usr/share/pixmaps &amp;&amp;
MIMETYPE="text/xml;text/mml;text/html" &amp;&amp;
MIMETYPE="$MIMETYPE;application/xhtml+xml;application/vnd.mozilla.xul+xml" &amp;&amp;
MIMETYPE="$MIMETYPE;x-scheme-handler/http;x-scheme-handler/https" &amp;&amp;
MIMETYPE="text/xml;text/mml;text/html;" &amp;&amp;
MIMETYPE+="application/xhtml+xml;application/vnd.mozilla.xul+xml;" &amp;&amp;
MIMETYPE+="x-scheme-handler/http;x-scheme-handler/https" &amp;&amp;
cat &gt; /usr/share/applications/firefox.desktop &lt;&lt; EOF &amp;&amp;
<literal>[Desktop Entry]