generate an INDEX file for a ports tree
Joe Marcus Clarke
marcus at marcuscom.com
Thu May 7 12:23:51 EDT 2009
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.
> > 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
Joe
>
>
> WBR
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20090507/48853a5a/attachment.bin>
More information about the tinderbox-list
mailing list