[MacPorts] #17309: python26 needs a small change in Portfile to build a true universal binary

MacPorts noreply at macports.org
Wed Nov 19 00:08:32 PST 2008


#17309: python26 needs a small change in Portfile to build a true universal binary
----------------------------+-----------------------------------------------
  Reporter:  10.50 at free.fr  |       Owner:  mcalhoun at macports.org
      Type:  defect         |      Status:  assigned             
  Priority:  Normal         |   Milestone:  Port Bugs            
 Component:  ports          |     Version:  1.6.0                
Resolution:                 |    Keywords:                       
      Port:  python26       |  
----------------------------+-----------------------------------------------

Comment(by mcalhoun at macports.org):

 libz.dylib comes into play in the binascii package:
 {{{
 otool -L
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /lib-dynload/binascii.so
 /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /lib-dynload/binascii.so:
         /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
 version 1.2.3)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 111.1.1)
 }}}

 On Leopard, /usr/lib/libz.dylib is a 4 arch dylib, but as a rule, MacPorts
 [http://trac.macports.org/wiki/FAQ#WhyisMacPortsusingitsownlibraries uses
 its own libraries].[[BR]]
 Therefore, /usr/lib/libz.dylib should not be used.

 I am not sure how DYLD_LIBRARY_PATH relates to this question.[[BR]]
 Although some ports make use of it, I do not think it plays a general role
 in MacPorts development.[[BR]]
 In any event, we can not expect the user of these libraries to set
 DYLD_LIBRARY_PATH.

 I agree that building a universal zlib probably is not too
 difficult.[[BR]]
 Of course, zlib already supports ppc and i386 universal.[[BR]]
 MacPorts 1.6 does not support 64-bit universal builds.[[BR]]
 As mentioned in a previous [comment:3 comment], MacPorts 1.7 will support
 them.[[BR]]
 I suspect that once MacPorts 1.7 is released, then zlib (and python26)
 could support 64-bit in short order.

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


More information about the macports-tickets mailing list