From owner-freebsd-questions@FreeBSD.ORG Fri Aug 20 09:31:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 476AF16A4CE for ; Fri, 20 Aug 2004 09:31:57 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD14C43D45 for ; Fri, 20 Aug 2004 09:31:55 +0000 (GMT) (envelope-from itetcu@apropo.ro) Received: (qmail 22122 invoked by uid 89); 20 Aug 2004 09:31:53 -0000 Received: from unknown (HELO it.buh.tecnik93.com) (81.196.204.98) by 0 with SMTP; 20 Aug 2004 09:31:53 -0000 Received: from it.buh.tecnik93.com (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.tecnik93.com (Postfix) with SMTP id AD3623B5; Fri, 20 Aug 2004 12:31:51 +0300 (EEST) Date: Fri, 20 Aug 2004 12:31:51 +0300 From: Ion-Mihai Tetcu To: "Charles Ulrich" Message-Id: <20040820123151.482d7a1d@it.buh.tecnik93.com> In-Reply-To: <49225.207.179.91.96.1092966516.squirrel@freedombi.com> References: <49225.207.179.91.96.1092966516.squirrel@freedombi.com> X-Mailer: Sylpheed-Claws 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: portindex and INDEX.db X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2004 09:31:57 -0000 On Thu, 19 Aug 2004 21:48:36 -0400 (EDT) "Charles Ulrich" wrote: > > Is there any downside to generating INDEX.db with the sysutils/portindex > program rather than portsdb -Uu? It's not the canonical way and it is not so much tested. I'm using it with no problems since portidex appeared. Note that portindex generates INDEX(-5) and you still have to run portsdb -u. If you like the idea of having you index rebuilt in a few minutes, you might want to petition kris@ to run it on pointyhat on regular builds and compare the results with `make index` output. I'm using something like : do_build_new_index() { echo if [ ! -e ${LOG_DIR}/need_new_index ] then echo "No need to rebuild INDEX-5" return 0 fi cd /usr/ports || return 1 cp INDEX-5 INDEX-5.bak || return 1 if /usr/local/bin/portindex then rm ${LOG_DIR}/need_new_index cp INDEX.db INDEX.db.bak || return 1 sort < /usr/ports/INDEX-5 > /tmp/INDEX-5.sorted mv /tmp/INDEX-5.sorted /usr/ports/INDEX-5 echo '--- Done with INDEX building' echo echo '--- Begining building portsdb' /usr/local/sbin/portsdb -u || cp INDEX.db.bak INDEX.db && return 1 echo '--- Done bulding portsdb' echo cd /var/db/pkg || return 1 cp pkgdb.db pkgdb.db.bak || return 1 /usr/local/sbin/pkgdb -u || cp pkgdb.db.bak pkgdb.db && return 1 echo else echo "ports_upd-ERROR: Index build FAILLED, restoring old INDEX-5" cp INDEX-5.bak INDEX-5 return 1 fi } -- IOnut Unregistered ;) FreeBSD "user"