Date: Mon, 29 Jun 2015 11:43:34 +0930 From: Shane Ambler <FreeBSD@ShaneWare.Biz> To: Jonathan Anderson <jonathan@FreeBSD.org> Cc: freebsd-ports@freebsd.org Subject: Re: USE_GITHUB and submodules Message-ID: <5590A9CE.80208@ShaneWare.Biz> In-Reply-To: <555DD44E.5040405@FreeBSD.org> References: <555B84AA.30901@FreeBSD.org> <555BD95A.6010706@ShaneWare.Biz> <555C8C68.9060705@gmail.com> <555DD44E.5040405@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>> Jonathan Anderson <mailto:jonathan.robert.anderson@gmail.com> >> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5590A9CE.80208>