From owner-svn-ports-head@freebsd.org Thu Apr 12 11:11:25 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9D5BF8AD8B; Thu, 12 Apr 2018 11:11:25 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C934845BD; Thu, 12 Apr 2018 11:11:25 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7781E23E1; Thu, 12 Apr 2018 11:11:25 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w3CBBPLM053067; Thu, 12 Apr 2018 11:11:25 GMT (envelope-from mat@FreeBSD.org) Received: (from mat@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w3CBBP0x053066; Thu, 12 Apr 2018 11:11:25 GMT (envelope-from mat@FreeBSD.org) Message-Id: <201804121111.w3CBBP0x053066@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mat set sender to mat@FreeBSD.org using -f From: Mathieu Arnold Date: Thu, 12 Apr 2018 11:11:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r467145 - head/Mk X-SVN-Group: ports-head X-SVN-Commit-Author: mat X-SVN-Commit-Paths: head/Mk X-SVN-Commit-Revision: 467145 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Apr 2018 11:11:26 -0000 Author: mat Date: Thu Apr 12 11:11:25 2018 New Revision: 467145 URL: https://svnweb.freebsd.org/changeset/ports/467145 Log: Try and prevent people from adding github archive urls. If you use the archive URL directly, you end up having non unique distfiles named 0.9.5.tar.gz or v2.2.2.tar.gz, and soon, another port ends up having the same version, and boom. Reviewed by: bdrewery Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D15039 Modified: head/Mk/bsd.sites.mk (contents, props changed) Modified: head/Mk/bsd.sites.mk ============================================================================== --- head/Mk/bsd.sites.mk Thu Apr 12 11:07:37 2018 (r467144) +++ head/Mk/bsd.sites.mk Thu Apr 12 11:11:25 2018 (r467145) @@ -343,6 +343,11 @@ MASTER_SITE_GENTOO+= \ ftp://gentoo.inode.at/source/%SUBDIR%/ .endif +# Keep this before USE_GITHUB +.if !empty(MASTER_SITES:M*/github.com/*/archive/*) +DEV_WARNING+= "MASTER_SITES contains ${MASTER_SITES:M*/github.com/*/archive/*}, please use USE_GITHUB instead." +.endif + .if !defined(IGNORE_MASTER_SITE_GITHUB) # # In order to use GitHub your port must define USE_GITHUB and the following