Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 269856 - sys-cluster/mpich2-1.0.8 misdetects dev-lang/python-2.6
Summary: sys-cluster/mpich2-1.0.8 misdetects dev-lang/python-2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Cluster Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-14 15:43 UTC by nanikata15
Modified: 2010-09-10 19:01 UTC (History)
3 users (show)

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


Attachments
passes --with-python=python${PYVER} to econf (mpich2-1.0.8.patch,383 bytes, patch)
2009-05-14 15:47 UTC, nanikata15
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description nanikata15 2009-05-14 15:43:33 UTC
Seems that the configure script of mpich2 doesn't check for anything
higher than python-2.5, and when that is not found defaults python-2:

(part of ./configure output)
[snip]
checking for python2.5... no
checking for python2.4... no
checking for python2.3... no
checking for python2.2... no
checking for python2... python2
checking for python... python
checking that python2 is a valid python version... yes
checking that the cPickle module is available for python2... yes
[snip]

this causes python files to be installed into /usr/lib/python2 folder
and also the first line in python scripts becomes
	#!/usr/bin/env python2.5
thus making it impossible to run them directly if python-2.5 is not installed.

Reproducible: Always

Steps to Reproduce:
1.emerge python-2.6
2.run python-updater and unemerge any other versions
3.emerge mpich2-1.0.8
Actual Results:  
It won't be possible to execute mpiexec, mppboot, etc
Python files will be installed into /usr/lib/python2

Expected Results:  
Should emerge properly with python-2.6

This problem most likely affects other mpich2 versions as well,
but this was not tested.

Was solved to me by passing --with-python=python${PYVER} to econf
Comment 1 nanikata15 2009-05-14 15:47:23 UTC
Created attachment 191275 [details, diff]
passes --with-python=python${PYVER} to econf

should work after applying this
Comment 2 Justin Bronder (RETIRED) gentoo-dev 2009-06-13 18:58:14 UTC
Fixed for 1.0.8 in cvs by patching mpd's configure.  Thanks for reporting.