aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-07-03 13:48:25 +0800
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-07-03 13:48:25 +0800
commit44900b87e1fa74474388ff73ae05cdfc92ce4bc1 (patch)
treedd26fabdc6bf4660a9d073e3c6c3f9853f33b7fe /Mk
parentd8f9e671fb043da28b3c69b26bb8354fc108f1f6 (diff)
downloadfreebsd-ports-gnome-44900b87e1fa74474388ff73ae05cdfc92ce4bc1.tar.gz
freebsd-ports-gnome-44900b87e1fa74474388ff73ae05cdfc92ce4bc1.tar.zst
freebsd-ports-gnome-44900b87e1fa74474388ff73ae05cdfc92ce4bc1.zip
pkg2ng is calling directly bsd.pkgng.mk if present which will fail because of the lack of UID.
Define it if not already defined earlier Submitted by: Yar Tikhiy <yar.tikhiy@gmail.com>
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.pkgng.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/bsd.pkgng.mk b/Mk/bsd.pkgng.mk
index 79148791edb3..4d41b1a5f80d 100644
--- a/Mk/bsd.pkgng.mk
+++ b/Mk/bsd.pkgng.mk
@@ -36,6 +36,11 @@ ACTUAL-PACKAGE-DEPENDS?= \
${PKG_QUERY} "%dn: {origin: %do, version: \"%dv\"}" " " ${_LIB_RUN_DEPENDS:C,[^:]*:([^:]*):?.*,\1,:C,${PORTSDIR}/,,} 2>/dev/null || : ; \
fi
+# Redifine pkg2ng calls durectly bsd.pkgng.mk and needs it
+
+.if !defined(UID)
+UID!= ${ID} -u
+.endif
.if !target(fake-pkg)
fake-pkg: