From owner-freebsd-ports@FreeBSD.ORG Wed Apr 2 23:00:41 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 29B847E9 for ; Wed, 2 Apr 2014 23:00:41 +0000 (UTC) Received: from mail-pb0-x235.google.com (mail-pb0-x235.google.com [IPv6:2607:f8b0:400e:c01::235]) (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 F2EBC804 for ; Wed, 2 Apr 2014 23:00:40 +0000 (UTC) Received: by mail-pb0-f53.google.com with SMTP id rp16so870389pbb.26 for ; Wed, 02 Apr 2014 16:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Bf2kcRhnM/LpZVuTowSUQ8sjvA7+hu51QXLmG29dNsU=; b=0+exAmi7LC6/DBS0Oj7/F3VJvNDngst9NY38+Z1Ca6H3W+EeDeOSwrZToR7PwY1e3r t//DAlwJOCMzvbMxMmX/zyOeyo9dyHC5rTASsbPR94iKaxTDgkpHsGVPpT43e8ICZ+gy nIlJYzYK87Jjy5wHBPURH1y/AttnO43dRxcP4OSolDiiDWWAhkLyXAnDc87r19vImyc7 24NGYw97Arw9NULlYIVEPikSs5JvVkmn/vDUmktYS46KQGvC4H3Pne/xzdaAJauAYXL+ I/UwbOs+a8kk8Ahya3VFLdXiFyIziMtpMu9KygNcMkk9VmITUOeVIOsQW1QclCW8CdEU 0Qyw== MIME-Version: 1.0 X-Received: by 10.66.164.229 with SMTP id yt5mr3010107pab.67.1396479640551; Wed, 02 Apr 2014 16:00:40 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.66.73.34 with HTTP; Wed, 2 Apr 2014 16:00:40 -0700 (PDT) In-Reply-To: References: Date: Wed, 2 Apr 2014 16:00:40 -0700 X-Google-Sender-Auth: nleIjveDe5yEBGdgkThLMYPWGcY Message-ID: Subject: Re: Repair pkgng From: Kevin Oberman To: Jakob Breivik Grimstveit Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD Ports mailing list 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: Wed, 02 Apr 2014 23:00:41 -0000 On Wed, Apr 2, 2014 at 5:27 AM, Jakob Breivik Grimstveit < jakob@grimstveit.no> wrote: > Hi, > > After having done some half-hearted pkgng conversions back in the fbsd 9.x > days I'm now on fbsd 10. > > I use `portmaster -a -v -d --delete-packages` to upgrade packages > > Trying to convert to new pkg format fails: > > # pkg2ng > Converting packages from /var/db/pkg > [...] > Converting libyaml-0.1.6... > pkg: Unable to open plist file: /var/db/pkg/libyaml-0.1.6/+CONTENTS > Skipping invalid package: /var/db/pkg/libyaml-0.1.6 > Converting gcc-ecj-4.5... > pkg: Unable to open plist file: /var/db/pkg/gcc-ecj-4.5/+CONTENTS > Skipping invalid package: /var/db/pkg/gcc-ecj-4.5 > Converting cmake-modules-2.8.10.2... > pkg: Unable to open plist file: > /var/db/pkg/cmake-modules-2.8.10.2/+CONTENTS > Skipping invalid package: /var/db/pkg/cmake-modules-2.8.10.2 > [...] > Analysing shared libraries, this will take a while... done > > These lines I get for every installed package (I assume). > > /etc/make.conf contains WITH_PKGNG=YES > > /var/db/pkg only contains these files: > > $ find /var/db/pkg > [...] > /var/db/pkg/libyaml-0.1.6 > /var/db/pkg/libyaml-0.1.6/distfiles > /var/db/pkg/gcc-ecj-4.5 > /var/db/pkg/gcc-ecj-4.5/distfiles > /var/db/pkg/cmake-modules-2.8.10.2 > /var/db/pkg/cmake-modules-2.8.10.2/distfiles > [...] > > portmaster -l and /contents of /var/db/pkg are also different (not very > strange, I assume): > > $ portmaster -l | wc -l && find /var/db/pkg -type d -maxdepth 1|wc -l > 206 > 267 > > > How do I get myself safely over to using just pkgng, as I should on fbsd10? > > > -- > Vyrdsamt, > Jakob Breivik Grimstveit | +47 4829 8152 > http://grimstveit.no/jakob > _______________________________________________ > 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" > Jakob, The single most significant aspect of pkgng is probably the move from the old ASCII DB (/var/db/pkg) to an sqlite DB. The old flat DB is left, but is not longer updated. Your best bet is to learn the appropriate commands in pkg. Start with "pkg help info". For te most part, portmaster is unchanged including portmaster -l. Among the changes you might notice is speed. Most operations are much faster. E.g. "pkg version -Ivl\<" is vastly faster than the old "pkg_version -vl\<" or even "portversion -vl\<" to list ports that have been updated. (Note the new "-I" option to use the index file. Without it, it is still pretty slow, but you need to either build or fetch the index for '-I' to work.) You can pretty much do anything with pkgng that you could do with with the old system, most commands are the same with the removal of the '_' after "pkg", but new functionality do require a few changes plus there are a lot of new capabilities afforded by using a real DB that can be very nice. The one things most notably missing is clean handling of things like moves of ports or refactoring of ports. These will often need the use f"pkg set -o" to change the origin manually, but this is very fast as, unlike the old system, where changing he origin required re-installation. And this should be fixed when the new solver is added to pkg. It is currently in alpha, so it may be a while. It really has to work right to avoid disaster with the data, but once it is solid and fully tested, pkgng should be a huge win. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.c