From owner-freebsd-ports@freebsd.org Mon Jun 29 02:20:22 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74B5798CB5B for ; Mon, 29 Jun 2015 02:20:22 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl6.internode.on.net (ipmail06.adl6.internode.on.net [150.101.137.145]) by mx1.freebsd.org (Postfix) with ESMTP id 81E0418BB; Mon, 29 Jun 2015 02:20:20 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp14-2-7-211.lns21.adl2.internode.on.net (HELO leader.local) ([14.2.7.211]) by ipmail06.adl6.internode.on.net with ESMTP; 29 Jun 2015 11:43:37 +0930 Message-ID: <5590A9CE.80208@ShaneWare.Biz> Date: Mon, 29 Jun 2015 11:43:34 +0930 From: Shane Ambler User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: Jonathan Anderson CC: freebsd-ports@freebsd.org Subject: Re: USE_GITHUB and submodules References: <555B84AA.30901@FreeBSD.org> <555BD95A.6010706@ShaneWare.Biz> <555C8C68.9060705@gmail.com> <555DD44E.5040405@FreeBSD.org> In-Reply-To: <555DD44E.5040405@FreeBSD.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2015 02:20:22 -0000 >> Jonathan Anderson >> May 20, 2015 at 11:00 AM >> Thanks everybody for the input! With a security hat on, I definitely concur >> with the policy of no fetching outside of fetch and of requiring >> reproducibility/verifiability (e.g., commit hashes). With my >> getting-this-darn-port-updated hat, however... :) >> >> I think that I'll try to go with Shane's solution, if others concur that it's >> a good idea. I don't want to create a rust-llvm port, since Rust's customized >> version of LLVM isn't much good outside of Rust, it doesn't expose any >> external libraries and it's intended to eventually go away. So, until GitHub >> implements the "give me a tarball with all of the submodules" feature, I might >> try hacking up MASTER_SITES as Shane suggests. >> In case you missed it this was changed shortly after the last email, see http://leader/viewvc/viewvc.cgi/FreeBSD-ports?view=revision&revision=387742 If you follow the link in the comments to review.freebsd.org you can find some examples of ports updated to this change. One catch that may either change or become documented is that one item must be in the DEFAULT group, which can be implied by not giving it a group name. Using this also gives you multiple WRKSRC_* definitions eg using the group name addons will let you use ${WRKSRC_addons} in custom steps. This leads to USE_GITHUB= yes GH_ACCOUNT= sambler \ sambler:addons \ sambler:contrib \ sambler:trans GH_PROJECT= myblender \ myblenderaddons:addons \ myblendercontrib:contrib \ myblendertranslations:trans GH_TAGNAME= sambler-${PORTVERSION}.${PORTREVISION} \ addons-${PORTVERSION}.${PORTREVISION}:addons \ contrib-${PORTVERSION}.${PORTREVISION}:contrib \ translate-${PORTVERSION}.${PORTREVISION}:trans and further down - post-extract: @${MV} ${WRKSRC_trans}/* ${WRKSRC}/release/datafiles/locale/ @${MV} ${WRKSRC_addons}/* ${WRKSRC}/release/scripts/addons/ @${MV} ${WRKSRC_contrib}/* ${WRKSRC}/release/scripts/contrib/ -- FreeBSD - the place to B...Software Developing Shane Ambler