Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 59257 - mod_python 2.7.10 ebuild does not detect "python compiled with threads"
Summary: mod_python 2.7.10 ebuild does not detect "python compiled with threads"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-03 06:11 UTC by P.F. Caillaud
Modified: 2004-09-04 01:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
mod_python-2.7.10.ebuild (mod_python-2.7.10.ebuild,2.61 KB, text/plain)
2004-08-12 07:47 UTC, Lukasz Strzygowski (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description P.F. Caillaud 2004-08-03 06:11:43 UTC
In the mod_python 2.7.10 ebuild :

AC_MSG_CHECKING(whether Python is compiled with thread support)
PyTHREADS=`$PYTHON_BIN -c "import sys; print \"thread\" in sys.builtin_module_names"`
if test "$PyTHREADS" = "1"; then
 
Problem :

Python 2.3 returns "True", not "1" like 2.2 did.
Thus the ebuild believes Python is copiled without threads, while it is. 


Reproducible: Always
Steps to Reproduce:
1. have Apache 1.3 and Python 2.3 installed
2. Run :
# python -c "import sys; print \"thread\" in sys.builtin_module_names"
True

3. True is not 1 so ebuild says : [no threads, good]

Actual Results:  
It did not detect that Python was compiled with threads.

Expected Results:  
It should have !
Comment 1 Lukasz Strzygowski (RETIRED) gentoo-dev 2004-08-12 07:47:12 UTC
Created attachment 37283 [details]
mod_python-2.7.10.ebuild

This ebuild should work, but could someone test it? I've added to src_unpack:

"""
# Python 2.3 prints True/False instead of, expected
# by script configure, 1/0, so we need to convert it to int.
sed -e 's/\(\\"thread\\" in sys.builtin_module_names\)/int(\1)/' -i
${S}/configure
"""
Comment 2 Lukasz Strzygowski (RETIRED) gentoo-dev 2004-09-04 01:23:34 UTC
Should be fixed in -r1.