From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GGBQ0-0006mH-Ug for garchives@archives.gentoo.org; Thu, 24 Aug 2006 09:22:33 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k7O9KSE6019809; Thu, 24 Aug 2006 09:20:28 GMT Received: from cranium.sybase.co.za (sqlprd.sybase.co.za [192.96.139.1]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k7O9ILO5031116 for ; Thu, 24 Aug 2006 09:18:22 GMT Received: from localhost (cranium.sybase.co.za [127.0.0.1]) by cranium.sybase.co.za (Postfix) with ESMTP id 11A068343D for ; Thu, 24 Aug 2006 11:22:00 +0200 (SAST) X-Virus-Scanned: amavisd-new at sybase.co.za Received: from cranium.sybase.co.za ([127.0.0.1]) by localhost (cranium.sybase.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MGHSYbnas9GW for ; Thu, 24 Aug 2006 11:21:53 +0200 (SAST) Received: from [192.168.2.140] (unknown [192.168.2.140]) by cranium.sybase.co.za (Postfix) with ESMTP id B164F8343A for ; Thu, 24 Aug 2006 11:21:52 +0200 (SAST) Subject: Re: [gentoo-user] Ethereal on the LiveCD but not in portage? From: Alan Mckinnon To: gentoo-user@lists.gentoo.org In-Reply-To: <20060824101003.72f1e6cb@lx-arnau.pic.es> References: <1156341780.6698.15.camel@frankies> <200608231418.k7NEIK1H019471@robin.gentoo.org> <20060823180945.0eacb753@lx-arnau.pic.es> <7573e9640608231103m76a22e1fgb02e97ad242a2792@mail.gmail.com> <20060824101003.72f1e6cb@lx-arnau.pic.es> Content-Type: text/plain Date: Thu, 24 Aug 2006 11:18:47 +0200 Message-Id: <1156411127.18844.18.camel@gentoo> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Archives-Salt: 282289a9-5c12-4b07-a15f-32a9a6f8de60 X-Archives-Hash: 3000da03ed16f6178ad1986b2fced3f9 On Thu, 2006-08-24 at 10:10 +0200, Arnau Bria wrote: > Thanks for your reply, I have my wireshark running now... > just one more question, how do you know what "feature" provides each > use in a package? > I mean, how did you know wireshark needed gtk, but talking in general... It's quite easy, but sometimes involves some detective work: gentoo linux # emerge -pv wireshark These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] net-analyzer/wireshark-0.99.2 USE="gtk ssl threads -adns -ipv6 -kerberos (-selinux) -snmp" 12,068 kB Total size of downloads: 12,068 kB So it has a gtk USE flag. Tofind out what "gtk" means, you can either look into /usr/portage/profiles/use.desc directly: gentoo linux # cat /usr/portage/profiles/use.desc | grep gtk gtk - Adds support for x11-libs/gtk+ (The GIMP Toolkit) The other way is to use one of the tools in e.g. gentoolkit. I like equery: gentoo linux # equery uses -a wireshark [ Searching for packages matching wireshark... ] [ Colour Code : set unset ] [ Legend : Left column (U) - USE flags from make.conf ] [ : Right column (I) - USE flags packages was installed with ] [ Found these USE variables for net-analyzer/wireshark-0.99.2 ] U I - - adns : Adds support for the adns DNS client library + + gtk : Adds support for x11-libs/gtk+ (The GIMP Toolkit) Which nicely displays that wireshark USEs gtk, that the current config for it is to enable it, and that it was compiled with that flag enabled. The gtk flag is very common, it's one of those that when you see it in a spec, you know exactly what it's for and what it means. To truly know what the dev has done with the USE flag, check the .ebuild. IUSE tells you which flags are consulted: IUSE="adns gtk ipv6 snmp ssl kerberos threads selinux" The details are in DEPEND or RDEPEND. For wireshark, it's in RDEPEND. >>From the ebuild: RDEPEND=">=sys-libs/zlib-1.1.4 gtk? ( >=dev-libs/glib-2.0.4 =x11-libs/gtk+-2* x11-libs/pango dev-libs/atk ) !gtk? ( =dev-libs/glib-1.2* ) Which means that if gtk is set, portage will also emerge glib, gtk+, pango and atk. If gtk is not set, portage will check for glib, but for a lesser version. You can then iteratively check each of those packages to find what they do. Because !gtk doesn't depend on any X packages at all, we can conclude that no gtk flag means it will be compiled as a console-only app. There are probably 100s of other ways to find all this out. :-) Some resources where this is documented: man emerge man 5 portage man 5 make.conf man equery alan -- gentoo-user@gentoo.org mailing list