Date: Tue, 19 May 2015 21:07:25 +0200 From: Baptiste Daroussin <bapt@FreeBSD.org> To: Jonathan Anderson <jonathan@FreeBSD.org> Cc: freebsd-ports@freebsd.org Subject: Re: USE_GITHUB and submodules Message-ID: <20150519190725.GF52236@ivaldir.etoilebsd.net> In-Reply-To: <555B84AA.30901@FreeBSD.org> References: <555B84AA.30901@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--z0eOaCaDLjvTGF2l Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 19, 2015 at 04:14:58PM -0230, Jonathan Anderson wrote: > Hi all, >=20 > Is there a mechanism for using the USE_GITHUB variable in a port that > depends on submodules? For instance, the Rust port requires an embedded > (and modified) version of LLVM, which it includes as a submodule. Right > now I'm attempting to add the following to a `post-extract` rule: >=20 > post-extract: > cd ${WRKSRC} && \ > git init && \ > git remote add origin https://github.com/${GH_ACCOUNT}/${PORTNAME} &&= \ > git fetch && \ > git reset --hard ${PORTVERSION} && \ > git submodule init && \ > git submodule update --recursive >=20 > But this seems quite hackish! It would be great if submodules Just > Worked... but alternatively, is there a USE_GITHUB_URL or somesuch that > would check things out via Git instead of tarball to save me the `git > init` through `git reset` steps? >=20 > Cheers, We do need something we can make a digest of hence no checking out from git= or so. Your mechanism will just fail when build on the cluster :) Best regards, Bapt --z0eOaCaDLjvTGF2l Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlVbie0ACgkQ8kTtMUmk6EwfagCgsvGlPEMlTo6BQyGHMU1/J5Ay COcAnA/i1D3pJnNxrgGbLC8I8ZWUJAq6 =geR6 -----END PGP SIGNATURE----- --z0eOaCaDLjvTGF2l--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150519190725.GF52236>