svn commit: r322320 - head/Mk

Bryan Drewery bdrewery at FreeBSD.org
Fri Jul 5 12:29:35 UTC 2013


Author: bdrewery
Date: Fri Jul  5 12:29:35 2013
New Revision: 322320
URL: http://svnweb.freebsd.org/changeset/ports/322320

Log:
  - Fix pkg2ng due to UID/ID not being defined.
    Pkg-1.1.4 will define UID=0 when sourcing bsd.pkgng.mk directly.
    This extra defined(UID) can eventually be removed, but is needed
    for backwards compatibility for now.
  
  Reported by:	uqs
  Reviewed by:	bapt
  With hat:	portmgr

Modified:
  head/Mk/bsd.pkgng.mk

Modified: head/Mk/bsd.pkgng.mk
==============================================================================
--- head/Mk/bsd.pkgng.mk	Fri Jul  5 12:07:16 2013	(r322319)
+++ head/Mk/bsd.pkgng.mk	Fri Jul  5 12:29:35 2013	(r322320)
@@ -36,12 +36,6 @@ ACTUAL-PACKAGE-DEPENDS?= \
 		${PKG_QUERY} "%dn: {origin: %do, version: \"%dv\"}" " " ${_LIB_RUN_DEPENDS:C,[^:]*:([^:]*):?.*,\1,:C,${PORTSDIR}/,,} 2>/dev/null || : ; \
 	fi
 
-# Redefine. pkg2ng calls directly 'make -f bsd.pkgng.mk' which needs UID to be defined
-
-.if !defined(UID)
-UID!=	${ID} -u
-.endif
-
 .if !target(fake-pkg)
 fake-pkg:
 .if !defined(NO_PKG_REGISTER)
@@ -267,7 +261,7 @@ check-already-installed:
 
 .if !target(deinstall)
 deinstall:
-.if ${UID} != 0 && !defined(INSTALL_AS_USER)
+.if defined(UID) && ${UID} != 0 && !defined(INSTALL_AS_USER)
 	@${ECHO_MSG} "===>  Switching to root credentials for '${.TARGET}' target"
 	@cd ${.CURDIR} && \
 		${SU_CMD} "${MAKE} ${.TARGET}"


More information about the svn-ports-all mailing list