From 709eb7470dc4557f529f9129a0e46049d3f39a27 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Tue, 7 Apr 2020 17:08:30 +0000 Subject: [PATCH] Remove the /usr/share/doc/openssl- dir before renaming /usr/share/doc/openssl, otherwise it moves it as a subdirectory --- LFS/master.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LFS/master.sh b/LFS/master.sh index b1d2a9c..c0ed818 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -215,6 +215,10 @@ chapter6_Makefiles() { done # Remove Bzip2 binaries before make install (LFS-6.2 compatibility) sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i chapter06$N/*-bzip2$N + # Remove openssl- from /usr/share/doc (LFS-9.x), because + # otherwise the mv command creates an openssl directory. + sed -e 's@mv -v@rm -rfv /usr/share/doc/openssl-*\n&@' \ + -i chapter06$N/*-openssl$N fi echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter6$N ( CHROOT ) ${R_arrow}"