Opened 11 years ago

Closed 10 years ago

#37035 closed enhancement (fixed)

plplot: change no_x11 variant to x11 variant

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: plplot

Description

The no_x11 variant should be changed to an x11 variant on by default, as we've done in other ports.

Attachments (1)

plplot.diff (1.6 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 11 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: newclosed

Committed in r99946.

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: closedreopened

Thanks but there are a couple problems. You didn't move the X11-related dependencies into the x11 variant, and you didn't add code to help users who had previously selected the no_x11 variant maintain that selection when upgrading. Previously, the no_x11 variant removed the tk and pango dependencies, so theoretically those dependencies should be moved from the global part of the portfile into the new x11 variant. That's what the attached patch does. I haven't committed it though because in my main MacPorts prefix plplot still ends up linked with tk and pango even without the x11 variant. And in a secondary MacPorts installation that defaults to quartz and no x11 and doesn't have tk installed, the build with my patch failed with this error:

make[2]: *** No rule to make target `/quartz-mp/lib/libtk.dylib', needed by `bindings/tcl/libplplottcltkd.9.2.0.dylib'.  Stop.

Without my patch, it does install tk and then build successfully.... but is still linked with X11, despite the -x11 variant selection.

Previously the no_x11 variant changed PLD_xcairo and PLD_tk from ON to OFF, and removed TK_INCLUDE_PATH and TK_LIBRARY, and added PLD_xwin=OFF and ENABLE_tk=OFF. So when inverting the variant meaning, I would have expected these definitions to simply swap from the -append to the -delete line and vice versa. Instead the new x11 variant also turns PLD_xfig from OFF to ON, and does not mention PLD_xwin or TK.

If you intended to make these other changes, then my only confusion is that surely there should be a difference in dependencies between +x11 and -x11, or else why have a variant at all.

Is the reason for the changes that the tk and pango ports themselves also offer an x11 variant? If so, note that on Leopard and older, tk does not offer quartz and x11 variants, and always builds x11.

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: plplot.diff added

comment:3 Changed 11 years ago by tenomoto (Takeshi Enomoto)

The x11 variant turns xcairo, xfig, xwin ON. I excluded tk from x11 because tk could be quartz. It could build x11 tk. I considered including tk in x11, but that may limit the use of aqua tk. I thought it would be better to have x11 tk even if -x11 is specified. I will see if there is a better option.

comment:4 Changed 10 years ago by mojca (Mojca Miklavec)

What's the status of this ticket? Can the subject be changed at least? The variant no_x11 is clearly not present any longer (and re-adding it four months after it has been removed makes no sense). I don't know if other problems were address, but it would make sense to open a new ticket or change this one to reflect the current needs. (I find it weird to see the suject "change no_x11 to x11" when this is clearly no longer needed.) Thanks.

comment:5 Changed 10 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: reopenedclosed

I finally committed in r114134. The title may look misleading, but it is about -x11, or no_x11.

Note: See TracTickets for help on using tickets.