The new pkg-install script, which switched from csh to sh, updated two days ago, broke the port.
Specifically, use of the $USER environment variable in order to determine effective uid is wrong, this variable is the login user, so if one logs in as their own user, and su's to root, the pkg-install script comes up with the login-user's userid, not root, and the port configure will fail.
the hack i used is to set $user env to 'root'. how stupid is that?
I'm not sure why they used the method they did, i am not sure what the best practice is. it seems like there must be other ports that require root!
How-To-Repeat: login as non-root user
# cd /usr/ports/mail/qmail
# make configure
Over to maintainer (via the GNATS Auto Assign Tool)
garga 2008-01-24 16:33:20 UTC
FreeBSD ports repository
- Fix pkg-install's user detection
Submitted by: Simon Shapiro <firstname.lastname@example.org>
Revision Changes Path
1.6 +2 -2 ports/mail/qmail/files/pkg-install.in
email@example.com mailing list
To unsubscribe, send any mail to "firstname.lastname@example.org"