Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-24 Thread Arnau Bria
On Wed, 23 Aug 2006 11:03:56 -0700
Richard Fish wrote:

Hi Richard,

 You probably need to add the gtk useflag.  echo
 net-analyzer-wireshark gtk /etc/portage/package.use.  Otherwise you
 just get the console version, tshark.

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...

 HTH,
 -Richard
Cheers!

-- 
Arnau Bria
http://blog.emergetux.net
Wiggum: Dispara a las ruedas Lou.
Lou: eee, es un tanque jefe.
Wiggum: Me tienes hartito con todas tus excusas.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-24 Thread Alan Mckinnon
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



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-24 Thread Arnau Bria
On Thu, 24 Aug 2006 11:18:47 +0200
Alan Mckinnon wrote:

 It's quite easy, but sometimes involves some detective work:

[...]

Thanks for your explanation!

-- 
Arnau Bria
http://blog.emergetux.net
Wiggum: Dispara a las ruedas Lou.
Lou: eee, es un tanque jefe.
Wiggum: Me tienes hartito con todas tus excusas.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-24 Thread Richard Fish

On 8/24/06, Arnau Bria [EMAIL PROTECTED] wrote:

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...


Well, in generalexperience.  And experimentation.  And emerge -pv
cat-egory/package.

Flags like gtk, qt, and X are _generally_ used to add in graphical
interfaces.  USE=crypt is _generally_ used to add encryption support.
USE=hal generally adds some kind of hot-plug device support for
desktops. But these are more guidelines that one gains from using and
working with Gentoo, and not rules.  For example, sys-apps/dbus has
qt, qt4, and gtk flags...but there is no GUI for dbus.  In fact in the
case of sys-apps/dbus, these are used to link against those toolkits
for the purpose of emitting events through to the user's desktop.

Global useflags are described in /usr/portage/profiles/use.desc, but
as they are global, and the descriptions short, they don't really
tell you a whole lot.  Global flags can have very different meanings
for different packages, and there is no document that says gtk is
required to build the wireshark GUI for wireshark.

The situation is a little better for local use flags
(/usr/portage/profiles/use.local.desc), as those flags are specific to
a package, so can have a more specific description.

So there was not really any good way for you to know that you needed
USE=gtk to get the GUI.  Even reading the ebuild would have only told
you that it causes the configure script to be run with --with-gtk2,
whatever that means.

However, it is frequently useful to look at what use flags a package
supports by doing emerge -pv cat-egory/package.  This will give you
a list of use flags that are available, and maybe an idea of what they
might do in the context of the package.  Indeed, this is what I did
for wireshark to discover that it had a gtk useflag, and from that, it
was obvious to me that it would be required to get the gtk-based GUI.

-Richard
--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Fernando Ferrari
Hi Frank, look this http://gentoo-wiki.com/Ethereal

Saludos
Fernando Ferrari
http://fernandorferrari.blogspot.com


-Mensaje original-
De: sdoma [mailto:[EMAIL PROTECTED] 
Enviado el: Miércoles, 23 de Agosto de 2006 11:03 a.m.
Para: gentoo-user@lists.gentoo.org
Asunto: [gentoo-user] Ethereal on the LiveCD but not in portage?

Hi,

I've tried to emerge Ethereal but I got this:

frankies ~ # emerge -s ethereal
Searching...   
[ Results for search key : ethereal ]
[ Applications found : 0 ]

Any suggestions?

Thanks in advance
Frank


-- 
gentoo-user@gentoo.org mailing list





__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread fire-eyes
On Wednesday 23 August 2006 10:03, sdoma wrote:
 Any suggestions?

The project moved to the name wireshark, try that instead.

-- 
99% of politicians make the rest look bad.
-- 
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Neata Alexandru
It's been renamed as Wireshark.

On Wed, 2006-08-23 at 11:28 -0300, Fernando Ferrari wrote:
 Hi Frank, look this http://gentoo-wiki.com/Ethereal
 
 Saludos
 Fernando Ferrari
 http://fernandorferrari.blogspot.com
 
 
 -Mensaje original-
 De: sdoma [mailto:[EMAIL PROTECTED] 
 Enviado el: Miércoles, 23 de Agosto de 2006 11:03 a.m.
 Para: gentoo-user@lists.gentoo.org
 Asunto: [gentoo-user] Ethereal on the LiveCD but not in portage?
 
 Hi,
 
 I've tried to emerge Ethereal but I got this:
 
 frankies ~ # emerge -s ethereal
 Searching...   
 [ Results for search key : ethereal ]
 [ Applications found : 0 ]
 
 Any suggestions?
 
 Thanks in advance
 Frank
 
 
 -- 
 gentoo-user@gentoo.org mailing list
 
 
   
   
   
 __
 Preguntá. Respondé. Descubrí.
 Todo lo que querías saber, y lo que ni imaginabas,
 está en Yahoo! Respuestas (Beta).
 ¡Probalo ya! 
 http://www.yahoo.com.ar/respuestas
 
 
 

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Keith Kastorff
On Wed, 2006-08-23 at 16:03 +0200, sdoma wrote:
 Any suggestions?

Ethereal has been renamed Wireshark.

-- 
Keith Kastorff
[EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Arnau Bria
On Wed, 23 Aug 2006 11:28:50 -0300
Fernando Ferrari wrote:

Hi,
 Hi Frank, look this http://gentoo-wiki.com/Ethereal

few days (or weeks) ago I asked for same thing to list. I installed
wireshark and, as it did not work, I forgot about it.

Now, after reading mini how-to, I found I have no wiresahrk binary:

# equery files wireshark
[ Searching for packages matching wireshark... ]
* Contents of net-analyzer/wireshark-0.99.2:
/usr
/usr/bin
/usr/bin/capinfos
/usr/bin/dftest
/usr/bin/dumpcap
/usr/bin/editcap
/usr/bin/ethereal - wireshark
/usr/bin/idl2wrs
/usr/bin/mergecap
/usr/bin/randpkt
/usr/bin/tethereal - tshark
/usr/bin/text2pcap
/usr/bin/tshark
/usr/lib

# ls -lsa /usr/bin/wire*
ls: /usr/bin/wire*: No existe el fichero o el directorio (no file found)

and ethereal is (obviously) a broken link...

is there any consideration to take care of when installing wireshark?

Thansk in advance,
Arnau
 Saludos
 Fernando Ferrari


-- 
Arnau Bria
http://blog.emergetux.net
Wiggum: Dispara a las ruedas Lou.
Lou: eee, es un tanque jefe.
Wiggum: Me tienes hartito con todas tus excusas.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ethereal on the LiveCD but not in portage?

2006-08-23 Thread Richard Fish

On 8/23/06, Arnau Bria [EMAIL PROTECTED] wrote:

Now, after reading mini how-to, I found I have no wiresahrk binary:


You probably need to add the gtk useflag.  echo
net-analyzer-wireshark gtk /etc/portage/package.use.  Otherwise you
just get the console version, tshark.

HTH,
-Richard
--
gentoo-user@gentoo.org mailing list