public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Cc: "Michał Górny" <mgorny@gentoo.org>
Subject: [gentoo-dev] [PATCH 2/2] Use MULTILIB_ABI in header wrapping code.
Date: Tue,  2 Apr 2013 23:43:32 +0200	[thread overview]
Message-ID: <1364939012-29714-2-git-send-email-mgorny@gentoo.org> (raw)
In-Reply-To: <20130402234242.5c97d709@pomiocik.lan>

---
 gx86/eclass/autotools-multilib.eclass | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/gx86/eclass/autotools-multilib.eclass b/gx86/eclass/autotools-multilib.eclass
index 5ecbd2f..55d32d7 100644
--- a/gx86/eclass/autotools-multilib.eclass
+++ b/gx86/eclass/autotools-multilib.eclass
@@ -102,33 +102,20 @@ _autotools-multilib_wrap_headers() {
 
 #if defined(__x86_64__) /* amd64 */
 #	if defined(__ILP32__) /* x32 ABI */
-#		error "abi_x86_x32 not supported by the package."
+#		error "x86_x32 not supported by the package."
 #	else /* 64-bit ABI */
-#		error "abi_x86_64 not supported by the package."
+#		error "x86_64 not supported by the package."
 #	endif
 #elif defined(__i386__) /* plain x86 */
-#	error "abi_x86_32 not supported by the package."
+#	error "x86_32 not supported by the package."
 #else
 #	error "No ABI matched, please report a bug to bugs.gentoo.org"
 #endif
 _EOF_
 		fi
 
-		# XXX: get abi_* directly
-		local abi_flag
-		case "${ABI}" in
-			amd64)
-				abi_flag=abi_x86_64;;
-			x86)
-				abi_flag=abi_x86_32;;
-			x32)
-				abi_flag=abi_x86_x32;;
-			*)
-				die "Header wrapping for ${ABI} not supported yet";;
-		esac
-
 		# Note: match a space afterwards to avoid collision potential.
-		sed -e "/${abi_flag} /s&error.*&include <${CHOST}/${f}>&" \
+		sed -e "/${MULTILIB_ABI} /s&error.*&include <${CHOST}/${f}>&" \
 			-i "${ED}/tmp/multilib-include${f}" || die
 	done
 }
-- 
1.8.1.5



  parent reply	other threads:[~2013-04-02 21:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Michał Górny [this message]
2013-04-03  9:40 ` [gentoo-dev] [PATCHES] multilib-build: use MULTILIB_ABI for eclass-specific " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1364939012-29714-2-git-send-email-mgorny@gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox