[Distutils] a patch for distutils + gcc + linux, that was never apply, yet will solve many problems.

Ronald Oussoren ronaldoussoren at mac.com
Tue Jul 11 17:42:12 CEST 2006


On Jul 11, 2006, at 5:17 PM, Jorge Vargas wrote:

> noone cares about this? it's a bug so simple to fix....

There's loads of bugs and patches in the python tracker, and only a  
limited amount of time that people work on python.  The patch you  
mentioned also sounds like a fix for a very limited audience, which  
could explain why nobody has seriously looked at it yet.

Are there systems other then gentoo that don't use gcc and g++ but  
some seemingly cross-compiling setup?

Ronald

>
> On 6/30/06, Jorge Vargas <jorge.vargas at gmail.com> wrote:
> Hello everyone
>
> I did a package for gentoo (ebuild) a while ago and it has a C/C++  
> extension, to compile agains a gecko-compliant mozilla product.
>
> Long story short our solution (build agains mozilla) seem to had  
> nothing to do with the real bug which someone posted today.
>
> It seems there is a bug in distutils itself, because it is passing  
> the wrong arguments to g++, the most incredible part is that the  
> bug is so simple to fix yet there is no reply, maybe this got lost  
> in the main python repository.
>
> here is the most important part of his post
> ----
> /usr/lib/python2.4/distutils/unixccompiler.py to build.
> ** /usr/lib/python2.4/distutils/unixccompiler.py fills the 'CC'  
> executable
>
> variable by invoking /usr/lib/python2.4/distutils/sysconfig.py
> ** /usr/lib/python2.4/distutils/unixccompiler.py contains a  
> condition that
> says:
> elif compiler[:3] == "gcc" or compiler[:3] == "g++":
>
> return "-Wl,-R" + dir
> ** /usr/lib/python2.4/distutils/sysconfig.py returns the 'CC'  
> executable
> variable by reading from /usr/lib/python2.4/config/Makefile
> ** If your system is like many others, it will return something like
>
> 'CC=i686-pc-linux-gnu-gcc -pthread', will never == "gcc" and so the  
> correct
> linker options will not be used.----
> if anyone could please verify it and maybe find out why it wasn't  
> apply, honestly I have very little knowlegde of C and it's  
> integration with python  to be able to verify it.
>
> his full post is at
> http://bugs.gentoo.org/show_bug.cgi?id=131527#c36
>
> the original disutil gentoo bug:
> http://bugs.gentoo.org/show_bug.cgi?id=138647
>
> the patch at sourceforce:
> http://sourceforge.net/tracker/index.php? 
> func=detail&aid=1254718&group_id=5470&atid=305470
>
>
> thanks.
>
> _______________________________________________
> Distutils-SIG maillist  -  Distutils-SIG at python.org
> http://mail.python.org/mailman/listinfo/distutils-sig



More information about the Distutils-SIG mailing list