Add a patch to fix gcc-go version string

This commit is contained in:
Thomas Trepl 2023-03-08 18:42:57 +01:00
parent 01f42a8179
commit f0dd071e29
2 changed files with 24 additions and 8 deletions

View File

@ -115,17 +115,17 @@
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
<!--
<bridgehead renderas="sect3">Additional Downloads</bridgehead> <bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact"> <itemizedlist spacing="compact">
<listitem> <listitem>
<para> <para>
Required patch for building against glibc-2.36: Optional patch when adding Go to the desired language list:
<ulink url="&patch-root;/gcc-&gcc-version;-glibc_2.36-1.patch"/> <ulink url="&patch-root;/gcc-&gcc-version;-fix_go_version-1.patch"/>
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
-->
<bridgehead renderas="sect3">GCC Dependencies</bridgehead> <bridgehead renderas="sect3">GCC Dependencies</bridgehead>
<bridgehead renderas="sect4">Optional</bridgehead> <bridgehead renderas="sect4">Optional</bridgehead>
@ -171,13 +171,20 @@
bootstrap anyway, add <parameter>--disable-bootstrap</parameter> to the bootstrap anyway, add <parameter>--disable-bootstrap</parameter> to the
<command>./configure</command> options below. <command>./configure</command> options below.
</para> </para>
<!--
<para> <para>
First fix a problem with glibc-2.36: Some packages checks on the phrase <literal>gccgo</literal> in the output
of <command>go version</command> to see which kind of Go compiler is
installed (gcc-go or golang). The absence of <literal>gccgo</literal> in
that string makes them to assume the compiler is the golang which is wrong.
If Go isn't in the list of desired languages, this patch can be skipped
while it does not harm if applied anyway. Fix the Go part of gcc to show
a valid version string when calling <command>go version</command> by
applying a patch:
</para> </para>
<screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-glibc_2.36-1.patch</userinput></screen> <screen><userinput>patch -Np1 -i ../gcc-&gcc-version;-fix_go_version-1.patch</userinput></screen>
-->
<para> <para>
Install <application>GCC</application> by running the following commands: Install <application>GCC</application> by running the following commands:
</para> </para>

View File

@ -38,6 +38,15 @@
</itemizedlist> </itemizedlist>
</listitem> </listitem>
--> -->
<listitem>
<para>March 7th, 2023</para>
<itemizedlist>
<listitem>
<para>[thomas] - Add a patch to fix gcc-go version string (part of gcc-12.2.0).</para>
</listitem>
</itemizedlist>
</listitem>
<listitem> <listitem>
<para>March 7th, 2023</para> <para>March 7th, 2023</para>
<itemizedlist> <itemizedlist>