From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-dev+bounces-82645-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 1850B1396D9
	for <garchives@archives.gentoo.org>; Thu, 16 Nov 2017 13:54:57 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id F0981E0F4D;
	Thu, 16 Nov 2017 13:54:52 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(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 A36D6E0F0C
	for <gentoo-dev@lists.gentoo.org>; Thu, 16 Nov 2017 13:54:52 +0000 (UTC)
Received: from thinkpad.fritz.box (p549DC46E.dip0.t-ipconnect.de [84.157.196.110])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: soap)
	by smtp.gentoo.org (Postfix) with ESMTPSA id 9176B33BF0B;
	Thu, 16 Nov 2017 13:54:50 +0000 (UTC)
Message-ID: <1510840486.24883.0.camel@gentoo.org>
Subject: Re: [gentoo-dev] [PATCH] out-of-source.eclass: A new eclass to help
 with out-of-source builds
From: David Seifert <soap@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: =?UTF-8?Q?Micha=C5=82_G=C3=B3rny?= <mgorny@gentoo.org>
Date: Thu, 16 Nov 2017 14:54:46 +0100
In-Reply-To: <20171116134818.13899-1-mgorny@gentoo.org>
References: <20171116134818.13899-1-mgorny@gentoo.org>
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.24.5 
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
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Archives-Salt: 56c73bf3-f703-40fd-9f6a-52111e165c55
X-Archives-Hash: dac414959beb2e2b373ae025d1761f68

On Thu, 2017-11-16 at 14:48 +0100, Michał Górny wrote:
> // NB: I'm not sure if I haven't submitted it already but that was
> // a long time ago, so let's try again. Requested by soap.
> 
> The out-of-source.eclass is a simple multilib-minimal-style wrapper
> to perform out of source builds of autotools (and other) packages. It
> is
> mostly derived from the function served in the past by autotools-
> utils
> since a number of developers found it useful. However, in order to
> avoid
> the mistakes of autotools-utils, it is meant to be focused on a
> single
> feature and have a better API.
> 
> This eclass has two use cases:
> 
> 1. Ensuring that packages are tested with out-of-source builds.
> 
> 2. Improving consistency between multilib and non-multilib packages.
> 
> In the most basic form, it just redefines the phases from
> src_configure()
> to src_install() with out-of-source wrappers. However, each phase can
> be overriden using my_src_*() sub-phase that is run inside build dir
> (alike multilib_src_*() in multilib-minimal). There is also
> my_src_install_all() for the trailing source-dir actions.

+1