Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gnuplot with cairo without X [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
deurk
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 190
Location: Earth 1.3

PostPosted: Mon Feb 21, 2011 3:43 pm    Post subject: gnuplot with cairo without X [SOLVED] Reply with quote

Hi all,

I'm looking for a way to install gnuplot with Cairo but without X.
I can compile cairo without X but when trying to compile gnuplot with the cairo USE flag, it will require X for cairo.

Code:
 USE="-X cairo" emerge -pv gnuplot

gives
Code:
emerge: there are no ebuilds built with USE flags to satisfy ">=x11-libs/cairo-1.6[X,svg]".
!!! One of the following packages is required to complete your request
- x11-libs/cairo-1.10.2-r1 (Change USE: +X)
(dependency required by "x11-libs/gtk+-2.22.1-r1" [ebuild])
(dependency required by "sci-visualization/gnuplot-4.4.2[cairo,-wxwidgets]" [ebuild])
(dependency required by "gnuplot" [argument])

Any idea how I can get out of this?

Thanks.


Last edited by deurk on Tue Feb 22, 2011 3:14 pm; edited 1 time in total
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2158
Location: Berlin, Germany

PostPosted: Tue Feb 22, 2011 10:50 am    Post subject: Reply with quote

gtk+ hard depends on cairo with the X USE flag enabled, so there is no way around this, except if you can modify gnuplot to not require gtk+.
Back to top
View user's profile Send private message
deurk
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 190
Location: Earth 1.3

PostPosted: Tue Feb 22, 2011 12:20 pm    Post subject: Reply with quote

Hard for me to understand since gnuplot does not have any gtk USE flag and compiles fine without any gtk installed.

Thanks for your answer though.
Back to top
View user's profile Send private message
ulm
Developer
Developer


Joined: 04 Oct 2004
Posts: 98
Location: Mainz, Germany

PostPosted: Tue Feb 22, 2011 3:09 pm    Post subject: Reply with quote

Looks like the dependency on gtk+ could be dropped. Could you do the following test for me:

  • $ USE="-cairo" emerge --onlydeps =gnuplot-4.4.2
  • $ emerge -1 -u cairo pango
  • Make sure that you (still) don't have gtk+ installed.
  • $ USE="cairo" emerge --nodeps =gnuplot-4.4.2
  • Test if it works as expected.


Last edited by ulm on Tue Feb 22, 2011 3:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
deurk
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 190
Location: Earth 1.3

PostPosted: Tue Feb 22, 2011 3:13 pm    Post subject: Reply with quote

Did the trick :)

Thanks.
Back to top
View user's profile Send private message
deurk
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 190
Location: Earth 1.3

PostPosted: Tue Feb 22, 2011 3:48 pm    Post subject: Reply with quote

Whoops, one more thing.

How can I make that permanent?
when I want to update world portage tells me to rebuild gnuplot with -cairo.
Back to top
View user's profile Send private message
ulm
Developer
Developer


Joined: 04 Oct 2004
Posts: 98
Location: Mainz, Germany

PostPosted: Tue Feb 22, 2011 4:43 pm    Post subject: Reply with quote

I've fixed it in CVS. Re-sync in a few hours from now and you should be o.k.
Back to top
View user's profile Send private message
deurk
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 190
Location: Earth 1.3

PostPosted: Tue Feb 22, 2011 4:43 pm    Post subject: Reply with quote

Wonderful!

Thanks a lot.
Back to top
View user's profile Send private message
deurk
Apprentice
Apprentice


Joined: 11 Mar 2003
Posts: 190
Location: Earth 1.3

PostPosted: Tue Feb 22, 2011 4:52 pm    Post subject: Reply with quote

Worked for me without problem.
What does it want to install in your case?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum