It may be desirable to install xscreensaver on systems which do not have gtk installed. The ebuild currently has >=x11-libs/gtk+-2 and >=gnome-base/libglade-1.99 hardcoded as dependencies. It should be changed so that these are only required if the gtk USE flag is defined. Reproducible: Always Steps to Reproduce: 1. Have a system which doesn't have GTK installed and has the gtk USE flag unset 2. emerge -p xscreensaver 3. Actual Results: gtk will be installed as a dependency and xscreensaver will be compiled using --with-gtk Expected Results: gtk should not be installed and xscreensaver should be compiled using --without-gtk
Created attachment 144204 [details] ebuild with optional gtk support This ebuild changes >=x11-libs/gtk+-2 and >=gnome-base/libglade-1.99 to be dependencies only if the gtk USE flag is set.
*** This bug has been marked as a duplicate of bug 100362 ***
How is this a duplicate? bug 100362 reports that building without gtk support does not work whereas this new ebuild works fine without gtk support
Yeah, the new ebuild works great without gtk+ support except that you don't get xscreensaver-demo unless you use motif instead, rendering the thing pretty much unless for vast majority of users. When you use motif instead, you get to bug 100362 once again since noone maintains that stuff and all the motif code is totally broken. So - gtk+ is not optional, sorry.
Yeah, I'm not going to add USE gtk there because upstream doesn't want it.. he made it very clear he doesn't want his software shipped "crippled"
Why not add a local USE flag then (say, brokenmotif)? That way people why really, really want to use it without gtk (and don't care about xscreensaver-demo) have a way to accomplish that but the "default shipping configuration" uses gtk. If upstream *really* doesn't want people using it without gtk then he should remove the --without-gtk option.
(In reply to comment #6) > If upstream *really* doesn't want people using it > without gtk then he should remove the --without-gtk option. Sounds like plan, just a wrong place to suggest similar things. Also all the motif cruft incompatible with anything but <=openmotif-2.1 could be nuked altogether, take this upstream please.
Okay, I have sent an e-mail upstream. In the meantime can we add a local USE flag that disables GTK & motif support for those of us why don't need GTK and/or xscreensaver-demo?
(In reply to comment #8) > Okay, I have sent an e-mail upstream. In the meantime can we add a local USE > flag that disables GTK & motif support for those of us why don't need GTK > and/or xscreensaver-demo? Already answered in Comment #5.