Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Jan 2004 11:02:27 -0800
From:      Eivind Eklund <eivind@FreeBSD.org>
To:        Marius Strobl <marius@alchemy.franken.de>
Cc:        Oliver Eikemeier <eikemeier@fillmore-labs.com>
Subject:   Re: HEADS UP: New bsd.*.mk changes
Message-ID:  <20040120190227.GJ94636@FreeBSD.org>
In-Reply-To: <20040120194157.K93730@newtrinity.zeist.de>
References:  <1074590694.85583.20.camel@shumai.marcuscom.com> <400D2939.5090203@fillmore-labs.com> <1074617147.757.16.camel@gyros> <20040120171315.GH94636@FreeBSD.org> <1074619795.757.43.camel@gyros> <20040120190234.A13333@newtrinity.zeist.de> <1074621917.757.61.camel@gyros> <20040120194157.K93730@newtrinity.zeist.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 20, 2004 at 07:41:57PM +0100, Marius Strobl wrote:
> In general I'd like to further on be able to build a port as non-root
> and install als root, with default PREFIX, PKG_DBDIR and PORT_DBDIR.
> I don't see how this currently should work, if I set PORT_DBDIR to a
> directory I can write to before I build the port as non-root it won't
> neither read an existing OPTIONSFILE in the default location nor write
> a possibly changed OPTIONSFILE to the new location. I could move around
> the OPTIONSFILE before and after installing the port but that's really
> messy.

I would do it by chmod.  (I habitually build as a user, too - but I
don't think this patch will make much of a difference.)

> At a first glance I don't see a reason why creation of PORT_DBDIR if
> not already existing and writing of the OPTIONSFILE can't be done in
> e.g. the fake-pkg target or a new target that's executed directly
> before or after fake-pkg.

Because targets are supposed to be able to run separately.  It could
possibly be done by a bunch of .if make(target) statements to only delay
when a suitable delay point is, but the patches added so far are about
as complex as I would dare on a single pass, anyway.

Eivind.



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