generate an INDEX file for a ports tree
Boris Samorodov
bsam at ipt.ru
Thu May 7 12:48:00 EDT 2009
On Thu, 07 May 2009 12:23:51 -0400 Joe Marcus Clarke wrote:
> On Thu, 2009-05-07 at 20:11 +0400, Boris Samorodov wrote:
> > 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} \
> An .env file is not a make.conf file. It would be better to source this
> file into your Hook.
Yes, I did so.
> > > 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?
> env INDEX_PRISTINE= ... make index
There seems to be some other problem at my test machine.
I'll re-check it. Thanks.
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