[MacPorts] #44086: py-sip @4.16.1 installs files with wrong target architecture

MacPorts noreply at macports.org
Thu Jun 19 03:27:03 PDT 2014


#44086: py-sip @4.16.1 installs files with wrong target architecture
-----------------------------+--------------------------------
 Reporter:  davide.liessi@…  |      Owner:  macports-tickets@…
     Type:  defect           |     Status:  new
 Priority:  Normal           |  Milestone:
Component:  ports            |    Version:
 Keywords:                   |       Port:  py-sip
-----------------------------+--------------------------------
 I installed MacPorts from source in `/opt/macports-i386` following the
 instructions
 [https://guide.macports.org/#installing.macports.source.multiple in the
 guide].
 I changed the CPU architecture target to `build_arch i386` in
 `macports.conf`, then I installed `py27-sip`.

 The file `sip.so` installed by `py27-sip` appears to have `x86_64` as
 target architecture:
 {{{
 $ file
 /opt/macports-i386/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/sip.so
 /opt/macports-i386/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/sip.so: Mach-O 64-bit x86_64 bundle
 }}}
 Importing `sip` in Python results in this error:
 {{{
 $ /opt/macports-i386/bin/python2.7
 Python 2.7.7 (default, Jun 18 2014, 14:59:35)
 [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> import sip
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
 ImportError:
 dlopen(/opt/macports-i386/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/sip.so, 2): no suitable image found.  Did find:
 /opt/macports-i386/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/sip.so: mach-o, but wrong architecture
 >>> ^D
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/44086>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list