Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2014 22:31:01 -0500
From:      Scot Hetzel <swhetzel@gmail.com>
To:        Michael Schuh <michael.schuh@gmail.com>
Cc:        FreeBSD Ports <freebsd-ports@freebsd.org>
Subject:   Re: PKGNG + portmaster /var/db/pkg/ not empty
Message-ID:  <CACdU%2Bf9ioj8uACS%2Bvwk1aafXOGMN121s5qTKw2Cjp3keX_VhSg@mail.gmail.com>
In-Reply-To: <CADwRVEbkA9SkPhyxhvyguqq0Mo8xuh6p3XwqfgzQotBPPgjjdQ@mail.gmail.com>
References:  <CADwRVEbkA9SkPhyxhvyguqq0Mo8xuh6p3XwqfgzQotBPPgjjdQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 9, 2014 at 5:22 PM, Michael Schuh <michael.schuh@gmail.com> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACdU%2Bf9ioj8uACS%2Bvwk1aafXOGMN121s5qTKw2Cjp3keX_VhSg>