[MacPorts] #21614: Python26 framework is not recognized by ld, causing erroneous link against system python

MacPorts noreply at macports.org
Fri Sep 25 14:32:52 PDT 2009


#21614: Python26 framework is not recognized by ld, causing erroneous link against
system python
---------------------------------+------------------------------------------
 Reporter:  vince@…              |       Owner:  blb@…                                  
     Type:  defect               |      Status:  new                                    
 Priority:  Normal               |   Milestone:                                         
Component:  ports                |     Version:  1.8.0                                  
 Keywords:  ld python framework  |        Port:  python26                               
---------------------------------+------------------------------------------
 The following lines, part of the python26 portfile post-destroot phase:

 {{{
    foreach dir { Headers Resources Python Versions/Current } {
       file delete ${destroot}${framewpath}/${dir}
    }
 }}}

 erase the respective links. This is maybe thought to be necessary if there
 is more than one version installed. But without these links, ld does not
 recognize the structure as a framework, and therefore will not link
 against it anymore, defaulting to System python framework, even with
 explicit -Fpath. This certainly causes #21444 and maybe others. The fix is
 simply to remove the lines cited.

-- 
Ticket URL: <http://trac.macports.org/ticket/21614>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list