Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 208707 - distutils.sysconfig.{get_config_h_filename,parse_config_h} broken
distutils.sysconfig.{get_config_h_filename,parse_config_h} broken
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: python (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Brock Organ
Depends On: 201434
  Show dependency treegraph
Reported: 2006-09-30 11:24 EDT by Axel Thimm
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: 5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-26 14:38:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Axel Thimm 2006-09-30 11:24:04 EDT
+++ This bug was initially created as a clone of Bug #201434 +++

Description of problem:
/usr/include/python2.4/pyconfig.h is now a wrapper for 32/64 bit sub-includes.
This breaks the usual query mechanism for extracting python build flags.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.config_h = sysconfig.get_config_h_filename()
2.config_h_vars = sysconfig.parse_config_h(open(config_h))
Actual results:

Expected results:
{'STRICT_SYSV_CURSES': "/* Don't use ncurses extensions */", 'HAVE_SELECT': 1,
'HAVE_ST_BLOCKS': 1, [...]

Additional info:
o Breaks builds of smart package
o One can argue that the bug is in the implementation of parse_config_h, which
  should be able to descend into further included files. OTOH it would then need
  to understand nested conditionals, too.
o maybe the 32/64 bits switch should be performed already on 
  get_config_h_filename level? E.g. get_config_h_filename should return
  pyconfig-32.h and pyconfig-64.h respectively?


-- Additional comment from Axel.Thimm@ATrpms.net on 2006-08-05 06:07 EST --
Turns out this is due to the fix for multilib -devel support in bug #139911
comment 2. This fix only considered C/C++ consumers of pyconfig.h. python's
querying mechanism needs to be redirected, too, by patching
get_config_h_filename. A simple untested specfile fix is in bug #139911 comment 4.

-- Additional comment from misa@redhat.com on 2006-08-17 18:18 EST --
Fix (based on your suggestion) included in python-2.4.3-15 - thanks!
Comment 1 Jeremy Katz 2006-10-01 18:36:56 EDT
Did the fix in -15 not work?  Beta1 was frozen a while back and thus doesn't
include a lot of fixes which have occurred in the meantime; beta2 will
reconverge with FC6 and all the fixes in between 
Comment 2 Axel Thimm 2006-10-01 19:45:55 EDT
-15 on FC6 was OK, I cloned the report because beta1 carries -14 and some builds
against beta1 started failing.
Comment 3 Mihai Ibanescu 2006-10-01 22:28:56 EDT
The fix was not a beta1 blocker, therefore it didn't make it. Rest assured it
will be there in beta2. I'll leave the bug open so we can make sure that will
Comment 4 Axel Thimm 2007-02-07 08:52:08 EST
I verified that this is fixed in beta2, thanks!

But I cannot close this bug, it says:
 "You tried to change the Status field from MODIFIED to CLOSED, but only the owner
  or submitter of the bug, or a sufficiently empowered user, may change that

Well, I'm the submitter, but anyway, please close this bug whoever is
"sufficiently empowered". :)
Comment 5 David Lawrence 2007-03-26 14:38:49 EDT
Closing per submitter's request.

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