Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

gnuplot 5.0 --with-wxmac fails to compile wxt terminal #35815

Closed
silberzwiebel opened this issue Jan 13, 2015 · 5 comments
Closed

gnuplot 5.0 --with-wxmac fails to compile wxt terminal #35815

silberzwiebel opened this issue Jan 13, 2015 · 5 comments

Comments

@silberzwiebel
Copy link

Hi there,

don't know if I missed the appropriate line in brew options gnuplot, but if I compile gnuplot 5.0 with the following line, I expected that the wxt terminal would be available:
brew install gnuplot --with-wxmac
However, there is no wxt terminal available in gnuplot. During the preparation of this issue I found the message in the log, that cairo is also needed. So, compiling gnuplot with brew install gnuplot --with-wxmac --with-cairo resulted in a gnuplot version with the wxt terminal. Maybe you could consider adding informations on how to obtain the wxt terminal?

Thanks,
silberzwiebel

@DomT4
Copy link
Member

DomT4 commented Jan 13, 2015

Seems to be there already?

brew info gnuplot
==> Options
--with-aquaterm
    Build with AquaTerm support
--with-cairo
    Build the Cairo based terminals
--with-latex
    Build with LaTeX support
--with-pdflib-lite
    Build with pdflib-lite support
--with-qt
    Build with qt support
--with-tests
    Verify the build with make check (1 min)
--with-wxmac
    Build with wxmac support
--with-x11
    Build with x11 support
--without-emacs
    Do not build Emacs lisp files
--without-gd
    Build without gd support
--without-lua
    Build without the lua/TikZ terminal
--HEAD
    Install HEAD version

Unless you were looking for a more verbose option? Such as --with-cairo, "Build the Cairo based terminals, i.e. wxt terminal"?

@silberzwiebel
Copy link
Author

I was confused that the --with-wxmac option did not compile the wxt terminal. I'm not into all of gnuplot's dependencies and just thought that this is the right option. However, the warning that the wxt terminal will not be built due to missing cairo dependency is not passed on the brew install gnuplot --with-wxmac command. I just found this by accident.

@DomT4
Copy link
Member

DomT4 commented Jan 13, 2015

I submitted #35833 as a proposed fix, if that's any good?

MikeMcQuaid pushed a commit that referenced this issue Jan 13, 2015
Adds a mirror. Removes the subjective time reference in the tests
option. Adds a more verbose wxmac option…

Takes a wild swing at closing #35815.

Closes #35833.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
@jacknagel
Copy link
Contributor

The wxmac option introduces a dependency on pango, which itself depends on cairo. However we explicitly disable cairo unless with-cairo is passed. That seems wrong to me.

Maybe this?

diff --git a/Library/Formula/gnuplot.rb b/Library/Formula/gnuplot.rb
index 75f485a..4d9b374 100644
--- a/Library/Formula/gnuplot.rb
+++ b/Library/Formula/gnuplot.rb
@@ -80,7 +80,7 @@ def install
     args << "--with-pdf=#{pdflib}" if build.with? "pdflib-lite"
     args << ((build.with? "gd") ? "--with-gd=#{gd}" : "--without-gd")
     args << "--disable-wxwidgets"  if build.without? "wxmac"
-    args << "--without-cairo"      if build.without? "cairo"
+    args << "--without-cairo"      if build.without? "cairo" and build.without? "wxmac"
     args << "--enable-qt"          if build.with? "qt"
     args << "--without-lua"        if build.without? "lua"
     args << "--without-lisp-files" if build.without? "emacs"

@DomT4
Copy link
Member

DomT4 commented Jan 13, 2015

Oh, blurgh. Never noticed that. That's a strange mix of conflicting instructions. Your patch looks like a good fix.

@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants