Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Dec 2017 11:55:15 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r455642 - head/Mk
Message-ID:  <201712061155.vB6BtFIe081411@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Wed Dec  6 11:55:15 2017
New Revision: 455642
URL: https://svnweb.freebsd.org/changeset/ports/455642

Log:
  Add a warning to try and prevent people from mis-using USE_GITHUB.
  
  Sponsored by:	Absolight

Modified:
  head/Mk/bsd.port.mk   (contents, props changed)

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Wed Dec  6 09:57:32 2017	(r455641)
+++ head/Mk/bsd.port.mk	Wed Dec  6 11:55:15 2017	(r455642)
@@ -1666,6 +1666,9 @@ CONFIGURE_ENV+=		PATH=${PATH}
 .endif
 
 .if !defined(IGNORE_MASTER_SITE_GITHUB) && defined(USE_GITHUB) && empty(USE_GITHUB:Mnodefault)
+.if defined(WRKSRC)
+DEV_WARNING+=	"You are using USE_GITHUB and WRKSRC is set which is wrong.  Set GH_PROJECT correctly, or set WRKSRC_SUBDIR instead."
+.endif
 WRKSRC?=		${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME_EXTRACT}
 .endif
 # If the distname is not extracting into a specific subdirectory, have the



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