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 59B6F198005 for ; Sun, 10 Mar 2013 10:16:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C4B4FE064E; Sun, 10 Mar 2013 10:16:28 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DFFBCE0642 for ; Sun, 10 Mar 2013 10:16:27 +0000 (UTC) Received: from pomiocik.lan (77-255-9-250.adsl.inetia.pl [77.255.9.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id A9EB033BF5F; Sun, 10 Mar 2013 10:16:25 +0000 (UTC) Date: Sun, 10 Mar 2013 11:16:44 +0100 From: =?UTF-8?B?TWljaGHFgiBHw7Nybnk=?= To: gentoo-dev@lists.gentoo.org Cc: hasufell@gentoo.org, python@gentoo.org Subject: [gentoo-dev] [PATCHES] multibuild.eclass: custom phase function helpers Message-ID: <20130310111644.0840d935@pomiocik.lan> Organization: Gentoo X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.16; 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-SHA512; boundary="Sig_/M8BJT9Y8ws+tXXpEJBKN2ki"; protocol="application/pgp-signature" X-Archives-Salt: 32c0f470-4f35-40f7-80e0-4f50d192cf10 X-Archives-Hash: cf5f46112b788742e2cb8ba8c708dc57 --Sig_/M8BJT9Y8ws+tXXpEJBKN2ki Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, distutils-r1 (and previously python-distutils-ng) was using custom phase functions for a while. Recently, hasufell added multilib-minimal which does the same. Since in both cases the custom functions are closely related to building multiple variants of the package, I'm thinking of adding a few helper functions to the multibuild.eclass. The framework I'm suggesting will make the custom phase functions behave similarly to regular ones. Most importantly, eclasses will be provided with a function to 'export' them. I'm sending the following patches in reply to this thread: 1) introduces two functions to handle phases: - multibuild_export_phases -- which exports the listed phases for current eclass, - multibuild_get_phase_function -- which finds and prints the best handler for named phase. The export/find logic follows one used for regular phases. If function named ${phase} is declared, it is used. Otherwise, the function exported by most recent eclass is used. 2) uses the new functions in distutils-r1, 3-4) general cleanup of multilib-minimal to make it suitable for conversion, 5) uses the new functions in multilib-minimal, 6) runs multilib_src_configure() in parallel to save time, 7) makes autotools-multilib reuse multilib-minimal through exporting sub-phase functions. Comments? Questions? --=20 Best regards, Micha=C5=82 G=C3=B3rny --Sig_/M8BJT9Y8ws+tXXpEJBKN2ki Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQJ8BAEBCgBmBQJRPF2WXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RUJGMjBGOTk2RkIzQzIyQ0M2RkNBNDBC QUJGMUQ1RkY4QzgxMTBBAAoJELq/HV/4yBEKjvkQAOxsV8FsoDm+eAlwItDloqwa jRpiQHnsBzXMuuWdKZ9dlzPQUuMwaZF+lYHQ8pb4aOatTfXD8JMdh6cxRBs2SRki BLYRcR3SMWGvpA3JSn1iAsc2rE6bfMHWS9RZoas6OhUNktXXbb484O4lFP1CkeVV hmrGOk6SYa4z25WivC7uQZN7oIocRCs2J8eJGI3thL3tya5fMoIgLCaOZXsahG3d LelrpDYpzGF5g6lkrAH+FNXD6NAQ5TidrGmb+FYHW4wlXhUa8gVqMocSdAEETm3/ GkOxbZKgehl40uWConG6EbGg1wo5w1JZ159TM5Nxw/5vRfVTN9TgW/isfmH7A90n 1Y6KrHnvnJ90ZTfT+d2Gme9TQHFU1YTwGrVIUiJDaH+xCiteac/zhSvMXW89EKJG gpD/n4xi3yaPHgWPGP7jUJqAHmWgD2iEA9+QCqmRWZXBttxjeS+QBGT/rbrtGO+7 ElyajCEhxS+qJc5/mx9+Bk4Hwr9LKqTOaMWLK7GS1YJ/5enRC8TMqzlZPSipcBO7 +aKN3/t57lp99Cs+gUvKxwJtksHnFlVuluN+8DrwlRMUL2qvZMAx/rQwbcSyHlPP re4AvxzwnUWhfj8RicX3eB39fhFO+2Lk8by4dMIbZwuyjgv5EWeXGIhX/5qYmr8z FL84yqk8LdtBTmID06G6 =D5pv -----END PGP SIGNATURE----- --Sig_/M8BJT9Y8ws+tXXpEJBKN2ki--