From owner-freebsd-ports@FreeBSD.ORG Mon Aug 25 15:05:39 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 683F93B6 for ; Mon, 25 Aug 2014 15:05:39 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F239D35EB for ; Mon, 25 Aug 2014 15:05:38 +0000 (UTC) Received: from mandree.no-ip.org ([78.48.65.230]) by mail.gmx.com (mrgmx101) with ESMTPSA (Nemesis) id 0MTwYX-1WvE1J22pF-00QkXk for ; Mon, 25 Aug 2014 17:05:36 +0200 Received: from [IPv6:::1] (localhost6.localdomain6 [IPv6:::1]) by apollo.emma.line.org (Postfix) with ESMTP id 17B1023CEB4 for ; Mon, 25 Aug 2014 17:05:32 +0200 (CEST) Message-ID: <53FB50BB.8020903@gmx.de> Date: Mon, 25 Aug 2014 17:05:31 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: Berkeley DB 4 and portupgrade References: <20140823151047.300a8cea@gumby.homeunix.com> In-Reply-To: <20140823151047.300a8cea@gumby.homeunix.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:u2WdTGgRbJ8f59yo70+lwfk4Aq9Wxjj4voP9WR1zbPNsQDtRn37 UN3DWaSLdYjmEL6JdmILW1gUk85SLux5kbRCYYuDbUUl+CfAqASfxSvaaapsLOnTDisxGWx Oxyw1tDdAzmCHxKq20DGoZlWOcj6ewZx/zvdzTxnZTAyhJhCIptKiyv0nF9ht2U25Bbsjmv UagKXYIUfRRKdi95ooUTg== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2014 15:05:39 -0000 Am 23.08.2014 um 16:10 schrieb RW: > > > I've lost track of how portupgrade works these days (10.0). Has it > switched to using pkg's sqlite database? For portupgrade, do not worry - it only _caches_ data in Berkeley DB databases, it does not exclusively own valuable data that it could lose. (OK rebuilding the pkgdb databse may take two or three minutes, but that's all.) And portupgrade only uses flat databases without anything fancy like locking or transactions/logging. portupgrade can recreate its databases any time. No it hasn't, and pkg is separate from portupgrade -- portupgrade however does not store precious data in databases, only caches, so not to worry -- in doubt, portupgrade it will just drop and recreate its databases from the package database (that pkg maintains) and the INDEX (that portsnap would maintain if you were to run it). > I was wondering whether I needed to do anything for the DB 4x > deletions, but I don't see a separate database file: > > $ ls -l /var/db/pkg > total 41638 > -rw-r--r-- 1 root wheel 39279616 23 Aug 14:55 local.sqlite > -rw-r--r-- 1 root wheel 38912 15 Sep 2013 repo-packagesite.sqlite > -r--r--r-- 1 root wheel 3236956 22 Aug 11:23 vuln.xml You're looking in the wrong places, you should have: /usr/ports/INDEX-10.db and /var/db/pkg/pkgdb.db The portupgrade-maintained databases are distinct from the system's own (pkg-maintained) local.sqlite. > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" >