As part of our configure system rewrite, we're going to rewrite portions of the configure system in Python. config.guess and config.sub are nice, standalone scripts. We don't intend to produce a complete port, these scripts support a huge amount of legacy architectures that we've never supported. We'll support a basic subset, and port maintainers can add support for others.
Created attachment 273110 [details] [diff] [review] Replace config.guess This config.guess replacement handles Windows (MSYS/Cygwin), Linux, OS X, and Solaris x86. I've verified that it produces identical output on all the platforms I have access to. (Basically everything but Mac PPC, but I poked at the Python library, and I think I got it right there.) I didn't add a license header to guess.py, I still need to do that.
Comment on attachment 273110 [details] [diff] [review] Replace config.guess I'll have a newer patch soon.
Created attachment 273411 [details] [diff] [review] replace config.guess and config.sub Ok, this replaces both config.guess and config.sub. The shell scripts are reduced to one-liners calling the python script. The python script behaves like config.guess if no arguments are given, and config.sub if one argument is given.
Attachment #273411 - Flags: review?(benjamin)
Comment on attachment 273411 [details] [diff] [review] replace config.guess and config.sub The dictionary-keyed-with-strings-or-regexes looks a little odd to me, and I expect that we'll have to abstract that away in the future, but I guess it's ok for now. We should switch to calling guess.py directly from the configure script ASAP.
Attachment #273411 - Flags: review?(benjamin) → review+
Pushed to branch.
Status: NEW → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
Created attachment 275612 [details] [diff] [review] use guess.py in autoconf macros Pretty simple patch.
Attachment #275612 - Flags: review?(benjamin)
Comment on attachment 275612 [details] [diff] [review] use guess.py in autoconf macros Pushed to 2007-configure-rewrite
You need to log in before you can comment on or make changes to this bug.