Bug 109268 - distutils configured with wrong CC/LDSHARED etc
Summary: distutils configured with wrong CC/LDSHARED etc
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Raw Hide
Classification: Retired
Component: python
Version: 1.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mihai Ibanescu
QA Contact: Brock Organ
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-06 10:44 UTC by Joe Orton
Modified: 2007-04-18 16:59 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2003-11-13 13:50:47 UTC


Attachments (Terms of Use)

Description Joe Orton 2003-11-06 10:44:44 UTC
The Subversion build is broken against Python 2.3.2, because:

python -c "from distutils import sysconfig; print
sysconfig.get_config_vars('LDSHARED')[0]"

expected results:
gcc -pthread -shared

actual results: (e.g.)
x86_64-redhat-linux-gcc -pthread -shared

'CC' is likewise broken.

Comment 1 Mihai Ibanescu 2003-11-06 16:19:32 UTC
That is weird, but why is it wrong? AFAICT, in the gcc package they
are exactly the same file. Hardlinked too.

Comment 2 Joe Orton 2003-11-06 16:24:25 UTC
It breaks because the generated libtool script only knows what "gcc"
is, not "x86_64-redhat-linux-gcc".  (In case it wasn't clear, this is
a regression - the python 2.2 packages didn't have this bug)

Comment 3 Mihai Ibanescu 2003-11-06 16:51:25 UTC
This happens because distutils parses the Makefile used to compile
python (i.e. /usr/lib/python2.3/config/Makefile), and this is the
compiler beehive used.

On my local machine, CC is correctly set to gcc - I would think it's
something from beehive that confuses python.

Comment 4 Mihai Ibanescu 2003-11-12 22:33:12 UTC
python-2.3.2-5 in fc2 should fix this.

Comment 5 Joe Orton 2003-11-13 13:50:47 UTC
WORKSFORME, thanks.


Note You need to log in before you can comment on or make changes to this bug.