New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13870 (new defect)

Opened 5 years ago

Last modified 3 years ago

BUG: xchm 1.13 defaults to Mac version of wxWidgets

Reported by: guido.soranzio@… Owned by: markd@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port: xchm

Description

When not providing any flag to configure, xchm builds using the Mac version of wxWidgets.

The dependency on wxgtk should be specific of a x11 variant.

Change History

comment:1 Changed 5 years ago by afb@…

I cannot reproduce this. It seems to be using /opt/local/bin/wx-config and picks up wxGTK ?

comment:2 Changed 5 years ago by guido.soranzio@…

Because wxGTK'wx-config conflicts with the one already provided by wxWidgets, I suggested that the xchm's x11 version should be provided as a variant, otherwise the activation phase fails and even the casual user is requested to de/ativate the tho versions.

comment:3 Changed 5 years ago by afb@…

Ah, I see. Yes, this is a known shortcoming in MacPorts wxWidgets (only one at a time)

Feel free to borrow the ugly hackaround that I use in some of my own wxWidgets ports...

platform macosx {}
if { [variant_isset macosx] && ![variant_isset x11] } { default_variants +aqua }
if { [variant_isset puredarwin] } { default_variants +x11 }
if { [variant_isset freebsd] } { default_variants +x11 }

variant aqua requires macosx description "Use the wxMac port of wxWidgets" {

depends_lib-append	port:wxWidgets

}

variant x11 conflicts aqua description "Use the wxGTK port of wxWidgets" {

depends_lib-append	port:wxgtk

}

comment:4 Changed 5 years ago by markd@…

Is X11 optional for xchm? I did not think so.

comment:5 Changed 5 years ago by jmr@…

  • Cc markd@… removed
  • Owner changed from macports-tickets@… to markd@…

comment:6 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

comment:7 Changed 3 years ago by jmr@…

  • Port set to xchm
Note: See TracTickets for help on using tickets.