tech-pkg archive

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

Re: Sanitising make environment in pkgsrc



On Thu, 18 Aug 2011, Tim Zingelman wrote:
> >> > On Tue, Aug 16, 2011 at 04:36:08PM -0500, Tim Zingelman wrote:
> >> >> In that thread I pointed out that a common solaris boostrap passes
> >> >> variables in the environment...
> >> >>
> >> >>     env CC=/opt/studio12/SUNWspro/bin/cc \
> >> >>           SUNWSPROBASE=/opt/studio12/SUNWspro \
> >> >>           ./bootstrap --abi=64
> >> >>
> >> >> does this patch still allow that (I had hoped to answer that question
> >> >> myself by testing, but ENOTIME today.)
> 
> I'd answer this myself by trying it or reading the code if I was not
> so busy right now, but does bootstrap use mk.conf?  at the least it
> makes bootstrapping less clean to require creating the /usr/pkg/etc
> (or whatever) directory and adding a mk.conf there before starting the
> bootstrap.

No, but you can use the '--mk-fragment' flag to add a fragment to the 
mk.conf installed in /usr/pkg/etc.

I noted the the bootstrap script add SUNWSPROBASE to the created mk.conf
already so the change wouldn't affect you at all. :)

-- 
Steven


Home | Main Index | Thread Index | Old Index