From owner-freebsd-ports@FreeBSD.ORG Mon Jul 14 07:14:55 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 B7B5037B410 for ; Mon, 14 Jul 2003 07:14:55 -0700 (PDT) Received: from basement.kutulu.org (pcp03610121pcs.longhl01.md.comcast.net [68.49.239.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5264A43FE1 for ; Mon, 14 Jul 2003 07:14:49 -0700 (PDT) (envelope-from kutulu@kutulu.org) Received: by basement.kutulu.org (Postfix, from userid 1001) id 681B5A9A9; Mon, 14 Jul 2003 10:14:59 -0400 (EDT) Date: Mon, 14 Jul 2003 10:14:59 -0400 From: Michael Edenfield To: Tim Kellers Message-ID: <20030714141459.GA46586@basement.kutulu.org> Mail-Followup-To: Tim Kellers , Daryl Chance , ports@freebsd.org References: <20030714133452.11195.qmail@web9602.mail.yahoo.com> <20030714100030.E26064@mts-128.wallnet.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <20030714100030.E26064@mts-128.wallnet.com> X-Mailer: Mutt http://www.mutt.org/ X-Accept-Language: en X-PGP-Key: http://www.kutulu.org/pgp/kutulu.asc X-PGP-Fingerprint: 1CE0 3C31 7013 D529 406D 37DC 09CC CD84 A46C 878F User-Agent: Mutt/1.5.4i cc: ports@freebsd.org cc: Daryl Chance 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 14:14:56 -0000 --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tim Kellers [030714 10:04]: >=20 > 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 =20 to see if the port is already installed. The -O option was only=20 merged back as far as 4.7, so your 4.6.2 machines are failing at that=20 point. =20 The fix is pretty simple, in bsd.port.mk just do (watch the line=20 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) && ${OSVERSI= ON} >=3D 470000 @${ECHO_MSG} "=3D=3D=3D> Checking if ${PKGORIGIN} already = installed" @already_installed=3D`${PKG_INFO} -q -O ${PKGORIGIN} 2> /de= v/null`; \ if [ -n "$${already_installed}" ]; then \ --Mike --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/ErriCczNhKRsh48RAr/KAKCtubL9QKa2WjDluLAeEx9On5iTOwCfXi30 bVd4hiyXOwVvPuWvgXIPC/o= =A0L4 -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--