generate an INDEX file for a ports tree

Boris Samorodov bsam at ipt.ru
Thu May 7 12:11:22 EDT 2009


On Thu, 7 May 2009 17:18:13 +0400 Alexey V. Degtyarev wrote:

> > >  PORTS_BASEDIR=${PB}/portstrees
> > >  make_j=`sysctl -n hw.ncpu || echo 1`
> > >  env PORTSDIR=${PORTS_BASEDIR}/${PORTSTREE}/ports make \
> > >  	-j${make_j} -C ${PORTS_BASEDIR}/${PORTSTREE}/ports \
> > > 	index
> > 
> > >  Makes INDEX in my configuration at every portstree update with
> > >  postPortsTreeUpdate hook.
> > 
> > OK, two questions here.
> > 1. How a ports tree environment ${PB}/scripts/etc/env/portstree.${PORTSTREE}
> >    should be used.
> > 2. How an environment from the hosts /etc/make.conf should be
> >    avoided.

>  According to make.conf(5) this should work as you want:

>  env __MAKE_CONF=${PB}/scripts/etc/env/portstree.${PORTSTREE} \
>  PORTSDIR=${PORTS_BASEDIR}/${PORTSTREE}/ports \
>  INDEX_JOBS=`sysctl -n hw.ncpu || echo 1` make \
>  -C ${PORTS_BASEDIR}/${PORTSTREE}/ports index

Yes, that was it. Thanks.

But only when the index file was generated did I undestand that
the command "make index" does not respect environment. I expected
that if I define OVERRIDE_LINUX_BASE_PORT=f8 then a generated
index file would be affected. I was wrong...

Is there any possibility to generate an index file which respects
environment variables, non standard OPTIONS, etc?


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve


More information about the tinderbox-list mailing list