public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCHES] multilib-build: use MULTILIB_ABI for eclass-specific ABI value
@ 2013-04-02 21:42 Michał Górny
  2013-04-02 21:43 ` [gentoo-dev] [PATCH 1/2] multilib-build: set MULTILIB_ABI as the 'global' " Michał Górny
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Michał Górny @ 2013-04-02 21:42 UTC (permalink / raw
  To: Gentoo Developer Mailing List

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

Hello,

Currently, the multilib-build eclass uses abi_* constants only for USE
flags and only ${ABI} is exported to the function. This is bad since it
basically requires a reverse mapping of ABI->abi_* values, often
inlined as ${ABI} checks.

The patches which I will send in reply to this thread aim to fix it.

The first patch changes the eclass logic. The abi_* values, with 'abi_'
prefix stripped, are called MULTILIB_ABI now. They are used to run
the 'foreach' functions, and now are set in the called functions along
with ABI.

As a downside, the switch required the MULTILIB_ABI -> ABI mapping to
occur inside foreach -- as in, another 'for' loop. It shouldn't cause
any noticeable difference.

Additionally, the 'default' fallback no longer calls
multilib_toolchain_setup. This should improve compatibility with
multilib-portage and *maybe* cross-compiling.

The second patch uses new ${MULTILIB_ABI} variable in header wrapping
function. In other words, it removes the ABI -> MULTILIB_ABI reverse
mapping which becomes unnecessary.

-- 
Best regards,
Michał Górny

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 966 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-04-05 20:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-02 21:42 [gentoo-dev] [PATCHES] multilib-build: use MULTILIB_ABI for eclass-specific ABI value Michał Górny
2013-04-02 21:43 ` [gentoo-dev] [PATCH 1/2] multilib-build: set MULTILIB_ABI as the 'global' " Michał Górny
2013-04-02 21:43 ` [gentoo-dev] [PATCH 2/2] Use MULTILIB_ABI in header wrapping code Michał Górny
2013-04-03  9:40 ` [gentoo-dev] [PATCHES] multilib-build: use MULTILIB_ABI for eclass-specific ABI value Thomas Sachau
2013-04-03  9:40   ` Ciaran McCreesh
2013-04-03  9:52   ` Michał Górny
2013-04-05  3:53   ` Michał Górny
2013-04-05 20:56 ` Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox