Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2006 00:23:01 +0100 (CET)
From:      Pav Lucistnik <pav@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/91727: force pkg_install tools from ports on FreeBSD 4.10 and older
Message-ID:  <200601122323.k0CNN15Z067731@pav.hide.vol.cz>
Resent-Message-ID: <200601122330.k0CNU4Cc031188@freefall.freebsd.org>

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

>Number:         91727
>Category:       ports
>Synopsis:       force pkg_install tools from ports on FreeBSD 4.10 and older
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 12 23:30:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Pav Lucistnik
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD pav.hide.vol.cz 6.0-STABLE FreeBSD 6.0-STABLE #0: Mon Jan 2 11:52:08 CET 2006 root@pav.hide.vol.cz:/usr/obj/usr/src/sys/GENERIC i386

>Description:
Certain ports system features, namely versioned dependencies, which are coming
into wide use, do not work with pkg_install tools included in base system in
FreeBSD 4.10 and older.  Here is a patch that installs fresh pkg_install tools
from the ports collection on affected systems.  It's basically adapted older
version of same thing which was done for 4.6.
>How-To-Repeat:
>Fix:

--- bpm-pkg_compat begins here ---
--- bsd.port.mk.orig	Tue Nov  8 10:53:00 2005
+++ bsd.port.mk	Thu Jan 12 13:50:09 2006
@@ -2026,7 +2026,11 @@
 PORTDIRNAME?=	${_PORTDIRNAME}
 PKGORIGIN?=		${PKGCATEGORY}/${PORTDIRNAME}
 
-.if exists(${LOCALBASE}/sbin/pkg_info)
+
+.if (${OSVERSION} < 491101 && ${PKGORIGIN} != "sysutils/pkg_install") || exists(${LOCALBASE}/sbin/pkg_info)
+.if ${OSVERSION} < 491101 && ${PKGORIGIN} != "sysutils/pkg_install"
+EXTRACT_DEPENDS+=	${LOCALBASE}/sbin/pkg_info:${PORTSDIR}/sysutils/pkg_install
+.endif
 PKG_CMD?=		${LOCALBASE}/sbin/pkg_create
 PKG_ADD?=		${LOCALBASE}/sbin/pkg_add
 PKG_DELETE?=	${LOCALBASE}/sbin/pkg_delete
--- bpm-pkg_compat ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



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