From 5f8327e63312e2cc4811e91da9e2eb47be79502d Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 3 Nov 2023 14:31:32 +0800 Subject: 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 --- chapter08/gawk.xml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'chapter08') 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" Install the package: -make LN='ln -f' install +rm -f /usr/bin/gawk-&gawk-version; +make install - The meaning of the overridden make variable: + The meaning of the command: - LN='ln -f' + rm -f /usr/bin/gawk-&gawk-version; - This variable ensures that the previous hard link installed + The building system will not recreate the hard link + gawk-&gawk-version; if it already exists. + Remove it to ensure that the previous hard link installed in is updated here. -- cgit v1.2.3-54-g00ecf