From owner-freebsd-current@freebsd.org Mon Jan 18 09:12:26 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 277A7A87786; Mon, 18 Jan 2016 09:12:26 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (static-24-113-41-81.wavecable.com [24.113.41.81]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0A60713C3; Mon, 18 Jan 2016 09:12:25 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id u0I9CKb8030926; Mon, 18 Jan 2016 01:12:26 -0800 (PST) (envelope-from bsd-lists@bsdforge.com) To: "FreeBSD ports" , "FreeBSD CURRENT" In-Reply-To: <1951334c592f1ba416e9619d89b63f92@ultimatedns.net> References: <1951334c592f1ba416e9619d89b63f92@ultimatedns.net> From: "Chris H" Subject: Re: Will pkg(8) *ever* play nice? Date: Mon, 18 Jan 2016 01:12:26 -0800 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 09:12:26 -0000 On Mon, 18 Jan 2016 00:26:39 -0800 "Chris H" wrote > Greetings, > I was in the process of updating one of my development boxes > that runs -CURRENT. It's lagging a bit behind. So it required > a fresh, new "world". World built as expected. But the kernel > failed due to pkg(8). This box has an Nvidia video card. So > src.conf(5) has [among other ports entries] > > PORTS_MODULES=x11/nvidia-driver-304 > > the [kernel] build failed due to pkg(8) > > ===> Ports module x11/nvidia-driver-304 (all) > cd ${PORTSDIR:-/usr/ports}/x11/nvidia-driver-304; > PATH=/usr/obj/usr/src/tmp/lega > cy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/b > in: > /usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:/usr/sb > in: /usr/bin:/usr/local/bin:/usr/local/sbin SRC_BASE=/usr/src > OSVERSION=1100062 W > RKDIRPREFIX=/usr/obj/usr/src/sys/DEVBOX make -B clean all > ===> Cleaning for nvidia-driver-304-304.128 > ===> nvidia-driver-304-304.128 pkg(8) must be version 1.6.0 or greater, but > you have 1.4.12. You must upgrade the ports-mgmt/pkg port first. > *** Error code 1 > > Stop. > make[3]: stopped in /usr/ports/x11/nvidia-driver-304 > *** Error code 1 > > Stop. > make[2]: stopped in /usr/obj/usr/src/sys/DEVBOX > *** Error code 1 > > Stop. > make[1]: stopped in /usr/src > *** Error code 1 > > .. > > Do I need to have FreeBSD-12 && ports/head from 12 installed *prior* > to building (upgrading)?!? > This feels like a chicken-v-egg thing. Is it possible to *remove* > pkg(8) && any dependency on it. Is this a bug in pkg(8) or just > a bug in my head? > > Please help. As most of you already know; building/installing > world/kernel is a fairly time consuming process. > > Thanks! > OK. It's late, and I'm ready to call it a day. It's probably a bug in my head. I *probably* should have upgraded pkg(8) after svn up'ing src && ports, and *prior* to making worls && kernel. So I'm going to take a chance, and: cd /usr/obj chflags -R noschg * cd / rm -r /usr/obj cd /usr/ports/ports-mgmt/pkg make; make deinstall && make resinstall clean cd /usr/src and make world, and kernel, and see how it goes. --Chris