From owner-freebsd-ports@FreeBSD.ORG Fri Dec 28 22:04:08 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2218E8DB; Fri, 28 Dec 2012 22:04:08 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx1.freebsd.org (Postfix) with ESMTP id 7645F8FC12; Fri, 28 Dec 2012 22:04:06 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id hm9so8541016wib.1 for ; Fri, 28 Dec 2012 14:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=PdpBP8InUuXNpxHauw1gWH5934gw4imY7Z37N+Xie0M=; b=NrWtixVSmgkcKfPS3ZbPOPlUvVrBnyTSwWAQk/GaJz+Blx7ZzGdetQ793XtScqC3Oh W8XPSn7kwTSBO7JkqWgQ1kHlcFc2rEJsN2hvuDbPzEJ51+Jp2xBTg9B9d0MtNu9qmXrI zkO5k6ap07FVFW+lHo2rsiJ3SGB6uPOkWx/QllezUPlgX6w9ga3OmYWTbWRqkR+1gfmV 7Ae1G+093/B/XMUsDMlBFWrhPmWKM8JD9AAxyYNvUTaHR3YsKNmB1WYd1Z46Vjrjv0Vb XZk99RJyDLrj26ZfHMxa7hCQxGqod2/r3nQyiQ9qpvMJ0HPYlYiN14rRPxBBvkvG4Qux OS6A== X-Received: by 10.180.79.37 with SMTP id g5mr53495946wix.8.1356732246158; Fri, 28 Dec 2012 14:04:06 -0800 (PST) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id gz3sm64100047wib.2.2012.12.28.14.04.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 28 Dec 2012 14:04:05 -0800 (PST) Sender: Baptiste Daroussin Date: Fri, 28 Dec 2012 23:04:04 +0100 From: Baptiste Daroussin To: "O. Hartmann" Subject: Re: 9.1-PRE: updating of pkg-1.0.3 -> pkg-1.0.4 fails Message-ID: <20121228220404.GB63514@ithaqua.etoilebsd.net> References: <50DDA265.7060303@zedat.fu-berlin.de> <50DDA636.7010108@FreeBSD.org> <50DE1174.9000302@zedat.fu-berlin.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline In-Reply-To: <50DE1174.9000302@zedat.fu-berlin.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Olli Hauer , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2012 22:04:08 -0000 --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 28, 2012 at 10:39:00PM +0100, O. Hartmann wrote: > Am 12/28/12 15:01, schrieb Olli Hauer: > > On 2012-12-28 14:45, Hartmann, O. wrote: > >> Last time I update ports on my latop was on Dec 20th. Everything went > >> well. Today I grabbed the laptop again, made an update of the ports tr= ee > >> and try running portmaster. > >> > >> The laptop is running FreeBSD 9.1-PRERELEASE #142 r244377: Tue Dec 18 > >> 07:29:18 CET 2012. > >> > >> The update of pkgng is the first in line to be updated, but it fails as > >> you can see below. I do not understand the recommendations, since I use > >> USE_PKGNG=3Dyes on that box without problems for a couple of weeks now. > >> > >> I then downloaded the new pkg-1.0.4 sources manually and did a manula > >> update jumping into ports-mgmt/pkg; make reinstall. > >> > >> This worked, but leaves the record in the pkg-db still on 1.0.3, so any > >> further portmaster attempt will end in installing the update of pkg > >> first, which ends up in the nasty message below. > >> > >> I can not see this behaviour on any FreeBSD 10.0 box I have around! > >> > >> What is wrong here? > >> > >> Oliver > >> > >> [...] > >> =3D=3D=3D> Cleaning for pkg-1.0.4_1 > >> You are about to convert your system to pkgng while you have ports/pac= kages > >> installed with the old pkg_install tools. > >> > >> You can choose to: > >> - keep pkg_install as the package management system by adding this line > >> to /etc/make.conf: > >> > >> WITHOUT_PKGNG=3Dyes > >> > >> - switch to pkgng: > >> 1) Add WITHOUT_PKGNG to /etc/make.conf > >> 2) Install ports-mgmt/pkg > >> 3) Convert your package database by running pkg2ng > >> 4) Remove WITHOUT_PKGNG from /etc/make.conf > >> > >> *** [pre-everything] Error code 1 > >> > >> Stop in /usr/ports/ports-mgmt/pkg. > >> > >> =3D=3D=3D>>> make failed for ports-mgmt/pkg > >> =3D=3D=3D>>> Aborting update > >> > >> =3D=3D=3D>>> Update for pkg-1.0.3_1 failed > >> =3D=3D=3D>>> Aborting update > >> > >> Terminated > >> > >> =3D=3D=3D>>> You can restart from the point of failure with this comma= nd line: > >> portmaster ports-mgmt/pkg devel/pkgconf > >=20 > > Hm, can you look into the directory /var/db/pkg and check there a no le= ftovers from the old pkg tools (directories). > > If there are any old directories the pre-everything target will be exec= uted and you see this failure. > > What gives the command pkg_info as output? > >=20 > > -- > > Regards, > > olli > >=20 >=20 > portmaster installs for each port still a directory in /var/db/pkg - so > there are plenty of directories. >=20 > I deleted them all and tried again - this time the update worked. >=20 > This is very strange and seems to be unlogical. >=20 > Oliver >=20 Some of them were not only portmaster distfiles. Some where leftovers from = your conversion, (the ones with +CONTENTS in them) given that iirc you are now u= sing pkgng for long, I guess, that it doesn't matter at all, and the left overs = were "fixed" by your regular updates. regards, Bapt --oLBj+sq0vYjzfsbl Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlDeF1QACgkQ8kTtMUmk6EzlCgCfWVrKl/ZbyaDC62TNvzTO6kPq nQAAn3Hu3x5or5oi52oON++ocTxZZKfH =9/BY -----END PGP SIGNATURE----- --oLBj+sq0vYjzfsbl--