generate an INDEX file for a ports tree
Joe Marcus Clarke
marcus at marcuscom.com
Thu May 7 14:33:34 EDT 2009
On Thu, 2009-05-07 at 22:23 +0400, Boris Samorodov wrote:
> On Thu, 07 May 2009 21:57:57 +0400 Boris Samorodov wrote:
> > On Thu, 07 May 2009 20:48:00 +0400 Boris Samorodov wrote:
> > > On Thu, 07 May 2009 12:23:51 -0400 Joe Marcus Clarke wrote:
>
> > > > env INDEX_PRISTINE= ... make index
>
> > > There seems to be some other problem at my test machine.
> > > I'll re-check it. Thanks.
>
> > As I understand the following script should provide a default
> > index file:
> > -----
> > PORTS_BASEDIR=${PB}/portstrees
> > PORTSDIR=${PORTS_BASEDIR}/${PORTSTREE}/ports
>
> > export __MAKE_CONF=/dev/null
> > export PORTSDIR
> > export INDEXFILE=INDEX
>
> > make -C ${PORTSDIR} index
> > -----
>
> > The command is:
> > -----
> > sudo PORTSTREE=FreeBSD PB=/usr/local/tinderbox ./makeindex.sh
> > -----
>
> > But the resulting index file don't provide any dependencies:
> > -----
> > % grep ^acroread8 /usr/local/tinderbox/portstrees/FreeBSD/ports/INDEX
> > acroread8-8.1.4_1|/usr/ports/print/acroread8|/usr/local|Adobe Reader for view, print, and search PDF documents (ENU)|/usr/ports/print/acroread8/pkg-descr|hrs at FreeBSD.org|print linux|||http://www.adobe.com/products/acrobat/readermain.html|||
> > -----
>
> > Where is my error?
>
> Seems that PORTSDIR (look at the second field) is not respected. However
> env for the script:
> -----
> PORTSDIR=/usr/local/tinderbox/portstrees/FreeBSD/ports
> SUDO_GID=0
> USER=root
> MAIL=/var/mail/bsam
> PORTSTREE=FreeBSD
> __MAKE_CONF=/dev/null
> HOME=/home/bsam
> SUDO_UID=1001
> LOGNAME=root
> USERNAME=root
> TERM=screen
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/home/bsam/bin
> PB=/usr/local/tinderbox
> DISPLAY=:0.0
> LANG=ru_RU.UTF-8
> XAUTHORITY=/home/bsam/.Xauthority
> SUDO_COMMAND=./makeindex.sh
> SHELL=/usr/local/bin/zsh
> SUDO_USER=bsam
> PWD=/m/local/tinderbox/hooks
> INDEXFILE=INDEX
> -----
Maybe sudo is the problem. What happens if you just run the script as
your user?
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/e25339f3/attachment.bin>
More information about the tinderbox-list
mailing list