From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 82F221381F3 for ; Sat, 15 Jun 2013 16:35:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E9441E097A; Sat, 15 Jun 2013 16:35:09 +0000 (UTC) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DCAA0E0964 for ; Sat, 15 Jun 2013 16:35:08 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id hq4so1105918wib.14 for ; Sat, 15 Jun 2013 09:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type; bh=RQvlFHQyOAAY40hPqhcumf/s13NVnPjQLucAtedaVlw=; b=PJB9DujzdAYkU+Y7PVyafmo7ynXEsYlP2x4QuL2by53aSsY3UFHaTSRLXvVS7YmYVS A/1+dxIXe6osX22lA4UBQN1SsK7+N2ozLdTPh/xtd1OYsDYSI4Z7ZVYh+kvz84uOh5JQ Wm5/w9z7t/RUvMlglKROaypp6PjCEhdwt0pBLfhh1dGJ8lrLJ4bSkuZ8n/TtepVoNe6X MLAAvTDVlELvk+6sKfCNh4X7D9B7/G9jnmzolhaPEqNBACUH0JZrNl8ttuDC2RunsDe2 u8xGF3LuwuV2F6A1wp1eQrrjpCR0qmKALOr4mu2dS0JjfdhGZcJSqzReDJ7hmwG0WV+z 87Pw== X-Received: by 10.180.80.6 with SMTP id n6mr1290628wix.59.1371314107496; Sat, 15 Jun 2013 09:35:07 -0700 (PDT) Received: from localhost (cpc13-broo7-2-0-cust130.14-2.cable.virginmedia.com. [82.9.16.131]) by mx.google.com with ESMTPSA id fs8sm10587883wib.0.2013.06.15.09.35.06 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 15 Jun 2013 09:35:07 -0700 (PDT) Date: Sat, 15 Jun 2013 17:35:02 +0100 From: Ciaran McCreesh To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [RFC] SRC_URI behaviour Message-ID: <20130615173502.0fc279a9@googlemail.com> In-Reply-To: <51BC2C55.7010506@mva.name> References: <51BC2C55.7010506@mva.name> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/ZC1d9_ZvmH3psYkmUt6ni+H"; protocol="application/pgp-signature" X-Archives-Salt: c483c335-f6c3-490e-8081-d4bd2aa9bb8f X-Archives-Hash: 63a4b0c1b507aec6a10f13366670e9f4 --Sig_/ZC1d9_ZvmH3psYkmUt6ni+H Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sat, 15 Jun 2013 15:56:53 +0700 "Vadim A. Misbakh-Soloviov" wrote: > Sometimes I find myself in a situation, when I need to use both > RESTRICT=3Dfetch for the main distfile and allow fetch for additional > ones (langpacks, extensions and so on). > Sometimes it is even impossible to split that additions into separate > package, since they might want to replace some file (for example, Dear > Esther's translations). >=20 > So, in that case, I think, it'd be useful to change SRC_URI > behaviour a bit: >=20 > for example: >=20 > SRC_URI=3D" > restrict://dearesther-linux-06082013-bin #fetch restrict > linguas_ru? > ( http://www.dear-esther.com/translations/DE_Russian.rar ) > linguas_hu? > ( http://www.dear-esther.com/translations/DE_Hungarian.rar ) > linguas_hu2? > ( http://www.dear-esther.com/translations/DE_Hungarian2.rar ) " > Alternatively it can be even: >=20 > SRC_URI=3D" > restrict+http://foo.bar/moo-123.run # mirror-restrict or > specifying a link for fetch-restrict (like for oracle-jdk) Syntax-wise, one of the proposals for dealing with the explosion of *DEPEND variables is a single variable plus labels. The same syntax could be used here, so you'd do: SRC_URI=3D"http://blah/blah restrict: http://blah/other" and so on, with the usual parentheses for restricting scope of labels. --=20 Ciaran McCreesh --Sig_/ZC1d9_ZvmH3psYkmUt6ni+H Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (GNU/Linux) iEYEARECAAYFAlG8l7gACgkQ96zL6DUtXhFlyQCePMdmza5GHszDJuDd20OsA1hO i3QAoNZn1Jt3PyivuHMOwdYTKyTHex0O =cN2v -----END PGP SIGNATURE----- --Sig_/ZC1d9_ZvmH3psYkmUt6ni+H--