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 1NkMuS-0001p7-W2 for garchives@archives.gentoo.org; Wed, 24 Feb 2010 19:28:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4EAFAE0F50; Wed, 24 Feb 2010 19:28:34 +0000 (UTC) Received: from mail-yw0-f182.google.com (mail-yw0-f182.google.com [209.85.211.182]) by pigeon.gentoo.org (Postfix) with ESMTP id 5BC2DE0636 for ; Wed, 24 Feb 2010 19:28:19 +0000 (UTC) Received: by ywh12 with SMTP id 12so2568710ywh.10 for ; Wed, 24 Feb 2010 11:28:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type; bh=T0q/1Cvj63VjzARSTwmCi/tD+GdUQLFrri+MXyeHSkA=; b=r/17tsg8X4GQfEYfsyN6Yn4fzRtC3N1oExfmXIfWsfP7ZC3e1C7FWY7Ym7Oer9h3dg kqoIYx5TkixqKuuKn6iJeHYvv6OMiaqRz3j+1NU+m73kTGuaHGquzqrGlWixLt4vRDpo 1l8Gnt16IrGzi33vuivD57xZySNbpV8F/elB0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type; b=BbQ8WY3eCQWBExTcakYRCEddN8CuWJ9r6E3GLhX4DJycN7B5+k/wqZ1ngl0UhjhslC qFoV7BzWlHifbBz0FmQJiaUOVqjHSDyzYrkalRb6027XBiinoYOtuffP1uD9P2PT8ETF u/g5fd3cvsWDorURZVSTZxFL77jNMOV09tqho= Received: by 10.90.237.16 with SMTP id k16mr312127agh.14.1267039684152; Wed, 24 Feb 2010 11:28:04 -0800 (PST) Received: from ?192.168.1.100? ([190.1.21.180]) by mx.google.com with ESMTPS id 34sm866735yxf.47.2010.02.24.11.28.02 (version=SSLv3 cipher=RC4-MD5); Wed, 24 Feb 2010 11:28:03 -0800 (PST) Message-ID: <4B858BA9.2070300@gmail.com> Date: Wed, 24 Feb 2010 17:27:21 -0300 From: ChIIph User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100222 Thunderbird/3.0.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 MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] Changes to flag-o-matic's _filter-var X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig01F916D13193926090D6B47C" X-Archives-Salt: 1b3232b0-e3ee-46b3-990c-0c501cfaec1f X-Archives-Hash: 51696ebaf35da20b0afb55281067a0f5 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig01F916D13193926090D6B47C Content-Type: multipart/mixed; boundary="------------090109050607000303090602" This is a multi-part message in MIME format. --------------090109050607000303090602 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello everyone, Here are some minor changes I'd like to propose to flag-o-matic's _filter-var() to work properly with LDFLAGS. Without this, things like "-Wl,-O1,--as-needed" won't be affected by any kind of filter since there are no spaces to separate each flag. I don't know of any better way to do this, but here's a patch that works just fine. Regards, Tomas --------------090109050607000303090602 Content-Type: text/plain; name="filter.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="filter.patch" --- /usr/portage/eclass/flag-o-matic.eclass.old 2010-02-17 16:36:55.00000= 0000 -0300 +++ /usr/portage/eclass/flag-o-matic.eclass 2010-02-24 17:16:30.000000000= -0300 @@ -96,14 +96,20 @@ VAR=3D$1 shift eval VAL=3D\${${VAR}} - for f in ${VAL}; do - for x in "$@"; do + for f in ${VAL//,/ }; do + for x in ${@//,/ }; do # Note this should work with globs like -O* [[ ${f} =3D=3D ${x} ]] && continue 2 done eval new\[\${\#new\[@]}]=3D\${f} done + eval export ${VAR}=3D\${new\[*]} +=09 + if [[ "${VAR}" =3D=3D "LDFLAGS" ]]; then + eval VAL=3D\${${VAR}} + eval export ${VAR}=3D${VAL// /,} + fi } =20 # @FUNCTION: filter-flags --------------090109050607000303090602-- --------------enig01F916D13193926090D6B47C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iEYEARECAAYFAkuFi6wACgkQleOIHZp1Omua7gCcDO8mTygWMN8xjIy3dP6Xaj5/ uGsAn3UZutiVWea5U4xc5F0pz8EB7kMb =2IlF -----END PGP SIGNATURE----- --------------enig01F916D13193926090D6B47C--