Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2016 20:53:11 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r428429 - head/Mk/Uses
Message-ID:  <201612122053.uBCKrBAG026130@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612122053.uBCKrBAG026130>