Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#4452 closed defect (fixed)

update symlinks after compressdoc

Reported by: symnem Owned by: Igor Živković
Priority: normal Milestone:
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

compressdoc leaves dangling symlinks (LOTS of them) when it's run after building LFS.

this script solves them (ad hoc).

hopefully you can find a more elegant solution.

cat > /tmp/updlink <<"."
#!/bin/bash
dir=`dirname $1`
base=`basename $1`
tgt=`readlink $1`
if [ -e "$dir/$tgt.gz" ]; then
  rm -f $1
  ln -s "$tgt.gz" "$1.gz"
elif [ -e "$dir/$tgt.bz2" ]; then
  rm -f $1
  ln -s "$tgt.bz2" "$1.bz2"
fi
.

chmod 755 /tmp/updlink

cd /usr/share/man
find -L . -type l -print0|xargs -0l /tmp/updlink 

Change History (6)

comment:1 by Igor Živković, 10 years ago

Owner: changed from blfs-book@… to Igor Živković
Status: newassigned

comment:2 by Igor Živković, 10 years ago

I've just run compressdoc script (I didn't use it so far on my systems) and I don't see any broken links in the /usr/share/man directory. Could you paste which ones are broken on your LFS?

comment:3 by bdubbs@…, 10 years ago

Looking at the script itself, there are comments about how much space is saved by compressing man pages. It comes out to about 20 Mb. Is this significant on today's systems where disk space costs about 1 USD (or less) per Gb?

Perhaps we should consider removing the compressdoc section completely.

comment:4 by Igor Živković, 10 years ago

Well, I certainly don't use it so I'm all for archiving it if there are no objections.

comment:5 by Igor Živković, 10 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r12435.

comment:6 by bdubbs@…, 10 years ago

Milestone: current

Milestone current deleted

Note: See TracTickets for help on using tickets.