Bug 813836 - /usr/bin/python-config points to /usr/bin/python2-config instead of /usr/bin/python2.7-config
Summary: /usr/bin/python-config points to /usr/bin/python2-config instead of /usr/bin/...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dave Malcolm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 824303 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-18 14:43 UTC by David Jaša
Modified: 2012-06-01 16:51 UTC (History)
8 users (show)

Fixed In Version: python-2.7.3-2.fc18
Clone Of:
Environment:
Last Closed: 2012-05-02 15:13:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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