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 3682A1381F3 for ; Sat, 29 Jun 2013 08:34:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61DBDE0995; Sat, 29 Jun 2013 08:34:42 +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 8C9C7E0980 for ; Sat, 29 Jun 2013 08:34:41 +0000 (UTC) Received: from pomiot.lan (178-37-180-138.adsl.inetia.pl [178.37.180.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: mgorny) by smtp.gentoo.org (Postfix) with ESMTPSA id 89B9533E7EF; Sat, 29 Jun 2013 08:34:39 +0000 (UTC) From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= To: gentoo-dev@lists.gentoo.org Cc: multilib@gentoo.org, =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Subject: [gentoo-dev] [PATCH multilib-build] Add multilib_is_native_abi() helper. Date: Sat, 29 Jun 2013 10:35:45 +0200 Message-Id: <1372494945-19681-1-git-send-email-mgorny@gentoo.org> X-Mailer: git-send-email 1.8.2.1 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 X-Archives-Salt: 1da2d3d9-2738-4aba-88af-5d46f02b016c X-Archives-Hash: 49bbb5b0d47d3d0825d7eaf3dbdfec34 We've been so far inlining the snippet into ebuilds. This meant that some people didn't know how to do this, some more did it improperly and in the end -- if it failed not good enough -- changing it will require changing all the ebuilds. --- gx86/eclass/multilib-build.eclass | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gx86/eclass/multilib-build.eclass b/gx86/eclass/multilib-build.eclass index a4b7c01..22a471e 100644 --- a/gx86/eclass/multilib-build.eclass +++ b/gx86/eclass/multilib-build.eclass @@ -338,5 +338,21 @@ multilib_install_wrappers() { fi } +# @FUNCTION: multilib_is_native_abi +# @DESCRIPTION: +# Determine whether the currently built ABI is the profile native. +# Return true status (0) if that is true, otherwise false (1). +# +# This is often useful for configure calls when some of the options are +# supposed to be disabled for multilib ABIs (like those used for +# executables only). +multilib_is_native_abi() { + debug-print-function ${FUNCNAME} "${@}" + + [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments" + + [[ ${ABI} == ${DEFAULT_ABI} ]] +} + _MULTILIB_BUILD=1 fi -- 1.8.2.1