From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RmsmW-0002g8-Ox for garchives@archives.gentoo.org; Mon, 16 Jan 2012 20:03:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B99E2E0779; Mon, 16 Jan 2012 20:03:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8DFD2E0779 for ; Mon, 16 Jan 2012 20:03:34 +0000 (UTC) Received: from flycatcher.gentoo.org (flycatcher.gentoo.org [81.93.255.6]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 020301B401B for ; Mon, 16 Jan 2012 20:03:34 +0000 (UTC) Received: by flycatcher.gentoo.org (Postfix, from userid 559) id C72FD2004B; Mon, 16 Jan 2012 20:03:32 +0000 (UTC) From: "Mike Frysinger (vapier)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, vapier@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: flag-o-matic.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: flag-o-matic.eclass X-VCS-Directories: eclass X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger Content-Type: text/plain; charset=utf8 Message-Id: <20120116200332.C72FD2004B@flycatcher.gentoo.org> Date: Mon, 16 Jan 2012 20:03:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 90559c78-f4b7-49e2-94da-36b884842df9 X-Archives-Hash: 0751ec80c0776a8a4e7a2f19bb0b3361 vapier 12/01/16 20:03:32 Modified: flag-o-matic.eclass Log: quote single flag arg to test-flag-PROG since we are only testing one f= lag, and we want to handle any weirdness in that flag (such as spaces) #3= 99055 Revision Changes Path 1.168 eclass/flag-o-matic.eclass file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?rev=3D1.168&view=3Dmarkup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?rev=3D1.168&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-mati= c.eclass?r1=3D1.167&r2=3D1.168 Index: flag-o-matic.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v retrieving revision 1.167 retrieving revision 1.168 diff -u -r1.167 -r1.168 --- flag-o-matic.eclass 14 Jan 2012 09:10:54 -0000 1.167 +++ flag-o-matic.eclass 16 Jan 2012 20:03:32 -0000 1.168 @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.167 20= 12/01/14 09:10:54 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.168 20= 12/01/16 20:03:32 vapier Exp $ =20 # @ECLASS: flag-o-matic.eclass # @MAINTAINER: @@ -347,13 +347,13 @@ =20 test-flag-PROG() { local comp=3D$1 - local flags=3D"$2" + local flag=3D$2 =20 - [[ -z ${comp} || -z ${flags} ]] && return 1 + [[ -z ${comp} || -z ${flag} ]] && return 1 =20 # use -c so we can test the assembler as well local PROG=3D$(tc-get${comp}) - ${PROG} ${flags} -c -o /dev/null -xc /dev/null \ + ${PROG} "${flag}" -c -o /dev/null -xc /dev/null \ > /dev/null 2>&1 } =20