From owner-freebsd-ports@FreeBSD.ORG Mon Jul 3 08:00:43 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0143C16A47C; Mon, 3 Jul 2006 08:00:42 +0000 (UTC) (envelope-from sem@FreeBSD.org) Received: from relay-er5.mbrd.ru (relay-er5.mbrd.ru [194.117.71.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id D090E43D48; Mon, 3 Jul 2006 08:00:13 +0000 (GMT) (envelope-from sem@FreeBSD.org) Received: from msd.mbrd.ru ([172.16.33.193]) by relay-er5.mbrd.ru with esmtpa (Exim 4.x) id 1FxJLl-000Kwd-FC; Mon, 03 Jul 2006 12:00:09 +0400 Message-ID: <44A8CE89.1020103@FreeBSD.org> Date: Mon, 03 Jul 2006 12:00:09 +0400 From: Sergey Matveychuk User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: Sergey Matveychuk , dandee@volny.cz, ports@freebsd.org References: <003201c69e25$43b56de0$6508280a@tocnet28.jspoj.czf> <44A8AFB7.5030304@FreeBSD.org> <20060703060759.GB51623@snoozy.vdgrift.org> <44A8B61C.6010003@FreeBSD.org> <20060703065404.GC51623@snoozy.vdgrift.org> In-Reply-To: <20060703065404.GC51623@snoozy.vdgrift.org> X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: Re: FreeBSD Port: portupgrade-2.1.3.2, 2 - help me please, the port in short time is broken again, what does it all mean ? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jul 2006 08:00:43 -0000 Bert van de Grift wrote: > On Mon, Jul 03, 2006 at 10:15:56AM +0400, Sergey Matveychuk wrote: >> Bert van de Grift wrote: >>> On Mon, Jul 03, 2006 at 09:48:39AM +0400, Sergey Matveychuk wrote: >>>> Daniel Dvor(a'k wrote: > >>>>> Fixing the pkgdb.db does not help me at all. > >>>> It's a known issue. > >>>> Just remove the file and /usr/ports/INDEX*.db and run portupgrade >>>> again. Note, it's described on man page - if you found pkgdb.db >>>> seriously broken, just remove it. > >>> I have the same problem after upgrading portupgrade but when I go back >>> to the previous version (2.1.1,2) everything is ok... > >> See my HANDS-UP message a couples days ago at the list. >> Old (<=2.1.1,2) portupgrade use wrong (may be a right word will - >> "unexpected") database format. > > OK - But when I remove /usr/ports/INDEX*.db and rebuild the database I > get this: > > [Updating the pkgdb in /var/db/pkg ... > /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid > argument; rebuild needed] [Rebuilding the pkgdb in > /var/db/pkg ... [Updating the portsdb in /usr/ports > ... - 15088 port entries found > .........1000.........2000.........3000.........4000.........5000.........6000.........7000.........8000.........9000.........10000.........11000.........12000.........13000.........14000.........15000 > ..... done] > [Updating the pkgdb in /var/db/pkg ... > /var/db/pkg/pkgdb.db: unexpected file type or format -- Invalid > argument; rebuild needed] [Rebuilding the pkgdb in > /var/db/pkg ... /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:352:in > `deorigin_glob': /var/db/pkg/pkgdb.db: unexpected file type or format -- > Invalid argument: Cannot update the pkgdb!]: Cannot update the pkgdb!] > (PkgDB::DBError) > from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:182:in > `config_include?' > from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:177:in > `config_include?' > from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:167:in > `config_ignore_moved?' > from /usr/local/sbin/portversion:308:in `check_pkgs' > from /usr/local/sbin/portversion:306:in `check_pkgs' > from /usr/local/sbin/portversion:266:in `main' > from /usr/local/lib/ruby/1.8/optparse.rb:815:in `initialize' > from /usr/local/sbin/portversion:78:in `main' > from /usr/local/sbin/portversion:361 > > Any clues? > I've written you should remove "the file and INDEX*.db". The file was pkgdb.db in your context. So you should remove *both* files. -- Dixi. Sem.