Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Feb 2006 14:04:09 +0100
From:      Alexander Leidinger <Alexander@Leidinger.net>
To:        Luigi Rizzo <rizzo@icir.org>
Cc:        ports@freebsd.org, Doug Barton <dougb@freebsd.org>
Subject:   Re: please check your ports, pre-install vs pre-su-install
Message-ID:  <20060215140409.aj8kd4jrgg48w0wo@netchild.homeip.net>
In-Reply-To: <20060215024812.A20909@xorpc.icir.org>
References:  <20060214112901.A74586@xorpc.icir.org> <43F2884E.1070006@FreeBSD.org> <20060214230933.B81035@xorpc.icir.org> <20060215110149.87695wiuas44g4co@netchild.homeip.net> <20060215024812.A20909@xorpc.icir.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Luigi Rizzo <rizzo@icir.org> wrote:

> On Wed, Feb 15, 2006 at 11:01:49AM +0100, Alexander Leidinger wrote:
>> Luigi Rizzo <rizzo@icir.org> wrote:
>>
>> > or that you consider the two targets redundant and just default
>> > to one (pre-install with additional credential switch) should be enough ?
>> > I may agree with the latter.
>>
>> I don't. Try to test a port on one of the FreeBSD machines (on an
>> architecture you don't have yourself). You aren't root there.
>
> alex, i don't understand your point.

Somehow I was under the impression, that someone may want to make the
credential switch non-optional (remove or break the INSTALL_AS_USER
feature).

> The issue, as far as i can tell, is that we have two pre-install
> targets, one run before and one after the credentials switch,
> and the question was whether there is a real need to have both,
> or just the latter suffices.
>
> My position was that probably one can consider the pre-no-su-install
> step as part of the 'build' target, but maybe i am missing something ?

An example of a pre-install target which needs root credentials and which
doesn't belong into the build target is "add user FOO" (you need to be root
to do that, and it changes the "environment" (I'm not talking about the
shell ENV)).

An example of a pre-install target which doesn't needs root credentials is a
target which gathers some information which the install script needs. Since
we have a reinstall target, and because reinstall can be done on a different
host (NFS share), this shouldn't be done in the build target.

I don't know if this fits into the way those targets are currently used, but
it's how I understand them without having used them.

Bye,
Alexander.

-- 
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137
Bad cafeteria food landed all the sysadmins in the hospital.





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