Opened 9 years ago

Closed 9 years ago

#27804 closed defect (fixed)

rb-glib2: arch mismatch with rb-pkg-config

Reported by: JPershin@… Owned by: kimuraw (kimura wataru)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc:
Port: rb-glib2 rb-pkg-config

Description (last modified by mf2k (Frank Schima))

but I get the following message...

--->  Computing dependencies for rb-gnome
Error: Cannot install rb-glib2 for the arch(s) 'i386 ppc' because
Error: its dependency rb-pkg-config does not build for the required arch(s) by default
Error: and does not have a universal variant.
Error: Unable to execute port: architecture mismatch
To report a bug, see <http://guide.macports.org/#project.tickets>

any suggestions?

Change History (10)

comment:1 Changed 9 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to kimuraw@…
Port: rb-glib2 added

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

Port: rb-pkg-config added
Summary: attempting to sudo port install rb-gnomerb-glib2: arch mismatch with rb-pkg-config

comment:3 in reply to:  description Changed 9 years ago by jmroot (Joshua Root)

Replying to JPershin@…:

any suggestions?

Try not using +universal? What OS version and hardware are you on?

comment:4 Changed 9 years ago by kimuraw (kimura wataru)

Status: newassigned

thanks for your reporting,

There are two problems.

  1. rb-pkg-config should be "noarch". rb-pkg-config is a pure-ruby program.
  2. rb-gnome libraries' ports do not support "universal" variant. The ports are build as single architecture against +universal.

I've fixed (1) at r74715, and now working to fix (2).

comment:5 Changed 9 years ago by kimuraw (kimura wataru)

Resolution: fixed
Status: assignedclosed

I fixed the problem (2) at r74726.

please try to install port:rb-gnome after `port selfupdate'.

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

FYI, this change will make the ports fail on Tiger because its arch(1) can't be used in this way.

comment:7 Changed 9 years ago by JPershin@…

Resolution: fixed
Status: closedreopened

purchased and installed snow leopard OSX.

Attempted to 'port selfupdate' and received following error message

---> Updating the ports tree Error: Synchronization of the local ports tree failed doing rsync Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed

attempted to 'sudo port install rb-gnome and received following error message

---> Computing dependencies for rb-gnome Error: Cannot install rb-glib2 for the arch(s) 'i386 x86_64' because Error: its dependency rb-pkg-config does not build for the required arch(s) by default Error: and does not have a universal variant. Error: Unable to execute port: architecture mismatch To report a bug, see <http://guide.macports.org/#project.tickets>

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

  1. After upgrading to a new major OS version you need to follow the Migration instructions.
  2. You don't have the fix because your sync failed. There's a relevant FAQ entry.

comment:9 Changed 9 years ago by kimuraw (kimura wataru)

please upgrade rb-pkg-config before install rb-glib.

% sudo port upgrade rb-pkg-config
% port installed rb-pkg-config
The following ports are currently installed:
  rb-pkg-config @1.0.7_0 (active)  # your rb-pkg-config would be 1.0.7
% sudo port intall rb-gnome

comment:10 Changed 9 years ago by kimuraw (kimura wataru)

Resolution: fixed
Status: reopenedclosed

I close this ticket. If your problem is not solved, you can reopen this ticket.

Note: See TracTickets for help on using tickets.