[gentoo-dev] reminder: you cannot use bash-4.x features (e.g. ${var^^}) in EAPI=[0-5]

2015-11-10 Thread Mike Frysinger
i randomly stumbled across an ebuild that was using ^^ to make a variable uppercase. this is new to bash-4.0 and thus invalid for EAPI=[0-5]. only the fresh EAPI=6 permits it since we bumped the min ver to bash-4.2. -mike signature.asc Description: Digital signature

Re: [gentoo-dev] Re: [gentoo-commits] repo/gentoo:master commit in: eclass/

2015-11-10 Thread Mike Frysinger
On 31 Oct 2015 09:08, Michał Górny wrote: > On Sat, 31 Oct 2015 03:06:21 -0400 Mike Frysinger wrote: > > On 30 Oct 2015 18:20, Michał Górny wrote: > > > On Fri, 30 Oct 2015 12:03:59 + (UTC) "Justin Lecher" wrote: > > > > --- a/eclass/distutils-r1.eclass > > > > +++

[gentoo-dev] [RFC] ban use of base-4 casemods in ebuilds due to locale collation instability

2015-11-10 Thread Mike Frysinger
On 10 Nov 2015 18:53, Mike Frysinger wrote: > i randomly stumbled across an ebuild that was using ^^ to make a variable > uppercase. this is new to bash-4.0 and thus invalid for EAPI=[0-5]. only > the fresh EAPI=6 permits it since we bumped the min ver to bash-4.2. Arfrever highlights these are

[gentoo-dev] [gentoo-dev-announce] Last rites: virtual/python-imaging

2015-11-10 Thread Justin (jlec)
# Justin Lecher (10 Nov 2015) # Compatibility virtual for transition from # dev-python/imaging to dev-python/pillow # obsolete now #508266 virtual/python-imaging signature.asc Description: OpenPGP digital signature

Re: [gentoo-dev] [RFC] ban use of base-4 casemods in ebuilds due to locale collation instability

2015-11-10 Thread René Neumann
Am 11.11.2015 um 05:16 schrieb Ulrich Mueller: >> On Tue, 10 Nov 2015, Mike Frysinger wrote: > >> Arfrever highlights these are not even safe to use. bash is locale aware, >> so it'll apply LC_COLLATE rules when processing the ^/, casemods. while >> you can fix this with external programs

Re: [gentoo-dev] [RFC] ban use of base-4 casemods in ebuilds due to locale collation instability

2015-11-10 Thread Ulrich Mueller
> On Wed, 11 Nov 2015, René Neumann wrote: >> Shouldn't these be safe to use if the string consists purely of >> ASCII characters? I mean, A-Z and a-z should be uppercase and >> lowercase, respectively, in any locale? > Unfortunately, no (have been bitten by this issue already some years >

Re: [gentoo-dev] [RFC] ban use of base-4 casemods in ebuilds due to locale collation instability

2015-11-10 Thread Mike Frysinger
On 11 Nov 2015 05:16, Ulrich Mueller wrote: > > On Tue, 10 Nov 2015, Mike Frysinger wrote: > > > Arfrever highlights these are not even safe to use. bash is locale aware, > > so it'll apply LC_COLLATE rules when processing the ^/, casemods. while > > you can fix this with external programs

Re: [gentoo-dev] [RFC] ban use of base-4 casemods in ebuilds due to locale collation instability

2015-11-10 Thread Mike Frysinger
On 11 Nov 2015 08:37, Ulrich Mueller wrote: > > On Wed, 11 Nov 2015, René Neumann wrote: > > >> Shouldn't these be safe to use if the string consists purely of > >> ASCII characters? I mean, A-Z and a-z should be uppercase and > >> lowercase, respectively, in any locale? > > > Unfortunately,

Re: [gentoo-dev] reminder: you cannot use bash-4.x features (e.g. ${var^^}) in EAPI=[0-5]

2015-11-10 Thread Mike Frysinger
On 10 Nov 2015 18:53, Mike Frysinger wrote: > i randomly stumbled across an ebuild that was using ^^ to make a variable > uppercase. this is new to bash-4.0 and thus invalid for EAPI=[0-5]. only > the fresh EAPI=6 permits it since we bumped the min ver to bash-4.2. fixed the ones `git grep`

Re: [gentoo-dev] [RFC] ban use of base-4 casemods in ebuilds due to locale collation instability

2015-11-10 Thread Patrick Lauer
On 11/11/2015 03:51 AM, Mike Frysinger wrote: > On 10 Nov 2015 18:53, Mike Frysinger wrote: >> i randomly stumbled across an ebuild that was using ^^ to make a variable >> uppercase. this is new to bash-4.0 and thus invalid for EAPI=[0-5]. only >> the fresh EAPI=6 permits it since we bumped

Re: [gentoo-portage-dev] [PATCH] ebuild: set up bash compat levels

2015-11-10 Thread Ulrich Mueller
> On Tue, 10 Nov 2015, Mike Frysinger wrote: > + # Set the compat level in case things change with newer ones. We must > not > + # export this into the env otherwise we might break other shell > scripts we > + # execute (e.g. ones in /usr/bin). > +

Re: [gentoo-dev] [RFC] ban use of base-4 casemods in ebuilds due to locale collation instability

2015-11-10 Thread Mike Frysinger
sorry, i meant char classification here (LC_CTYPE), not collation. i've been dealing with sorting bugs lately ;). -mike signature.asc Description: Digital signature

Re: [gentoo-dev] [RFC] ban use of base-4 casemods in ebuilds due to locale collation instability

2015-11-10 Thread Ulrich Mueller
> On Tue, 10 Nov 2015, Mike Frysinger wrote: > Arfrever highlights these are not even safe to use. bash is locale aware, > so it'll apply LC_COLLATE rules when processing the ^/, casemods. while > you can fix this with external programs ala: > LC_COLLATE=C tr ... > you can't do it

[gentoo-portage-dev] [PATCH] ebuild: set up bash compat levels

2015-11-10 Thread Mike Frysinger
To try and provide better stability across bash versions, set the language compat level based on the current EAPI. --- bin/eapi.sh | 8 bin/ebuild.sh | 39 +++ 2 files changed, 47 insertions(+) diff --git a/bin/eapi.sh b/bin/eapi.sh index