[MacPorts] #15864: coreutils +with_default_names creates broken man page symlinks
#15864: coreutils +with_default_names creates broken man page symlinks -----------------------------------+---------------------------------------- Reporter: jason.dusek@gmail.com | Owner: macports-tickets@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
#15864: coreutils +with_default_names creates broken man page symlinks ------------------------------------+--------------------------------------- Reporter: jason.dusek@gmail.com | Owner: nox@macports.org Type: defect | Status: new Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: ------------------------------------+--------------------------------------- Changes (by jmr@macports.org): * owner: macports-tickets@lists.macosforge.org => nox@macports.org * milestone: => Port Bugs Comment: Assigning to maintainer. -- Ticket URL: <http://trac.macports.org/ticket/15864#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15864: coreutils +with_default_names creates broken man page symlinks ------------------------------------+--------------------------------------- Reporter: jason.dusek@gmail.com | Owner: nox@macports.org Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: Port: | ------------------------------------+--------------------------------------- Changes (by nox@macports.org): * status: new => closed * resolution: => worksforme Comment: I don't know where the problem is, the manpages are gzipped by the internal MacPorts destroot code and links are also corrected accordingly. -- Ticket URL: <http://trac.macports.org/ticket/15864#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15864: coreutils +with_default_names creates broken man page symlinks ------------------------------------+--------------------------------------- Reporter: jason.dusek@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: worksforme | Keywords: Port: | ------------------------------------+--------------------------------------- Comment(by ben@…): Replying to [comment:2 nox@…]:
I don't know where the problem is, the manpages are gzipped by the internal MacPorts destroot code and links are also corrected accordingly.
I've found the same problem, also as described by #16354. i.e. I installed coreutils with the with_default_names variant; and now have symlinks for the default-named man pages that are supposed to point to the 'g*' named pages: {{{ $ ls -l /opt/local/share/man/man1/{g,}ls* -r--r--r-- 2 root admin 2964 16 Jan 16:33 /opt/local/share/man/man1/gls.1.gz lrwxr-xr-x 1 root admin 31 16 Jan 16:34 /opt/local/share/man/man1/ls.1@ -> /opt/local/share/man/man1/gls.1 }}} As you can see, the actual man page is compressed, but the symlink points to a non-existing uncompressed version of the man page file. Thus, "man ls" does not bring up the man page for the MacPorts 'ls', ("man gls" does, but that's a very awkward thing to have to remember). Thanks, Ben -- Ticket URL: <http://trac.macports.org/ticket/15864#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15864: coreutils +with_default_names creates broken man page symlinks ------------------------------------+--------------------------------------- Reporter: jason.dusek@… | Owner: nox@… Type: defect | Status: reopened Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: | Keywords: Port: coreutils | ------------------------------------+--------------------------------------- Changes (by ryandesign@…): * cc: ryandesign@… (added) * status: closed => reopened * resolution: worksforme => * port: => coreutils Comment: The underlying cause is explained in #18302. You can fix this for coreutils by having it make relative manpage symlinks instead of absolute ones. -- Ticket URL: <http://trac.macports.org/ticket/15864#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15864: coreutils +with_default_names creates broken man page symlinks ------------------------------------+--------------------------------------- Reporter: jason.dusek@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: coreutils | ------------------------------------+--------------------------------------- Changes (by nox@…): * status: reopened => closed * resolution: => fixed Comment: Should be fixed in r46259. -- Ticket URL: <http://trac.macports.org/ticket/15864#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS
#15864: coreutils +with_default_names creates broken man page symlinks ------------------------------------+--------------------------------------- Reporter: jason.dusek@… | Owner: nox@… Type: defect | Status: closed Priority: Normal | Milestone: Port Bugs Component: ports | Version: 1.6.0 Resolution: fixed | Keywords: Port: coreutils | ------------------------------------+--------------------------------------- Comment(by ben@…): All good here! I just did an upgrade, and after fiddling w/ gettext ([http://lists.macosforge.org/pipermail/macports- users/2009-January/013330.html per here]) I have: {{{ $ ls -l /opt/local/share/man/man1/{g,}ls* -r--r--r-- 2 root admin 2964 2 Feb 15:19 /opt/local/share/man/man1/gls.1.gz lrwxr-xr-x 1 root admin 8 2 Feb 15:19 /opt/local/share/man/man1/ls.1.gz@ -> gls.1.gz }}} Thanks very much. -- Ticket URL: <http://trac.macports.org/ticket/15864#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts