aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/Uses
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2015-06-04 19:53:06 +0800
committerbapt <bapt@FreeBSD.org>2015-06-04 19:53:06 +0800
commit35db4856463dce8275c017efc3108d30a67dbe88 (patch)
treef28e04bcb3b43e575eb210c90854c73adcf73189 /Mk/Uses
parent142114992e5e049d801303381b6052d39d703c08 (diff)
downloadfreebsd-ports-gnome-35db4856463dce8275c017efc3108d30a67dbe88.tar.gz
freebsd-ports-gnome-35db4856463dce8275c017efc3108d30a67dbe88.tar.zst
freebsd-ports-gnome-35db4856463dce8275c017efc3108d30a67dbe88.zip
Always define GID, this fixes build of uidfix when building as root
Reported by: marino (based on a sendmail failure) Pointyhat to: bapt
Diffstat (limited to 'Mk/Uses')
-rw-r--r--Mk/Uses/uidfix.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Uses/uidfix.mk b/Mk/Uses/uidfix.mk
index cbd284c8ba7b..d4d436e9dde9 100644
--- a/Mk/Uses/uidfix.mk
+++ b/Mk/Uses/uidfix.mk
@@ -10,10 +10,10 @@
.if !defined(_INCLUDE_USES_UIDFIX_MK)
_INCLUDE_USES_UIDFIX_MK= yes
-.if ${UID} != 0
.if !defined(GID)
GID!= id -g
.endif
+.if ${UID} != 0
MAKE_ENV+= BINOWN=${UID} SHAREOWN=${UID} CONFOWN=${UID} LIBOWN=${UID}
MAKE_ENV+= BINGRP=${GID} SHAREGRP=${GID} CONFGRP=${GID} LIBGRP=${GID}
BINOWN= ${UID}