public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH multilib-build] Add multilib_is_native_abi() helper.
@ 2013-06-29  8:35 Michał Górny
  2013-06-29 10:52 ` Michael Weber
  2013-06-29 19:47 ` Alexis Ballier
  0 siblings, 2 replies; 4+ messages in thread
From: Michał Górny @ 2013-06-29  8:35 UTC (permalink / raw
  To: gentoo-dev; +Cc: multilib, Michał Górny

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



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

end of thread, other threads:[~2013-06-29 19:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-29  8:35 [gentoo-dev] [PATCH multilib-build] Add multilib_is_native_abi() helper Michał Górny
2013-06-29 10:52 ` Michael Weber
2013-06-29 11:04   ` Michael Weber
2013-06-29 19:47 ` Alexis Ballier

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