ports/91727: force pkg_install tools from ports on FreeBSD 4.10 and older
Pav Lucistnik
pav at FreeBSD.org
Thu Jan 12 23:30:05 UTC 2006
>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 at 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:
More information about the freebsd-ports-bugs
mailing list