On 2014/02/06 11:07, Ted Unangst wrote: > On Thu, Feb 06, 2014 at 12:33, Marc Espie wrote: > > On Thu, Feb 06, 2014 at 04:26:46AM +0000, Ted Unangst wrote: > >> Refer also to my trouble building db4. (That was on amd64). > >> > >> http://marc.info/?l=openbsd-ports&m=139150088001742&w=2 > > > > Most likely sudo config fuckup. > > > > set > > > > SUDO = sudo -E > > > > in /etc/mk.conf, see if the problem goes away. > > No. I have all the setenv settings in sudo. > > And that doesn't really make any sense. Why would PREFIX have one > flavor and WRKDIST have another at the same time? >
make is being re-run as root, like this: cd /usr/ports/editors/vim && PKGPATH=editors/vim exec sudo make post-install TRUEPREFIX=/usr/local PREFIX=/usr/obj/vim-7.4.135-no_x11/fake-amd64-no_x11/usr/local DESTDIR=/usr/obj/vim-7.4.135-no_x11/fake-amd64-no_x11 It relies on FLAVOR being passed through the environment, so you either need "!env_reset" or "SUDO=sudo -E" or to have FLAVOR in env_keep for your user/group. If the variable is not passed through, the default from the Makefile will be used, for vim this is gtk2. With the env_keep lines enabled and my user in %wsrc: $ FLAVOR=no_x11 sudo make show=FLAVOR no_x11 With them commented out: $ FLAVOR=no_x11 sudo make show=FLAVOR gtk2
