Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

May 30, 2008, 2:33 PM

Post #1 of 8 (420 views)
Permalink
[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523

New submission from John Arbash Meinel <john [at] arbash-meinel>:

I just upgraded my cygwin installation to the latest versions. Which
seems to include
GNU ld (GNU Binutils) 2.18.50.20080523
and
GNU dllwrap (GNU Binutils) 2.18.50.20080523

It seems that their version notation is now Major.Minor.Micro.Date
The problem is that in 'cygwincompiler.py' it does:

result = re.search('(\d+\.\d+(\.\d+)*)',out_string)
if result:
ld_version = StrictVersion(result.group(1))

Which matches the full version string. However "StrictVersion" only
supports A.B.CdE formats. So the .Date breaks the parser.

My workaround was to change the regex to be:
result = re.search('(\d+\.\d+(\.\d+)?)(\.\d+)*',out_string)

So it will still match an unlimited number of '.DDD' as it used to, but
now it only preserves the first 3 to pass to StrictVersion.

This may not be the correct fix, as a better fix might be to use
something else instead of StrictVersion (since these version numbers
explicitly *don't* match what StrictVersion expects.)

----------
messages: 67557
nosy: jameinel
severity: normal
status: open
title: disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523
type: compile error
versions: Python 2.5

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 30, 2008, 2:34 PM

Post #2 of 8 (419 views)
Permalink
[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523 [In reply to]

Changes by John Arbash Meinel <john [at] arbash-meinel>:


----------
components: +Distutils

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 30, 2008, 2:50 PM

Post #3 of 8 (416 views)
Permalink
[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523 [In reply to]

Changes by Benjamin Peterson <musiccomposition [at] gmail>:


----------
keywords: +easy
priority: -> high

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 30, 2008, 2:58 PM

Post #4 of 8 (418 views)
Permalink
[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523 [In reply to]

John Arbash Meinel <john [at] arbash-meinel> added the comment:

Quick patch that changes the regex

----------
keywords: +patch
Added file: http://bugs.python.org/file10481/cygwinccompiler.diff

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jun 2, 2008, 3:02 PM

Post #5 of 8 (379 views)
Permalink
[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523 [In reply to]

Georg Brandl <georg [at] python> added the comment:

Do you need the (\.\d+)* trailer in the regex at all?

----------
nosy: +georg.brandl

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jun 2, 2008, 3:14 PM

Post #6 of 8 (380 views)
Permalink
[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523 [In reply to]

John Arbash Meinel <john [at] arbash-meinel> added the comment:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Georg Brandl wrote:
| Georg Brandl <georg [at] python> added the comment:
|
| Do you need the (\.\d+)* trailer in the regex at all?
|
| ----------
| nosy: +georg.brandl

Not sure. The actual revision is:

2.18.50.20080523

The code used to allow lots of version numbers, and I didn't know if we wanted
to require that or not.

Certainly just changing * => ? is a simpler fix. And since we don't end with $
or anything, it should still match.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkhEcLUACgkQJdeBCYSNAAPO8ACggCAEx1HWnfv3FD1KAnvyGzKg
tbwAn3D6xKEbQkHWrP1dKaO4tSsE6Ito
=DpMW
-----END PGP SIGNATURE-----

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jun 10, 2008, 2:26 PM

Post #7 of 8 (372 views)
Permalink
[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523 [In reply to]

Benjamin Peterson <musiccomposition [at] gmail> added the comment:

This seems to be the same as #2234.

----------
nosy: +benjamin.peterson
superseder: -> cygwinccompiler.py fails for latest MinGW releases.

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Jun 11, 2008, 11:02 PM

Post #8 of 8 (366 views)
Permalink
[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523 [In reply to]

Changes by Georg Brandl <georg [at] python>:


----------
resolution: -> duplicate
status: open -> closed

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue3013>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.