From 722ec5bf97178aa805a281c7b055c44ac3248a09 Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Fri, 23 May 2025 15:58:21 +0800 Subject: [PATCH] glibc: Reuse DIR in upgrade instruction and unset it afterwards --- chapter08/glibc.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapter08/glibc.xml b/chapter08/glibc.xml index a7ce1190a..bcb275177 100644 --- a/chapter08/glibc.xml +++ b/chapter08/glibc.xml @@ -329,7 +329,8 @@ install -vm755 dest/usr/lib/*.so.* /usr/lib DIR=$(dirname $(gcc -print-libgcc-file-name)) [ -e $DIR/include/limits.h ] || mv $DIR/include{-fixed,}/limits.h [ -e $DIR/include/syslimits.h ] || mv $DIR/include{-fixed,}/syslimits.h -rm -rfv $(dirname $(gcc -print-libgcc-file-name))/include-fixed/* +rm -rfv $DIR/include-fixed/* +unset DIR Install the package: