[MacPorts] #15864: coreutils +with_default_names creates broken man page symlinks

MacPorts noreply at macports.org
Fri Jul 4 21:01:29 PDT 2008


#15864: coreutils +with_default_names creates broken man page symlinks
-----------------------------------+----------------------------------------
 Reporter:  jason.dusek at gmail.com  |       Owner:  macports-tickets at lists.macosforge.org
     Type:  defect                 |      Status:  new                                  
 Priority:  Normal                 |   Milestone:                                       
Component:  ports                  |     Version:  1.6.0                                
 Keywords:                         |  
-----------------------------------+----------------------------------------
 The port creates manpage symlinks from `gmv.1` to `mv.1` but the man pages
 are actually `gmv.1.gz` and so on -- all compressed. I am trying to learn
 TCL to fix it, but my tentative change (to post-destroot) did not work.

 {{{

 variant with_default_names description {Install files without 'g' prefix}
 {
     post-destroot {
         foreach {d} {bin} {
             foreach {f} [glob -tails -directory ${destroot}${prefix}/${d}
 g*] {
                 ln -sf ${prefix}/${d}/${f}
 ${destroot}${prefix}/${d}/[string range ${f} 1 end]
             }
         }
         foreach {f} [glob -tails -directory
 ${destroot}${prefix}/share/man/man1 g*] {
             ln -sf ${prefix}/${d}/${f} ${destroot}${prefix}/${d}/[string
 range ${f} 1 end].gz
 }
     }
 }

 }}}

 In the meantime, I can just make the links myself, but it is a kludge.

-- 
Ticket URL: <http://trac.macports.org/ticket/15864>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list