From owner-freebsd-ports@FreeBSD.ORG Thu Apr 10 03:31:02 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 4E3DDB0A for ; Thu, 10 Apr 2014 03:31:02 +0000 (UTC) Received: from mail-ie0-x22f.google.com (mail-ie0-x22f.google.com [IPv6:2607:f8b0:4001:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FACD1814 for ; Thu, 10 Apr 2014 03:31:02 +0000 (UTC) Received: by mail-ie0-f175.google.com with SMTP id to1so3395162ieb.34 for ; Wed, 09 Apr 2014 20:31:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=DTqdcHNfIRvK8vvFoaLGy7cIw8m6Dx3otWnRoGAnFCo=; b=VBj/lUH3xk8g03FJtQHffpj4tXJSeJTJyuDTcqMLT4xRhxoNwfzgjU+/unoX4w/IUX ivE1Ljxn7C6l/NCOIkwY9BU42aNbVDIwhoXMwTOEiCeggsBI8GuIjgeOuMJn3jqYq8Du mhS8fCumDDZZLYGlWfuYEGDLVb+5R58B8HjOZP8CvPY8PnsfCQI8VoUQ4Y8ZbQga3hYi y34DhnvypbbWB9b0rf5eolxA60Si2MbFHInew+9lDtFu8nl80SnXqjVm7b+Ek9a0pWky fz5icvn8pkjwA7UaXULW+gWSTaepdKXGwhtqNg7t4/HXWKshobnvxNEcA7S+4Bq0438+ ep6Q== MIME-Version: 1.0 X-Received: by 10.50.176.199 with SMTP id ck7mr13788939igc.44.1397100661517; Wed, 09 Apr 2014 20:31:01 -0700 (PDT) Received: by 10.50.7.74 with HTTP; Wed, 9 Apr 2014 20:31:01 -0700 (PDT) In-Reply-To: References: Date: Wed, 9 Apr 2014 22:31:01 -0500 Message-ID: Subject: Re: PKGNG + portmaster /var/db/pkg/ not empty From: Scot Hetzel To: Michael Schuh Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2014 03:31:02 -0000 On Wed, Apr 9, 2014 at 5:22 PM, Michael Schuh wrote: > Hi there, > > > as far as i understood /var/db/pkg should be empty, after an fresh update > to stable 10 and > > # pkg delete -a -f > > WITH_PKGNG=yes > is set in /etc/make.conf > > the next inquiry of pkg asks for > the installation of pkg. everything fine so far. > > now i would going to use the freshly updated ports tree > to reinstall all packages starting with portmaster. > the call up of > > # make config > > shows only a message like options changed, but no dialog. > thanks google i could figure out to install dialog4 ports first, > then i got this working again. > > for my opinion: > it should get installed automatically or the dialog from the system should > get used > or at least iot should printout a hint or error message. > > > installing portmaster now and inquire an > portmaster `cat installed-ports-list` like in the man page of portmaster > recommended, i get the > /var/db/pkg filled again. beside the local.sqlite db from pkng. > > for the fun, some packages didn'r installed files in /var/db/pkg. > > it are exactly 4 packages difference, any relation to MAKEARGS=-j4 ? > > Any ideas how to get rid of this behaviour? > When portmaster is run, it creates a /var/db/pkg/${PKGNAME}/PM_UPGRADE_DONE_FLAG file to keep track of which ports it has upgraded. This allows portmaster to skip over ports it has already upgraded. When it has successfully completed the run, the PM_UPGRADE_DONE_FLAG is removed, but the /var/db/pkg/$PKGNAME} is left behind. -- DISCLAIMER: No electrons were maimed while sending this message. Only slightly bruised.