Bug 813836

Summary: /usr/bin/python-config points to /usr/bin/python2-config instead of /usr/bin/python2.7-config
Product: [Fedora] Fedora Reporter: David Jaša <djasa>
Component: pythonAssignee: Dave Malcolm <dmalcolm>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dmalcolm, ivazqueznet, jonathansteffan, jsafrane, mcrha, mrunge, negativo17, tomspur
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-2.7.3-2.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-02 15:13:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description David Jaša 2012-04-18 14:43:55 UTC
Description of problem:
/usr/bin/python-config points to /usr/bin/python2-config instead of /usr/bin/python2.7-config (the /usr/bin/python-config is a broken symlink)

This breaks builds of some packages that depend on python

Version-Release number of selected component (if applicable):
python-2.7.3-1.fc17.src.rpm

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Milan Crha 2012-04-18 15:24:58 UTC
same on rawhide

Comment 2 Dave Malcolm 2012-04-18 19:09:39 UTC
Also, within python-debug:
   /usr/bin/python-debug -> python2
     which is wrong (it's pointing at the optimized build), it should link to python2.7-debug

  /usr/bin/python2-debug -> python-debug
    which would be better to have directly link to python2.7-debug

Am working on resolving all these issues.

Comment 3 Dave Malcolm 2012-04-19 00:21:54 UTC
Candidate fix committed to git in "master" and building:
http://pkgs.fedoraproject.org/gitweb/?p=python.git;a=commitdiff;h=9345b0fcac103756a5aacbb8a49d996b23bf0450

Building python-2.7.3-2.fc18 for dist-rawhide
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=4004237

(I'll need to apply the fix to all the various python 2.7 updates in Bodhi also)

Comment 4 Milan Crha 2012-04-19 07:37:31 UTC
(In reply to comment #3)
> Building python-2.7.3-2.fc18 for dist-rawhide
> Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=4004237

Works for me, thanks.

> (I'll need to apply the fix to all the various python 2.7 updates in Bodhi
> also)

Please do soon, I've a blocked update on F17, and there will be soon another on F16 (while you have also updated F15).

Comment 5 Fedora Update System 2012-04-19 20:09:40 UTC
python-2.7.3-3.fc17, python-docs-2.7.3-1.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/FEDORA-2012-5892/python-2.7.3-3.fc17,python-docs-2.7.3-1.fc17

Comment 6 Fedora Update System 2012-04-19 20:37:58 UTC
python-2.7.3-2.fc15, python-docs-2.7.3-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/FEDORA-2012-5915/python-2.7.3-2.fc15,python-docs-2.7.3-1.fc15

Comment 7 Matthias Runge 2012-04-25 19:17:47 UTC
Hmm, did something went wrong?

[mrunge@sofja ~]$ rpm -q python
python-2.7.3-3.fc17.i686
[mrunge@sofja ~]$ ls -l /usr/bin/python-config 
lrwxrwxrwx 1 root root 14 Apr 23 20:28 /usr/bin/python-config -> python2-config

Comment 8 Dave Malcolm 2012-04-25 23:07:08 UTC
(In reply to comment #7)
> Hmm, did something went wrong?
> 
> [mrunge@sofja ~]$ rpm -q python
> python-2.7.3-3.fc17.i686
> [mrunge@sofja ~]$ ls -l /usr/bin/python-config 
> lrwxrwxrwx 1 root root 14 Apr 23 20:28 /usr/bin/python-config -> python2-config

But where does python2-config point?  I believe it should point at 
  python2.7-config
and hence all three ought to work OK.  Do they?

(I went with how upstream structured the symlinks, rather than how I suggested in comment #2).

Comment 9 Matthias Runge 2012-04-26 06:59:28 UTC
OK, you're right python2-config links to python2.7-config. So I'll revise my vote, bug is fixed for me.

Comment 10 Fedora Update System 2012-05-02 04:50:00 UTC
python-2.7.3-3.fc17, python-docs-2.7.3-1.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Jan Safranek 2012-05-23 07:53:44 UTC
What about F16 update? I still see python-devel-2.7.3-1.fc16.x86_64 with wrong python-config link in fedora-updates.

Comment 12 Dave Malcolm 2012-05-29 15:24:43 UTC
*** Bug 824303 has been marked as a duplicate of this bug. ***

Comment 13 Fedora Update System 2012-05-29 15:42:38 UTC
python-2.7.3-3.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/python-2.7.3-3.fc16

Comment 14 Fedora Update System 2012-06-01 16:51:43 UTC
python-2.7.3-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.