man pages not showing up for commands affected by update-alternatives

Bug #544332 reported by Peter Matulis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Manpage Repository
Confirmed
Wishlist
Unassigned

Bug Description

The update-alternatives system uses symlinks to find man pages. With 'netcat', for instance:

/etc/alternatives/nc.1.gz -> /usr/share/man/man1/nc_openbsd.1.gz

This needs to be taken account of. Right now, manpages.ubuntu.com only shows results for 6.06 for 'nc' or 'netcat'.

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Confirming, marking wishlist.

This is really hard to solve, as these symlinks are installed at postinst.

The manpage repository generator basically just untars the .deb archive.

$ cat debian/netcat-openbsd.postinst
if [ "$1" = "configure" ]; then
    update-alternatives \
        --install /bin/nc nc /bin/nc.openbsd 50 \
        --slave /bin/netcat netcat /bin/nc.openbsd \
        --slave /usr/share/man/man1/nc.1.gz nc.1.gz \
                /usr/share/man/man1/nc_openbsd.1.gz \
        --slave /usr/share/man/man1/netcat.1.gz netcat.1.gz \
                /usr/share/man/man1/nc_openbsd.1.gz
fi

I don't know the best way to solve this. I'm open to suggestions and patches ...

Changed in ubuntu-manpage-repository:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Lyn Perrine (walterorlin) wrote :

I think the easest way to work around this if you have the package installed would be to run namei `which $symlinkcommand` and then open the man page for that. Even if someone implements this how would this be maintainable? Also can't symlinks be manually set with update alternatives. namei `which ` on the client machien seems the only sane solution I can think of right now but again this varies for each machine so how would this be implemented well.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.