Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jul 2003 10:11:05 -0400 (EDT)
From:      Michael Edenfield <kutulu@kutulu.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/54475: due to changes in bsd.port.mk, ports no longer install on pre-4.7 releases.	
Message-ID:  <20030714141105.918DAA9A9@basement.kutulu.org>
Resent-Message-ID: <200307141420.h6EEKGvE063045@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         54475
>Category:       ports
>Synopsis:       due to changes in bsd.port.mk, ports no longer install on pre-4.7 releases.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 14 07:20:16 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael Edenfield
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD basement.kutulu.org 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Wed Jul 9 16:49:03 EDT 2003 root@basement.kutulu.org:/usr/obj/usr/src/sys/GATEWAY i386


	
>Description:
bsd.port.mk now performs a check to see if the package is installed, 
using the pkg_info -O option.  This option was not introduced into 
FreeBSD until 5.x and was only MFC'd back as far as 4.7-RELEASE.

>How-To-Repeat:
Try to build any new port on FreeBSD 4.6.x or earlier.
>Fix:
--- 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 \

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030714141105.918DAA9A9>