tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PKGSRC_SETENV?= ${SETENV} -i



Thomas Klausner <wiz%NetBSD.org@localhost> writes:

> On Tue, Jun 04, 2013 at 09:26:13PM +0400, Aleksej Saushev wrote:
>> I think that this is very bad idea.
>
> I think it's a good idea.
>
> Random environment variables may affect configure scripts, and we want
> to avoid this as much as possible -- and this is a good step in this
> direction.

Variables set in mk.conf are not "random" ones.

>> First, this breaks a lot more than it fixes. PKGSRC_SETENV is used in
>> more places than where we want to have "extra" clear environment.
>> In particular, in fetch and extract logic. The latter breaks, for instance,
>> installations of all pkgsrc users who use HOME or other environment variables
>> to control location of DISTDIR and PACKAGES. There exist other cases for
>> users who may not need empty environment during building stages.
>
> Please use the PACKAGES and DISTFILES variables in /etc/mk.conf if you
> really want this.

I do use it, and this change breaks established behaviour of PACKAGES
and DISTDIR among others.

-- 
BECHA...
   CKOPO CE3OH...



Home | Main Index | Thread Index | Old Index