[MacPorts] #20284: python26 fails to build on 10.6

MacPorts noreply at macports.org
Tue Sep 1 20:20:59 PDT 2009


#20284: python26 fails to build on 10.6
------------------------------+---------------------------------------------
 Reporter:  snc@…             |       Owner:  blb@…           
     Type:  defect            |      Status:  new             
 Priority:  High              |   Milestone:                  
Component:  ports             |     Version:  1.8.0           
 Keywords:  snowleopard       |        Port:  python26        
------------------------------+---------------------------------------------

Comment(by mark@…):

 Python 2.6 currently, as is, won't be able to build nicely under 64-bit
 environments for MacOSX, due to the plat_mac libraries using a variety of
 Carbon APIs, that were completely removed in the transition to 64-bit. I
 started to cleanup macresources.py which called a deprecated resource fork
 Carbon call, and then attempted to call a newer one incorrectly. With that
 out of the way, I thought I was done. Then, applesingle.py complained
 about yet another deprecated Carbon call, FSSGet. After reading through
 the Mac OS 10.6 update for Carbon API (
 http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/Carbon64BitGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004381-CH1-SW1)
 many of the API calls I was seeing in the plat-mac directory have been
 deprecated. And it looks like a gargantuan effort to update these
 libraries.

 And Python 2.6.2 is currently broken in ignoring even "--host=i686-apple-
 darwin10 --target=i686-apple-darwin10 --with-universal-archs=32-bit", it
 still attempts to build x86_64 objects at times, and even doing
 EXTRA_CFLAGS="-m32", two parts of the Makefile ignore this completely.

 However, I was able to alter these by hand, continue doing "make", and
 build and install Python 2.6.2 by hand.

 I updated the issue for the Python developers (
 http://bugs.python.org/issue6802) and will have a patch shortly for both
 MacPorts and the Python guys. For right now, it seems the only way to get
 Python on Snow Leopard for 64-bit capable machines is to compile Python in
 32-bit mode.

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


More information about the macports-tickets mailing list