[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg_alternatives vs manual pages
Today I learned that having a manual page in an ALTERNATIVES file is
not supported, and turns out to be actively harmful, yet a bunch of
packages have them:
$ git grep -l /man -- '*/ALTERN*'
The problem is pkg_alternatives explicitly doesn't support anything
other than "bin|libexec|sbin", and will error out if that does not
match. Unfortunately this means that "pkg_alternatives rebuild" will
remove all the wrappers from the system and then leave it in that
state, as one of my users found out.
There appears to be some kind of automated manual page handling, but
it only supports situations where there is an exact match between a
command handled in the ALTERNATIVES file and its manual page, which
doesn't help the package that triggered this issue where that is not
$ cat databases/py-peewee/ALTERNATIVES
Roland, could we get a pkglint error for this, so at least we aren't
shipping actively dangerous ALTERNATIVES files?
Is anyone interested in adding support for ad-hoc manual pages to
pkg_alternatives, or is this just something that is outside of the
Jonathan Perkin - Joyent, Inc. - www.joyent.com
Main Index |
Thread Index |