gawk: Fix "gawk-&gawk-version; is a remnant from Chapter 7" again

We'd fixed #5180 by forcing LN='ln -f'.  But this has stopped to work
with gawk-5.2.2 (and 5.3.0) because now the building system explicitly
checks the existence of gawk-&gawk-version; and refuses to update it if
it exists.

Now removing the file before "make install" seems the easiest solution.

Link: https://git.savannah.gnu.org/cgit/gawk.git/commit/?id=11762f4c0685
This commit is contained in:
Xi Ruoyao 2023-11-03 14:31:32 +08:00
parent 80321c6881
commit 5f8327e633
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -59,15 +59,18 @@ su tester -c "PATH=$PATH make check"</userinput></screen>
<para>Install the package:</para>
<screen><userinput remap="install">make LN='ln -f' install</userinput></screen>
<screen><userinput remap="install">rm -f /usr/bin/gawk-&gawk-version;
make install</userinput></screen>
<variablelist>
<title>The meaning of the overridden make variable:</title>
<title>The meaning of the command:</title>
<varlistentry>
<term><envar>LN='ln -f'</envar></term>
<term><envar>rm -f /usr/bin/gawk-&gawk-version;</envar></term>
<listitem>
<para>This variable ensures that the previous hard link installed
<para>The building system will not recreate the hard link
<filename>gawk-&gawk-version;</filename> if it already exists.
Remove it to ensure that the previous hard link installed
in <xref linkend='ch-tools-gawk'/> is updated here.</para>
</listitem>
</varlistentry>