Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 393089 - sys-block/gparted-{0.9.1,0.10.0} wrongly pulls in gksu with USE=gtk
Summary: sys-block/gparted-{0.9.1,0.10.0} wrongly pulls in gksu with USE=gtk
Status: RESOLVED DUPLICATE of bug 387353
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gilles Dartiguelongue (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-04 08:35 UTC by Teika kazura
Modified: 2011-12-05 22:04 UTC (History)
1 user (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 Teika kazura 2011-12-04 08:35:32 UTC
If you have USE=gtk in sys-block/gparted-* (all versions - currently 0.9.1 and 0.10.0), it depends on x11-libs/gksu. But this is wrong. The flag "gtk" is to pull in x11-libs/gtk+, NOT, never, gksu. (gparted ebuild depends on gtkmm, so gtk+ is pulled in anyway.)

This "improvement" was introduced in bug #353121, so please read it first. In short, it was intended to support gnome, lxde, rox, and xfce. The #4 comment in that bug report is correct - thanks Christopher Head - but let me add another point:

Not only it's bad for gparted, but also this "fix" is inconsistent. app-emulation/q4wine and net-misc/dnetstats use USE=gnome to rely on gksu. (thanks to use.local.desc) If non-KDE DEs want gksu, then something has to be done, perhaps introduce a new flag "gksu", and if gnome or gksu is on, then depends on dev-libs/gksu. (Sorry, I'm not interested in DEs, and I can't propose a fix.) 

Thanks developers beforehand.

Reproducible: Always
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-12-04 09:25:05 UTC

*** This bug has been marked as a duplicate of bug 359527 ***
Comment 2 Teika kazura 2011-12-05 08:44:57 UTC
Yes, this is a duplicate of bug 359527 (sorry, but you usually don't search for closed bugs), but that bug is wrongly judged as "INVALID". Since I can't re-open it, I re-opened this instead.

The reporter's claim of bug 359527 was misunderstood. S/he meant:
* You can build gparted USE="-gtk" without losing any functions except gksu, but it has obvious side effects. An example more than obvious is:
  USE="-gtk" emerge -auDN world is 
* Even if you don't want gksu, USE="gtk" is natural. But when you want gparted, it pulls in unnecessary gksu and its dependency. (This is the core complaint, which is correct and thus repeated.)

The answer #2 in bug 359527 is correct as regards .desktop file. But it misses the above points, and the correct solution I sketched in the comment #1.
Comment 3 Pacho Ramos gentoo-dev 2011-12-05 22:04:01 UTC
Comment in bug 359527 then

*** This bug has been marked as a duplicate of bug 359527 ***
Comment 4 Pacho Ramos gentoo-dev 2011-12-05 22:04:52 UTC
Or better, bug 387353

*** This bug has been marked as a duplicate of bug 387353 ***