From owner-freebsd-ports@FreeBSD.ORG Mon Jul 14 08:32:57 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF53837B401 for ; Mon, 14 Jul 2003 08:32:57 -0700 (PDT) Received: from serv1.wallnet.com (server1.wallnet.com [208.225.162.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77D8E43F85 for ; Mon, 14 Jul 2003 08:32:51 -0700 (PDT) (envelope-from timothyk@wallnet.com) Received: (from root@localhost) by serv1.wallnet.com (8.11.5/8.11.5) id h6EFWoX27756; Mon, 14 Jul 2003 11:32:50 -0400 (EDT) (envelope-from timothyk@wallnet.com) Received: from 10.0.1.9 (mts-128.wallnet.com [208.225.162.60]) by serv1.wallnet.com (8.11.5/8.11.5av) with ESMTP id h6EFWlM27729; Mon, 14 Jul 2003 11:32:48 -0400 (EDT) (envelope-from timothyk@wallnet.com) From: Tim Kellers To: Michael Edenfield Date: Mon, 14 Jul 2003 11:32:44 -0400 User-Agent: KMail/1.5.2 References: <20030714133452.11195.qmail@web9602.mail.yahoo.com> <20030714100030.E26064@mts-128.wallnet.com> <20030714141459.GA46586@basement.kutulu.org> In-Reply-To: <20030714141459.GA46586@basement.kutulu.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200307141132.44797.timothyk@wallnet.com> X-Virus-Scanned: by AMaViS perl-11 cc: ports@freebsd.org Subject: Re: portupgrade/make install problem. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jul 2003 15:32:58 -0000 On Monday 14 July 2003 10:14 am, Michael Edenfield wrote: > * Tim Kellers [030714 10:04]: > > Same problem I reported July 12, but with only one of my machines (a > > pentium I router/fileserver). the other three boxes I built from the > > same cvs update (7/11/2003) don't have the problem. > > The problem is that bsd.port.mk is trying to run: > pkg_info -O > to see if the port is already installed. The -O option was only > merged back as far as 4.7, so your 4.6.2 machines are failing at that > point. > > The fix is pretty simple, in bsd.port.mk just do (watch the line > wrap): > > --- bsd.port.mk.5 Fri Jul 11 08:06:04 2003 > +++ bsd.port.mk Mon Jul 14 10:06:00 2003 > @@ -3007,7 +3007,7 @@ > > .if !target(check-already-installed) > check-already-installed: > -.if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER) > +.if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER) && > ${OSVERSION} >= 470000 @${ECHO_MSG} "===> Checking if ${PKGORIGIN} already > installed" @already_installed=`${PKG_INFO} -q -O ${PKGORIGIN} 2> > /dev/null`; \ if [ -n "$${already_installed}" ]; then \ > > --Mike My fileserver is a bit more ill than I thought. I got an error when patching the file: su-2.03# patch bsd.port.mk patchfile Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- bsd.port.mk.5 Fri Jul 11 08:06:04 2003 |+++ bsd.port.mk Mon Jul 14 10:06:00 2003 -------------------------- Patching file bsd.port.mk using Plan A... Hunk #1 failed at 3007. 1 out of 1 hunks failed--saving rejects to bsd.port.mk.rej done The contents of bsd.port.mk.rej: *************** *** 3007,3013 **** .if !target(check-already-installed) check-already-installed: - .if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER) @${ECHO_MSG} "===> Checking if ${PKGORIGIN} already installed" @already_installed=`${PKG_INFO} -q -O ${PKGORIGIN} 2> /dev/null`; \ if [ -n "$${already_installed}" ]; then \ --- 3007,3013 ---- .if !target(check-already-installed) check-already-installed: + .if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER) && ${OSVERSION} >= 470000 @${ECHO_MSG} "===> Checking if ${PKGORIGIN} already installed" @already_installed=`${PKG_INFO} -q -O ${PKGORIGIN} 2> /dev/null`; \ if [ -n "$${already_installed}" ]; then \ So I NFS mounted /usr/ports from the errant fileserver on my laptop, and 10# cd /usr/ports/archivers/nulib && make install The port built and installed without a hitch. uname -a from the troublesome fileserver: FreeBSD 10.0.1.2 4.8-STABLE FreeBSD 4.8-STABLE #1: Fri Jul 11 15:57:18 EDT 2003 timothyk@10.0.1.9:/usr/obj/usr/src/sys/CHANGLING i386 uname -a from the laptop with /usr/ports NFS mounted: FreeBSD mts-128.wallnet.com 4.8-STABLE FreeBSD 4.8-STABLE #10: Fri Jul 11 13:31:14 EDT 2003 timothyk@10.0.1.9:/usr/obj/usr/src/sys/NEMESIS i386 This is nutty Tim Kellers CPE/NJIT