Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 500982 - gnuplot-4.6.4 not support AquaTerm v1.1.1
Summary: gnuplot-4.6.4 not support AquaTerm v1.1.1
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: Normal normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-11 13:24 UTC by Changyuan Yu
Modified: 2014-07-23 19:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Changyuan Yu 2014-02-11 13:24:32 UTC
gnuplot configure use -laquaterm to check aquaterm support, which is not work for AquaTerm v1.1.1.

see https://github.com/Homebrew/homebrew/commit/486ec37

Reproducible: Always

Steps to Reproduce:
1. install AquaTerm v1.1.1
2. emerge gnuplot-4.6.4 with aqua USE
3.
Actual Results:  
gnuplot build without aquaterm support

Expected Results:  
gnuplot has aquaterm support

Use sed to modify configure script of gnuplot will works, see the simple patch below:

--- ../../usr/portage/sci-visualization/gnuplot/gnuplot-4.6.4.ebuild	2013-11-08 12:12:20.000000000 +0800
+++ sci-visualization/gnuplot/gnuplot-4.6.4.ebuild	2014-02-11 21:05:43.000000000 +0800
@@ -94,6 +94,10 @@
 	# of the gnuplot license
 	sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die
 
+	# for aqua term
+    sed -i -e 's/-laquaterm/-framework AquaTerm/g' "${WORKDIR}"/${P}/configure || die
+	
+
 	# hacky workaround
 	# Please hack the buildsystem if you like
 	if use prefix && use qt4; then
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2014-02-11 15:31:51 UTC
This should be reported upstream and fixed there!

(In reply to Changyuan Yu from comment #0)
> --- ../../usr/portage/sci-visualization/gnuplot/gnuplot-4.6.4.ebuild
> 2013-11-08 12:12:20.000000000 +0800
> +++ sci-visualization/gnuplot/gnuplot-4.6.4.ebuild	2014-02-11
> 21:05:43.000000000 +0800
> @@ -94,6 +94,10 @@
>  	# of the gnuplot license
>  	sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die
>  
> +	# for aqua term
> +    sed -i -e 's/-laquaterm/-framework AquaTerm/g'
> "${WORKDIR}"/${P}/configure || die
> +	
> +
>  	# hacky workaround
>  	# Please hack the buildsystem if you like
>  	if use prefix && use qt4; then
Wouldn't that break older version of aquaterm on Darwin?
Comment 2 Changyuan Yu 2014-02-11 15:56:16 UTC
(In reply to Christoph Junghans from comment #1)
> This should be reported upstream and fixed there!
I just find similar bug already report to upstream, but sadly the status is "closed-out-of-date"

http://sourceforge.net/p/gnuplot/patches/572/

> 
> (In reply to Changyuan Yu from comment #0)
> > --- ../../usr/portage/sci-visualization/gnuplot/gnuplot-4.6.4.ebuild
> > 2013-11-08 12:12:20.000000000 +0800
> > +++ sci-visualization/gnuplot/gnuplot-4.6.4.ebuild	2014-02-11
> > 21:05:43.000000000 +0800
> > @@ -94,6 +94,10 @@
> >  	# of the gnuplot license
> >  	sed -i -e "1s/.*/& (Gentoo revision ${PR})/" PATCHLEVEL || die
> >  
> > +	# for aqua term
> > +    sed -i -e 's/-laquaterm/-framework AquaTerm/g'
> > "${WORKDIR}"/${P}/configure || die
> > +	
> > +
> >  	# hacky workaround
> >  	# Please hack the buildsystem if you like
> >  	if use prefix && use qt4; then
> Wouldn't that break older version of aquaterm on Darwin?

I am sorry to forget to consider this, and I am not sure about this, probably will break old version. And my Mac OSX version is 10.9, so this hack maybe also not work on older version of the OS.

PS: I just find the macport also do similar things, http://trac.macports.org/ticket/34423
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2014-07-23 19:58:45 UTC
Got fixed upstream. Please try gnuplot-5.0 !