public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michal Gorny (mgorny)" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog multilib-build.eclass
Date: Mon, 30 Sep 2013 07:27:06 +0000 (UTC)	[thread overview]
Message-ID: <20130930072706.46EA12004C@flycatcher.gentoo.org> (raw)

mgorny      13/09/30 07:27:06

  Modified:             ChangeLog multilib-build.eclass
  Log:
  Fix duplicate flags in MULTILIB_USEDEP. Thanks for the report and the patch to Ulrich Mueller.

Revision  Changes    Path
1.1002               eclass/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1002&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1002&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1001&r2=1.1002

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v
retrieving revision 1.1001
retrieving revision 1.1002
diff -u -r1.1001 -r1.1002
--- ChangeLog	30 Sep 2013 02:28:42 -0000	1.1001
+++ ChangeLog	30 Sep 2013 07:27:06 -0000	1.1002
@@ -1,6 +1,10 @@
 # ChangeLog for eclass directory
 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1001 2013/09/30 02:28:42 ottxor Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1002 2013/09/30 07:27:06 mgorny Exp $
+
+  30 Sep 2013; Michał Górny <mgorny@gentoo.org> multilib-build.eclass:
+  Fix duplicate flags in MULTILIB_USEDEP. Thanks for the report and the patch
+  to Ulrich Mueller.
 
   30 Sep 2013; Christoph Junghans <ottxor@gentoo.org>
   toolchain-binutils.eclass:



1.21                 eclass/multilib-build.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multilib-build.eclass?rev=1.21&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multilib-build.eclass?rev=1.21&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/multilib-build.eclass?r1=1.20&r2=1.21

Index: multilib-build.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- multilib-build.eclass	17 Sep 2013 13:29:19 -0000	1.20
+++ multilib-build.eclass	30 Sep 2013 07:27:06 -0000	1.21
@@ -1,6 +1,6 @@
 # Copyright 1999-2013 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.20 2013/09/17 13:29:19 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.21 2013/09/30 07:27:06 mgorny Exp $
 
 # @ECLASS: multilib-build.eclass
 # @MAINTAINER:
@@ -28,13 +28,13 @@
 # @ECLASS-VARIABLE: _MULTILIB_FLAGS
 # @INTERNAL
 # @DESCRIPTION:
-# The list of multilib flags and corresponding ABI values.
+# The list of multilib flags and corresponding ABI values. If the same
+# flag is reused for multiple ABIs (e.g. x86 on Linux&FreeBSD), multiple
+# ABIs may be separated by commas.
 _MULTILIB_FLAGS=(
-	abi_x86_32:x86
-	abi_x86_64:amd64
+	abi_x86_32:x86,x86_fbsd
+	abi_x86_64:amd64,amd64_fbsd
 	abi_x86_x32:x32
-	abi_x86_32:x86_fbsd
-	abi_x86_64:amd64_fbsd
 	abi_mips_n32:n32
 	abi_mips_n64:n64
 	abi_mips_o32:o32
@@ -72,16 +72,20 @@
 
 	local abis=( $(get_all_abis) )
 
+	local IFS=,
 	local abi i found
 	for abi in "${abis[@]}"; do
 		for i in "${_MULTILIB_FLAGS[@]}"; do
-			local m_abi=${i#*:}
+			local m_abis=${i#*:} m_abi
 			local m_flag=${i%:*}
 
-			if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then
-				echo "${abi}"
-				found=1
-			fi
+			for m_abi in ${m_abis}; do
+				if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then
+					echo "${abi}"
+					found=1
+					break 2
+				fi
+			done
 		done
 	done
 





             reply	other threads:[~2013-09-30  7:27 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-30  7:27 Michal Gorny (mgorny) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-06-26 20:43 [gentoo-commits] gentoo-x86 commit in eclass: ChangeLog multilib-build.eclass Michal Gorny (mgorny)
2014-08-17  3:34 Jonathan Callen (jcallen)
2014-07-04 13:02 Michal Gorny (mgorny)
2014-07-03 17:45 Fabian Groffen (grobian)
2014-07-03  8:27 Michal Gorny (mgorny)
2014-07-03  7:48 Michal Gorny (mgorny)
2014-06-29  8:32 Michal Gorny (mgorny)
2014-06-29  7:53 Michal Gorny (mgorny)
2014-06-28  9:56 Michal Gorny (mgorny)
2014-06-08 13:57 Michal Gorny (mgorny)
2014-05-28 18:53 Michal Gorny (mgorny)
2014-05-23 17:11 Michal Gorny (mgorny)
2014-05-23  7:53 Michal Gorny (mgorny)
2014-05-23  7:47 Michal Gorny (mgorny)
2014-05-23  7:39 Michal Gorny (mgorny)
2014-05-23  7:38 Michal Gorny (mgorny)
2014-05-23  7:11 Michal Gorny (mgorny)
2014-05-12 21:56 Michal Gorny (mgorny)
2014-05-07 17:33 Michal Gorny (mgorny)
2014-05-01  9:52 Michal Gorny (mgorny)
2014-04-29 20:59 Michal Gorny (mgorny)
2014-04-29 20:59 Michal Gorny (mgorny)
2014-04-29 20:57 Michal Gorny (mgorny)
2014-04-29 20:56 Michal Gorny (mgorny)
2014-04-28 17:38 Michal Gorny (mgorny)
2014-04-22 20:12 Michal Gorny (mgorny)
2014-04-21  7:58 Michal Gorny (mgorny)
2014-04-21  7:27 Michal Gorny (mgorny)
2014-04-21  7:22 Michal Gorny (mgorny)
2014-04-21  7:17 Michal Gorny (mgorny)
2014-04-03 21:38 Michal Gorny (mgorny)
2014-04-03 21:32 Michal Gorny (mgorny)
2014-03-31 15:32 Michal Gorny (mgorny)
2014-03-30  8:41 Michal Gorny (mgorny)
2014-01-16 20:05 Michal Gorny (mgorny)
2014-01-16 18:53 Michal Gorny (mgorny)
2013-12-31 18:31 Michal Gorny (mgorny)
2013-10-01 18:06 Michal Gorny (mgorny)
2013-10-01 17:42 Michal Gorny (mgorny)
2013-09-17 13:29 Thomas Sachau (tommy)
2013-09-17 12:25 Thomas Sachau (tommy)
2013-08-08 10:20 Michal Gorny (mgorny)
2013-07-30  2:08 Matt Turner (mattst88)
2013-07-11  6:57 Michal Gorny (mgorny)
2013-06-28  2:37 Michal Gorny (mgorny)
2013-03-09 13:52 Michal Gorny (mgorny)
2013-03-04 19:31 Michal Gorny (mgorny)
2013-03-04 19:30 Michal Gorny (mgorny)
2013-03-02 18:18 Michal Gorny (mgorny)
2013-02-27 23:23 Michal Gorny (mgorny)
2013-02-26 21:05 Michal Gorny (mgorny)
2013-02-26 14:42 Michal Gorny (mgorny)

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=20130930072706.46EA12004C@flycatcher.gentoo.org \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.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