aboutsummaryrefslogtreecommitdiffstats
path: root/chapter08
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-11-03 14:31:32 +0800
committerXi Ruoyao <xry111@xry111.site>2023-11-03 14:35:09 +0800
commit5f8327e63312e2cc4811e91da9e2eb47be79502d (patch)
tree395642012d0bb714a07c6ad3993d2e7cb014f2f2 /chapter08
parent80321c688113f74a9b72ef76d2c27ce24b6c69c4 (diff)
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
Diffstat (limited to 'chapter08')
-rw-r--r--chapter08/gawk.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/chapter08/gawk.xml b/chapter08/gawk.xml
index cc9348d90..71e295652 100644
--- a/chapter08/gawk.xml
+++ b/chapter08/gawk.xml
@@ -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>