From owner-freebsd-ports@FreeBSD.ORG Tue May 19 19:07:31 2015 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C8E14D89; Tue, 19 May 2015 19:07:31 +0000 (UTC) Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5E6D017BD; Tue, 19 May 2015 19:07:31 +0000 (UTC) Received: by wghq2 with SMTP id q2so28791618wgh.1; Tue, 19 May 2015 12:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=F6WZAuO3dpMWP9dHl5/6aR+DpPna3uXwFYkZiKK2DIo=; b=rIOBH9dKSRTCW0zBqbkyBNZilsOiZfPL1IRHar7riaTHPMFNXPq3FQdgWV0zqyjO2i 48+aCdgdkJ0mCe8IkrZwvRTduzWYslYikIW0QbuSdjTwReAAU49zKAdzcMZVgOWKcThu e/58acgVzGQ2GI5eXM0MKGNUbTdi5bSb9s+ekGXmGFr6cLuJrE6keX4M+x4WJfbtDhql C9emOeYAQnmb1tpD38dcJY3cbhxdVWXU/Rt8oBdhnEGuCx8yksvkCWXAnQFHSdBLSh+w 30RhZpfEyKsNJ00C1p7y5NXEQyMqCf+QaLDAA2wFyGP2oawO1B5yjWWRu2U9911VU0XR beDA== X-Received: by 10.194.122.200 with SMTP id lu8mr56665234wjb.30.1432062448949; Tue, 19 May 2015 12:07:28 -0700 (PDT) Received: from ivaldir.etoilebsd.net ([2001:41d0:8:db4c::1]) by mx.google.com with ESMTPSA id dg8sm23086003wjc.9.2015.05.19.12.07.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 May 2015 12:07:27 -0700 (PDT) Sender: Baptiste Daroussin Date: Tue, 19 May 2015 21:07:25 +0200 From: Baptiste Daroussin To: Jonathan Anderson Cc: freebsd-ports@freebsd.org Subject: Re: USE_GITHUB and submodules Message-ID: <20150519190725.GF52236@ivaldir.etoilebsd.net> References: <555B84AA.30901@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="z0eOaCaDLjvTGF2l" Content-Disposition: inline In-Reply-To: <555B84AA.30901@FreeBSD.org> User-Agent: Mutt/1.5.23 (2014-03-12) 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: Tue, 19 May 2015 19:07:31 -0000 --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--