Welcome to CRUX bug tracking.
FS#130 - pkgmk cannot gzip hardlinked man pages
Attached to Project:
CRUX
Opened by Tilman Sauerbeck (tilman) - Sunday, 12 November 2006, 10:38 GMT
Last edited by Johannes Winkelmann (jw) - Tuesday, 15 July 2008, 18:32 GMT
Opened by Tilman Sauerbeck (tilman) - Sunday, 12 November 2006, 10:38 GMT
Last edited by Johannes Winkelmann (jw) - Tuesday, 15 July 2008, 18:32 GMT
|
DetailsThis is equivalent what pkgmk does to compress man pages:
$ touch foo $ ln foo bar $ gzip -9 foo gzip: foo has 1 other link -- unchanged |
This task depends upon
I think pkgmk should rename the files to have a .gz suffix in this case.
+++ pkgmk.in 2008-07-16 18:54:34.000000000 +0200
@@ -283,7 +283,7 @@
find . -type f -path "*/man/man*/*" | while read FILE; do
if [ "$FILE" = "${FILE%%.gz}" ]; then
- gzip -9 "$FILE"
+ gzip -f -9 "$FILE"
fi
done
- look for files with the same inode number
- remove all but one of them and remember their names
- gzip the other
- create the hardlinks with the stored names + .gz