Opened 11 years ago

Closed 11 years ago

#39397 closed defect (fixed)

gtkmm @2.24.3 (and deps): change active variants usage

Reported by: cooljeanius (Eric Gallager) Owned by: dbevans (David B. Evans)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: nonstop.server@…
Port: gtkmm pangomm cairomm

Description

I currently have the following ports installed (that are relevant to this ticket):

Local-Admins-MacBook-Pro:~ root# port installed pangomm cairomm gtkmm pango cairo
The following ports are currently installed:
  cairo @1.12.14_0+quartz+universal+x11 (active)
  cairomm @1.10.0_1+universal (active)
  gtkmm @2.24.2_1+universal (active)
  pango @1.34.1_1+quartz+universal+x11 (active)
  pangomm @2.28.4_1+universal (active)

Trying to upgrade, I run into these errors:

:msg:archivefetch --->  Fetching archive for cairomm
:debug:archivefetch Executing proc-pre-org.macports.archivefetch-archivefetch-0
:debug:archivefetch Checking cairo for active variants for depspec 'path:lib/pkgconfig/cairo.pc:cairo'
:debug:archivefetch cairo is installed with the following variants: +quartz+universal+x11
:debug:archivefetch   required: , forbidden: quartz
:debug:archivefetch   rejected, because forbidden variant quartz is present
:error:archivefetch org.macports.archivefetch for port cairomm returned: cairo must be installed without +quartz.
:debug:archivefetch Error code: NONE
:debug:archivefetch Backtrace: cairo must be installed without +quartz.
:msg:archivefetch --->  Fetching archive for pangomm
:debug:archivefetch Executing proc-pre-org.macports.archivefetch-archivefetch-0
:debug:archivefetch Checking cairo for active variants for depspec 'path:lib/pkgconfig/cairo.pc:cairo'
:debug:archivefetch cairo is installed with the following variants: +quartz+universal+x11
:debug:archivefetch   required: x11, forbidden: 
:debug:archivefetch   accepted
:debug:archivefetch cairomm is installed with the following variants: +universal
:debug:archivefetch   required: x11, forbidden: 
:debug:archivefetch   rejected, because required variant x11 is missing
:error:archivefetch org.macports.archivefetch for port pangomm returned: cairomm must be installed with +x11.
:debug:archivefetch Error code: NONE
:debug:archivefetch Backtrace: cairomm must be installed with +x11.
:msg:archivefetch --->  Fetching archive for gtkmm
:debug:archivefetch Executing proc-pre-org.macports.archivefetch-archivefetch-0
:debug:archivefetch Checking cairo for active variants for depspec 'path:lib/pkgconfig/cairo.pc:cairo'
:debug:archivefetch cairo is installed with the following variants: +quartz+universal+x11
:debug:archivefetch   required: , forbidden: quartz
:debug:archivefetch   rejected, because forbidden variant quartz is present
:error:archivefetch org.macports.archivefetch for port gtkmm returned: cairo must be installed without +quartz.
:debug:archivefetch Error code: NONE
:debug:archivefetch Backtrace: cairo must be installed without +quartz.

pangomm's and cairomm's +quartz and +x11 variants don't actually conflict:

Local-Admins-MacBook-Pro:~ root# port variants pangomm cairomm gtkmm
pangomm has the variants:
   quartz: Support for native Mac OS X graphics
   universal: Build for multiple architectures
[+]x11: Enable X11 support
cairomm has the variants:
   quartz: Support for native Mac OS X graphics
   universal: Build for multiple architectures
[+]x11: Enable X11 support
gtkmm has the variants:
   quartz: Support for native Mac OS X graphics
     * conflicts with x11
   universal: Build for multiple architectures
[+]x11: Enable X11 support
     * conflicts with quartz

So it should technically be possible to install pangomm and cairomm with both +x11 and +quartz. However, the way they use active_variants makes this impossible.

Change History (5)

comment:1 Changed 11 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:2 Changed 11 years ago by cooljeanius (Eric Gallager)

A similar point has been brought up on the mailing lists: https://lists.macosforge.org/pipermail/macports-dev/2013-June/022930.html

comment:3 Changed 11 years ago by cooljeanius (Eric Gallager)

Also this is split off from #39320

comment:4 Changed 11 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

comment:5 Changed 11 years ago by dbevans (David B. Evans)

Cc: devans@… removed
Resolution: fixed
Status: assignedclosed

Fix committed in r107000.

Note: See TracTickets for help on using tickets.