From owner-freebsd-ports@FreeBSD.ORG Fri Dec 28 14:01:04 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 0539C16B for ; Fri, 28 Dec 2012 14:01:04 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from p578be941.dip0.t-ipconnect.de (p578be941.dip0.t-ipconnect.de [87.139.233.65]) by mx1.freebsd.org (Postfix) with ESMTP id AD5388FC12 for ; Fri, 28 Dec 2012 14:01:03 +0000 (UTC) Received: from [192.168.0.100] (cde1100.uni.vrs [192.168.0.100]) (Authenticated sender: ohauer) by p578be941.dip0.t-ipconnect.de (Postfix) with ESMTPSA id 36DF8208BA; Fri, 28 Dec 2012 15:00:52 +0100 (CET) Message-ID: <50DDA636.7010108@FreeBSD.org> Date: Fri, 28 Dec 2012 15:01:26 +0100 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org Subject: Re: 9.1-PRE: updating of pkg-1.0.3 -> pkg-1.0.4 fails References: <50DDA265.7060303@zedat.fu-berlin.de> In-Reply-To: <50DDA265.7060303@zedat.fu-berlin.de> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "Hartmann, O." 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 14:01:04 -0000 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 tree > 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=yes 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 > > [...] > ===> Cleaning for pkg-1.0.4_1 > You are about to convert your system to pkgng while you have ports/packages > 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=yes > > - 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. > > ===>>> make failed for ports-mgmt/pkg > ===>>> Aborting update > > ===>>> Update for pkg-1.0.3_1 failed > ===>>> Aborting update > > Terminated > > ===>>> You can restart from the point of failure with this command line: > portmaster ports-mgmt/pkg devel/pkgconf Hm, can you look into the directory /var/db/pkg and check there a no leftovers from the old pkg tools (directories). If there are any old directories the pre-everything target will be executed and you see this failure. What gives the command pkg_info as output? -- Regards, olli