From 14f973b7fb668920cb5bf83e275d2f1a4e789944 Mon Sep 17 00:00:00 2001 From: YellowJacketLinux Date: Sat, 19 Oct 2024 23:23:05 -0700 Subject: [PATCH] clarification on duplicate documentation --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 485acc1..d9e5f39 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,14 @@ By default, LFS/BLFS does not compress man or info pages. By default, RPM uses gzip compression on man and info pages. Thus when RPM bootstrapping an LFS system, you will likely end up with two copies of each man and info page. +One solution is to gzip all man and info pages *before* the RPM bootstrap. That +way the files on the file system will have the same file name as the file names +in the RPM files. Similarly, you can configure your RPM build environment to NOT +gzip the man and info pages. Then once the bootstrap is complete, revert it to +gzip in future package builds. However, I just use a shell script to find and +delete the duplicates. Since RPM compresses them and the script only deletes the +uncompressed duplicates, it does not remove files under RPM management. + The shell script [`remove_duplicates.sh`](remove_duplicates.sh) can be used to remove the duplicates. Run it once a day or so during the RPM bootstrap process, definitely after installing RPM packaged Perl for the first time.