diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -1615,9 +1615,12 @@ PKG_NOTE_flavor= ${FLAVOR} . endif +# GIT_CEILING_DIRECTORIES prevents ports that try to find their version +# using git from finding the ports tree's git repository. WRK_ENV+= HOME=${WRKDIR} \ MACHINE_ARCH=${MACHINE_ARCH} \ PWD="$${PWD}" \ + GIT_CEILING_DIRECTORIES=${WRKDIR:H} \ __MAKE_CONF=${NONEXISTENT} . for e in OSVERSION PATH TERM TMPDIR \ UNAME_b UNAME_i UNAME_K UNAME_m UNAME_n \