Re: Problem with configure when trying to build gcc 5.3

Keith Marshall <[email protected]> Wed, 4 Jan 2017 22:36:42 +0000
Newsgroups gmane.comp.gnu.mingw.devel
Organization MinGW Project
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 03/01/17 23:35, Keith Marshall wrote:
> I'm seeing evidence of an MSYS shell bug, which prevents mingw-pkg
> from even locating the package specification file:
> 
> ...
> 
> it has failed to match the 'case [0-9]*)' pattern, as it
> should have, and consequently, has set 'PACKAGE=gcc-5.3.0', where it
> should have been just 'PACKAGE=gcc'

This issue appears to arise as a consequence of leaving the '-' in
$IFS; the effect is as if bash performs IFS directed word splitting
on the case pattern, (which I think is incorrect behaviour -- dash
certainly handles it more intelligently -- but I cannot find any
definitive specification for what would be "correct" behaviour).
In any case the effect is that the '[0-9]' character range within
the 'case [0-9]*)' pattern specification is misinterpreted.  The
issue is mitigated by clearing $IFS, and using a local, unrelated
shell variable in its place, within the scope of the case statement.

Today, I've pushed changes to circumvent this issue, and to correct
the previously identified 'mingw-pkg patch' defect, to my SF user
repository, so mingw-pkg should now work as originally suggested,
regardless of any host shell deficiencies.

- -- 
Regards,
Keith.

Public key available from keys.gnupg.net
Key fingerprint: C19E C018 1547 DE50 E1D4 8F53 C0AD 36C6 347E 5A3F
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (GNU/Linux)

iQIcBAEBAgAGBQJYbXj6AAoJEMCtNsY0flo/ENEQALt0g/RnJtxoHhlalkJI5bPj
bDhxwTUOcGyBozgstk4YkqXTwQeXe0wEkTpjHqm3EETWN3W7hk2MrWNpvoORdaZI
gpXoThIKgmrwxpopPu7dd2V9zuPjramYz+H1mWxJSCGHrY3abLk1Y+S33eyWVA15
j5dK64XjXhjRPsxvlJYEQmwejgvRr+JonMq77TUOYIgperXUwOdQK3HZ3FAFryuh
UO0sQGJ08wP8u6+YRXj/mG1WZiQtdvUtnoeQdNx6RabujnBNiYo3q6w0Pz3PqXjX
5yIY57006YgvUplEXr/SuP4FFST2Ta9P2gSFIkGgvdogK49+K03JC55pLVuff2UC
/aaBZXDekCOWN9aIAkIABTpndI/LHDoylfbHFuV2r/jKSJfaeLxI1IeV25HmhLUA
u24AfCfP2sS6tNM4AHg1r3gerdwcnUfA6qFPv8wCxTt+X0SioViZAy5x2JQjf/S/
nIs1/QcEwZfn3vj6PCMNmFbBHZ2o+fDqbNv1dayKyz0kYQURlG4uUMj9EhJquU05
GMM9I4DfKloDP4D6/XoCqfjI71uN1wLIwkQutPgTc5UeFaLzqwE3tVGRjg2IaY/V
TI1KIN8/hMrQOxf4vdnFPC567Ne5LzN38J+S2Tz9o9huUvwuvv8g8iSHMGTMTZ8X
DdsmIKur59PYz8HqUB2m
=swdI
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot