[blfs-book] [BLFS Trac] #4953: graphviz-2.38.0

BLFS Trac trac at linuxfromscratch.org
Tue Apr 15 08:55:48 PDT 2014

#4953: graphviz-2.38.0
 Reporter:  fo           |       Owner:  fo
     Type:  enhancement  |      Status:  assigned
 Priority:  normal       |   Milestone:  7.6
Component:  BOOK         |     Version:  SVN
 Severity:  normal       |  Resolution:
 Keywords:               |

Comment (by pierre.labastie):

 Actually, symlinking is Arch linux's solution (they use DESTDIR of
 rm -r "${pkgdir}/usr/lib/tcl8.6/graphviz"
 ln -s ../graphviz/tcl "$pkgdir/usr/lib/tcl8.6/graphviz"
 What I could propose (but cannot test):
 if [ ! -h /usr/lib/tcl8.6/graphviz && -d /usr/lib/tcl8.6/graphviz ]; then
   for path in $(echo /usr/lib/tcl8.6/graphviz/*); do
     file=$(basename $path)
     if [ ! -e "/usr/lib/graphviz/tcl/$file" ]; then
       mv $path /usr/lib/graphviz/tcl/$file
     fi # otherwise, we assume the files are the same. I guess diffing
 would be overkill.
   rm -r /usr/lib/tcl8.6/graphviz
   ln -s ../graphviz/tcl /usr/lib/tcl8.6/graphviz
 So, if /usr/lib/tcl8.6/graphviz has been populated by other packages, we
 copy the files to the other directory and do the symlink. If it is already
 a symlink (or the directory does not exist,which is unlikely after
 installing graphviz), we do nothing. OTOH, why not just keep the

Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/4953#comment:5>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch

More information about the blfs-book mailing list