Bug 35873 - GNUnet should allow "-gtk" USE flag
|
Bug#:
35873
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: All
|
|
OS/Version: All
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: eradicator@gentoo.org
|
Reported By: Sebastian@SSpaeth.de
|
|
Component: Ebuilds
|
|
|
URL:
|
|
Summary: GNUnet should allow "-gtk" USE flag
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2003-12-15 06:52 0000
|
Currently the gnunet package depends on X,gtk, etc...
This is because of the GTK client. However, it is an optional client and can be disabled in ./configure. Therefore a "-X" USE flag should disable the building of the GTK client and remove the "X" dependency.
I am new to Gentoo and it will take a while to figure the (rather trivial) solution out. If somebody is faster than me... you are welcome to contribute this.
Turned out to be quite easy (portage seems really nice). I haven't tried it out
to actually compile it. Will report here if anything breaks. I need help with
the checkin (never did it, don't know the procedure).
One open issue (how do I determine the *default* state of a USE flag. I suppose
'gtk' should be turned on by default.
diff gnunet-0.6.0a.ebuild gnunet-0.6.0b.ebuild
21c21
< =x11-libs/gtk+-1.2*
---
> gtk? (=x11-libs/gtk+-1.2*)
26c26
< econf `use_enable ipv6` || die
---
> econf `use_with gtk` `use_enable ipv6` || die
adapt bug title to reflect reality. We need IUSE="gtk" not "X" here
Last post for now (sorry for the number of postings):
1) I compiled with and without gtk installed and everything went fine. So it works
2) Of course one should use "gtk? ( =x11-libs/gtk+-1.2* )" AND NOT
"gtk? (=x11-libs/gtk+-1.2*)" (as indicated in my diff)
3) I kept the gtk+ dependency as it was. I don't know whether it would work with gtk+2 as well. Probably it should be changed to ">=" ? (or leave it for now as is).
Thanks for considering my (first and probably clumsy) patch :)
I don't use this package... (yet!) mholzer, as you were the last one to commit
on gnunet... I bequeath this bug to you :)
gtk, mysql, and crypt USE flags added...