Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#27715 closed defect (fixed)

py27-wxpython uses i386 build arch even on ppc

Reported by: chicagotripp (Altoine Barker) Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: realmightycat@…
Port: py27-wxpython

Description

I couldn't install py27-wxpython on my G5 because it kept giving me the following error:

DEBUG: Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py27-wxpython
DEBUG: OS darwin/9.8.0 (Mac OS X 10.5) arch powerpc
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: Using group file /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python27-1.0.tcl
DEBUG: universal_variant is false, so not adding the default universal variant
DEBUG: Starting logging for py27-wxpython
Error: Cannot install py27-wxpython for the arch(s) 'i386' because
Error: its dependency wxWidgets is only installed for the arch 'ppc'
Error: and does not have a universal variant.
DEBUG: architecture mismatch
    while executing
"macports::_upgrade_mport_deps $mport $target"
    (procedure "mportexec" line 26)
    invoked from within
"mportexec $workername $target"
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>

I made the following changes to the Portfile:

#configure.build_arch   i386
supported_archs i386 ppc

Basically, I did a port edit of py27-wxpython and commented out the build arch for i386 and added the line "supported_archs i386 ppc" without the quotes, saved my edit and then ran the command to install the port. Then I was able to finally have a successful install.

My command line steps:

sudo port edit py27-wxpython
sudo port install py27-wxpython

I have included the changed Portfile with revisions. I hope I did this correctly.

Attachments (1)

Portfile (1.7 KB) - added by chicagotripp (Altoine Barker) 10 years ago.
revised py27-wxpython Portfile

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by chicagotripp (Altoine Barker)

Attachment: Portfile added

revised py27-wxpython Portfile

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Cc: jwa@… removed
Owner: changed from macports-tickets@… to jwa@…

comment:2 Changed 10 years ago by jmroot (Joshua Root)

Type: submissiondefect

Please see the ticket guidelines regarding selecting an appropriate ticket type. A unified diff would be preferable rather than attaching the complete modified file, but in this case the change is so simple you don't really need to supply one.

comment:3 Changed 10 years ago by jmroot (Joshua Root)

Summary: py27-wxpython arch mismatch for ppcpy27-wxpython uses i386 build arch even on ppc

comment:4 Changed 9 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

comment:5 Changed 8 years ago by realmightycat@…

Cc: realmightycat@… added

Cc Me!

Note: See TracTickets for help on using tickets.