Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] chicken <--> egg (NFS & tty video)
Date: Sat, 14 May 2011 10:24:04
Message-Id: 201105141221.52091.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] chicken <--> egg (NFS & tty video) by Felix Miata
1 Apparently, though unproven, at 11:38 on Saturday 14 May 2011, Felix Miata did
2 opine thusly:
3
4 > On 2011/05/14 08:25 (GMT+0200) Alan McKinnon composed:
5 > > Felix Miata composed:
6 > >> emerge: there are no ebuilds built with USE flags to satisfy
7 > >> ">=media-libs/libcanberra-0.4[gtk]".
8 > >> !!! One of the following packages is required to complete your request:
9 > >> - media-libs/libcanberra-0.26 (Change USE: +gtk)
10 > >> (dependency required by "x11-misc/notification-daemon-0.5.0" [ebuild])
11 > >> (dependency required by "virtual/notification-daemon-0[gnome]"
12 > >> [ebuild]) (dependency required by "x11-libs/libnotify-0.7.2" [ebuild])
13 > >> (dependency required by "media-video/vlc-1.1.9[libnotify]" [ebuild])
14 > >> (dependency required by "media-libs/phonon-vlc-0.3.2" [ebuild])
15 > >> (dependency required by "media-libs/phonon-4.5.0[vlc]" [ebuild])
16 > >> (dependency required by "kde-base/kdelibs-4.6.2-r3" [ebuild])
17 > >> (dependency required by
18 > >> "kde-misc/polkit-kde-kcmodules-0.98_pre20101127" [ebuild])
19 > >> <end screen output>
20 > >>
21 > >> Is it telling me I have to change my USE from -gtk to +gtk, or can
22 > >> emerging one of those 8 packages listed satisfy the dep? IOW, it's
23 > >> unclear to me what "One of the following packages" actually refers to.
24 > >
25 > > It's telling you that you must enable USE=gtk for libcanberra for that
26 > > build to succeed. The chain of packages listed won't solve the problem,
27 > > they are causing it.
28 >
29 > That's what I was afraid of, a "list" of one followed by a genuine list.
30 > :-(
31
32 What's hard about it?
33
34 You have a failed dependency. The next logical question to ask is "what is the
35 dependency? What other package requires this package?"
36
37 The only way to answer that is to list them all recursively, all the way back
38 to the root of the tree.
39
40 In this case you need libcanberra built with USE=gtk
41 That depends on x11-misc/notification-daemon-0.5.0
42 Pulled in by virtual/notification-daemon-0 built with USE=gnome
43
44 and so on and so on. It's a simple graph actually.
45
46 >
47 > > Easiest is to list gtk in USE in make.conf, then everything that uses gtk
48 > > will link against it. If you are worried about Gnome, this wil not cause
49 > > gnome to be installed, just gtk+
50 >
51 > Maybe someone can humor me and not go with the "easiest" route. Let's
52 > assume I could live without any Mozilla products or Gimp, and want a
53 > system free not just of Gnome but also of GTK. Let's say I'm deaf, and no
54 > speakers will ever be attached to the system, which has an onboard sound
55 > chip rather than a PCI sound card I could simply remove. What would it
56 > take to eliminate this apparent KDE dependence on GTK (and sound support)?
57 > How "portable" is a sound event library that makes KDE depend on GTK? For
58 > now, I've cut USE down to only "bash-completion ncurses samba slang
59 > xattr", but it hasn't helped me to get everything I need to work outside
60 > of X. Until I have working NFS and NUM state obeying the BIOS, I have
61 > little interest in what's required to make X functional, and no interest
62 > in audible notifications.
63
64 First of all, I don't know what you want. Only you know what you want.
65
66 KDE does not depend on GTK here. Reading the above list from the bottom up:
67
68 You want KDE, so you get kdelibs. That gives you phonon with vlc support. vlc
69 (not a KDE package) is configured to use libnotify, which is a gnome package
70 and needs notification-daemon. THAT requires gtk.
71
72
73 Lets back up a bit. With something like Ubuntu, someone (the package
74 maintainer) went through a insanely gigantic amount of ball-ache to figure out
75 the dependencies and switch stuff on and off so that you never have to deal
76 with this. The downside is that you get whatever the maintainer felt you
77 should have.
78
79 gentoo is different - you are in complete control. This means that you have to
80 go through the insanely gigantic ball-ache work yourself. The ebuilds help
81 somewhat with USE flags, so with "USE=-gnome -gtk" you could disable all
82 optional gnome and gtk dependencies. Sometimes you get a hard dependency that
83 isn't optional, in that case you are SOL and must make a decision whether to
84 have gnome or not. Either way, you get to choose, and you also get to have to
85 think long and hard first.
86
87 Back to your list.
88
89 The little fucker that is causing your issue is vlc support and libnotify.
90
91 Do you want these? Define what you want exactly, and enable or disable USE
92 flags to suit your choices.
93
94 Do keep in mind that I can't tell you what to do because you haven't really
95 defined what you want yet. I could tell you to add
96 "-gnome -gtk -vlc -libnotify"
97 to USE in /etc/make.conf and that would certainly obliterate gnome for sure.
98 But it might also be overreaching.
99
100
101
102
103
104
105 >
106 > BTW, my 3rd kernel did solve my video on ttys problem, and get me access to
107 > my EXT2 partition. :-)
108
109 --
110 alan dot mckinnon at gmail dot com

Replies

Subject Author
Re: [gentoo-user] chicken <--> egg (NFS & tty video) Mick <michaelkintzios@×××××.com>