configure editors/vim

Sean C. Farley scf at FreeBSD.org
Sat Sep 15 19:59:33 PDT 2007


On Sat, 15 Sep 2007, David O'Brien wrote:

> On Sat, Sep 15, 2007 at 09:33:44AM +0200, Markus Hitter wrote:
>>> Brownie ports for someone that can explain why this always happens
>>> for me with ports that have OPTIONS:
>>>
>>>    bash$ make
>>>    cd /usr/ports/editors/vim && make config;
>>>    ===>  Switching to root credentials to create /var/db/ports/vim
>>>    Password:
>>>    ===>  Returning to user credentials
>>>    [3]+  Stopped                 WITH_OPTIONS=1 make
>>
>> Time to fix your system? It doesn't happen on my 6.2-RELEASE. I'm
>> running ports stuff as root.
>
> Tell me how and I will. :-)
>
> Of course when I do 'make clean install' as root, I'm not asked by the
> ports system to su to root.  But when one does as a normal user, one
> is - by the system in /usr/ports/Mk.

You could add an echo statement in the config rule (specifically the UID
and INSTALL_AS_USER test) in bsd.port.mk around line 5759.  I think
something like this may give a better idea about the problem:

         echo "UID == ${UID}"

Also, I assume both id -u and id -ur return 0 for you as root.  Is the
id you run the id in /usr/bin?

Sean
-- 
scf at FreeBSD.org


More information about the freebsd-ports mailing list