svn commit: r428429 - head/Mk/Uses

Rene Ladan rene at FreeBSD.org
Mon Dec 12 20:53:13 UTC 2016


Author: rene
Date: Mon Dec 12 20:53:11 2016
New Revision: 428429
URL: https://svnweb.freebsd.org/changeset/ports/428429

Log:
  If KERN_DEBUGDIR happens to be empty, the port would try to install
  files twice to the same location leading to make(1) warnings.
  
  Reported by:	marino
  Pointy hat:	rene (r428333)

Modified:
  head/Mk/Uses/kmod.mk

Modified: head/Mk/Uses/kmod.mk
==============================================================================
--- head/Mk/Uses/kmod.mk	Mon Dec 12 20:23:57 2016	(r428428)
+++ head/Mk/Uses/kmod.mk	Mon Dec 12 20:53:11 2016	(r428429)
@@ -41,12 +41,16 @@ KERN_DEBUGDIR?=	${DEBUGDIR}
 _INCLUDE_USES_KMOD_POST_MK=	yes
 
 _USES_install+=	290:${STAGEDIR}${KMODDIR}
+.if !empty(KERN_DEBUGDIR)
 _USES_install+=	291:${STAGEDIR}${KERN_DEBUGDIR}${KMODDIR}
+.endif
 
 ${STAGEDIR}${KMODDIR}:
 	@${MKDIR} ${.TARGET}
 
+.if !empty(KERN_DEBUGDIR)
 ${STAGEDIR}${KERN_DEBUGDIR}${KMODDIR}:
 	@${MKDIR} ${.TARGET}
+.endif
 
 .endif


More information about the svn-ports-all mailing list