Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #15864 (new defect)

Opened 2 months ago

Last modified 2 months ago

coreutils +with_default_names creates broken man page symlinks

Reported by: jason.dusek@… Owned by: nox@…
Priority: Normal Milestone: Port Bugs
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

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.

Change History

Changed 2 months ago by jmr@…

  • owner changed from macports-tickets@… to nox@…
  • milestone set to Port Bugs

Assigning to maintainer.

Note: See TracTickets for help on using tickets.