generate an INDEX file for a ports tree
Boris Samorodov
bsam at ipt.ru
Thu May 7 14:23:00 EDT 2009
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
-----
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