From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-89572-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 0B771138334
	for <garchives@archives.gentoo.org>; Sat,  7 Dec 2019 08:47:08 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 83141E0827;
	Sat,  7 Dec 2019 08:47:02 +0000 (UTC)
Received: from cloudsdale.the-delta.net.eu.org (cloudsdale.the-delta.net.eu.org [IPv6:2a01:4f8:1c17:4b6d::1])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id EF87FE07F2
	for <gentoo-dev@lists.gentoo.org>; Sat,  7 Dec 2019 08:47:00 +0000 (UTC)
Received: 
	by cloudsdale.the-delta.net.eu.org (OpenSMTPD) with ESMTP id e79bfed8
	for <gentoo-dev@lists.gentoo.org>;
	Sat, 7 Dec 2019 08:46:58 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=hacktivis.me; h=date
	:from:to:message-id:references:mime-version:content-type
	:in-reply-to; s=20190711_142157; bh=saZAoodSoJc7OPrdQstVbsaPmmnL
	oTzNMV/cyt1qL/I=; b=UXTfh2gSshQdjTQ0cP7CU6Jm3IoAscTm4kLp8Ezhh92e
	hKrF6iGJIMsfttZhEbOSpMiYYpH6CZpUOnwzreHpUecQHV6ggvOUJrF4iEKKQLTK
	sb9pZBuTAV5buOP6roUtuRC5Llm9K5/0dC99fQO5yepiw0GRXzCoWsb0ZqRCdD3S
	mrbtKbAE8eZ3KJd4Q6EX506lcdA1I3L3Z2m9wWnm3UtSKJfSCSx153n33tAvlmE6
	1TNglAkOm5MYhkoNq8cWf6CI2JS2K3O+NB0AUHXgAr31FZLwOfim9r/1lLVY9dW8
	uKh/A0I77esxNKZyXoMvLFl4qjF3zWixrCaj8iE/d6oFr10Myc5xabVq/RBs405D
	jmb7PQE28GMWQtJo8hy7ATiTo/GEIjlp6RaoNlp646a8jPz011u7Jf2ToLmkI2/+
	pUWHZCOguuiY7mkJdJ8WBB2k4xBqwYLtFxjjlN5vjoQQGG7seOBYJr8lFVMYXRc4
	3CIAwFp2AarahyHkQZnWth+OWFXYBPjR6PSg4eUX17tjnrcRLi/bxCcTLRWXtZOf
	tCn9S3VlO1k6Cb5qH8WyzcrInhieSctELllNiV+F1k8T+esdWlbxkhFvi7s6f4UW
	Px98HYQzpMjJjbZ4gIxgeVWzcZX0IHQVzy3p1w7McsY/f+Pz55sTbITVaIhz+Vg=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=hacktivis.me; h=date:from:to
	:message-id:references:mime-version:content-type:in-reply-to; q=
	dns; s=20190711_142157; b=Y3Ps5G2v7ja0PonVfSXHBJFDke+DZQ2XhTI1uM
	8TD1hx9EyzNOZYTHwzwgrgFQFWfmN/LA3N0ByJLm2ZIL8j1xxBYrwSAqqwm12xL2
	r/aEcf2cldOd7eacJ4xjUr9lzV349zWtcmopZfLuPIiEH11n0UG90o9XGWl4WnTT
	9XV50QkndlDKhIpSKD6bpHe+EdmPbGGe9DHKd+F761+M8WKvODEi+0iZe9crwr7r
	czNirZl5jyPlv1TyB3rsUTpKQjkNPQ/p/7pLuEkvH0u1OwkhDu4qKkMKnNG2pU7R
	2iwQa4tfGab+uF+4fbKXUcdTujLjq+cG2aVXQJSSIPh1lWc86aqD2/Adpl6CVZHs
	sHCMngcNiVW19j0sCrK/ArMAlGZULKhlSpisHLUCBuC+KXIrG7iUk8fXnaur7paN
	B9g2VKPAD5DLFX0VhXZU/mR8jnSEBH9gUAQDeWh4BtIrg5RrLpYQ/AenuhGFPELG
	TlCYEdQZ36QFRCVuSo6TLO+iNqX1J4lYU2+k+jcD7SfP22IdqAQLETWhIENTfXrd
	uas69I71pOfWbIQTpZqYWqLxsQCXFExf6HjrBM/6cquFhWoOKUq7SSmGmaNAvsi9
	jP3QBMl+a+q7v7CK7cDWetbP9Yo1Qb0hBNcEYB7LCNqxOnpRwc3rJTegURnRwxjL
	eJ5Nc=
Received: from localhost (cloudsdale.the-delta.net.eu.org [local])
	by cloudsdale.the-delta.net.eu.org (OpenSMTPD) with ESMTPA id 50669491
	for <gentoo-dev@lists.gentoo.org>;
	Sat, 7 Dec 2019 08:46:58 +0000 (UTC)
Date: Sat, 7 Dec 2019 09:46:58 +0100
From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] [PATCH] cargo.eclass: use verbose cargo invocations
Message-ID: <20191207084658.GB10778@cloudsdale.the-delta.net.eu.org>
References: <20191206200931.22347-1-gyakovlev@gentoo.org>
 <20191206234438.63218eb2@sf>
 <4427138.OatnvYpNUp@ws>
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@lists.gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4427138.OatnvYpNUp@ws>
User-Agent: Mutt/1.10.1 (2018-07-13)
X-Archives-Salt: 73622505-d676-44f7-ba12-bf09c51baa30
X-Archives-Hash: 36381d354212ce1514b50024228d9a98

[2019-12-06 16:16:32-0800] Georgy Yakovlev:
> On Friday, December 6, 2019 3:44:38 PM PST Sergei Trofimovich wrote:
> > On Fri,  6 Dec 2019 12:09:31 -0800
> > Georgy Yakovlev <gyakovlev@gentoo.org> wrote:
> > > Default output just prints crate name.
> > > With -vv we can see all cargo options and rustc args.
> > > 
> > > Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
> > > ---
> > 
> > While at it I also suggest adding equivalent of
> > econf's/emake's ${EXTRA_ECONF} and ${EXTRA_EMAKE}
> > to allow users to inject arbitrary stuff. For example
> > to sneak in '-Z' options globally.
> > 
> > Say, ${CARGO_BUILD_EXTRA},  ${CARGO_INSTALL_EXTRA},
> > ${CARGO_TEST_EXTRA}.
> > 
> 
> Yeah, it's on my to-do list for this eclass.
> 1 question tho, should it come after "$@" or before? Do you use it?
> I know cargo can be picky about order and some ebuilds rely on passing params 
> in phase funcs.

I think it should go after `cargo {build,install,test}` and before any 
non-option argument, similar to how POSIX getopt(3) behaves (but that GNU 
breaks without setting POSIXLY_CORRECT=1).