Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2007 21:59:29 -0500 (CDT)
From:      "Sean C. Farley" <scf@FreeBSD.org>
To:        "David O'Brien" <obrien@FreeBSD.org>
Cc:        freebsd-ports@FreeBSD.org
Subject:   Re: configure editors/vim
Message-ID:  <alpine.BSF.0.9999.0709152145200.29967@thor.farley.org>
In-Reply-To: <20070916022630.GA661@dragon.NUXI.org>
References:  <46E92692.7020202@tempest.sk> <20070913160001.GB49054@glitch.rwxrwxrwx.net> <20070915020746.GA20080@dragon.NUXI.org> <639A91D2-2F37-49A3-933D-AF0D9A88F30D@jump-ing.de> <20070916022630.GA661@dragon.NUXI.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.0.9999.0709152145200.29967>