portupgrade/make install problem.

Tim Kellers timothyk at wallnet.com
Mon Jul 14 07:36:21 PDT 2003


Thanks Mike, I'll give it a shot and report back.

I'm still wondering why it is only the P I box that is disturbed, 
is bsd.port.mk not check-out in a cvs update?

Tim Kellers
CPE/NJIT


On Monday 14 July 2003 10:14 am, Michael Edenfield wrote:
> * Tim Kellers <timothyk at mts-128.wallnet.com> [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 <port origin>
> 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



More information about the freebsd-ports mailing list