[sudo-users] Bug: Sudo 1.7.1 Install

Russell Van Tassell russell+sudo-users at loosenut.com
Fri May 1 15:08:58 EDT 2009


I think this bug's actually pretty old, but it's an annoyance with new
systems (mostly if you're building/templating a package); it may or may
not be a "Solaris only" sort of thing (not sure).

Basically, if you give "configure" a "--prefix" argument, sudo's man
pages will end up under "${prefix}/share/man" (aka a subdir to the
datadir)... however, if you leave it default, the share directory
disappears from the structure (eg. "${prefix}/man").

Steps to reproduce (Solaris 10 x86/amd64 used here):

- ./configure --prefix=/tmp/sudo
- gmake ; gmake -n install
- Notice man pages to be installed in /tmp/sudo/share/man

- ./configure --prefix=/usr/local
- gmake ; gmake -n install
- Notice man pages to be installed in /usr/local/share/man

- ./configure
- gmake ; gmake -n install
- Notice man pages to be installed in /usr/local/man


At the very least, the last two scenarios should produce man pages in
the same spot.  More generally, resetting PREFIX should NOT nest man pages
down another level (isn't that what --mandir is for, anyway?).

Note: Configure does, indeed, claim datarootdir should be "PREFIX/share,"
however it clearly ignores this when the package is defaulted to the
/usr/local location.


-- 
Russell M. Van Tassell
russell at loosenut.com

"I'd rather be dead than singing "Satisfaction" when I'm 45."
                             -- Mick Jagger of the Rolling Stones (1970)



More information about the sudo-users mailing list