Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106772 - Can no longer build tethereal on a machine without X
Summary: Can no longer build tethereal on a machine without X
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Marcelo Goes (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-21 03:44 UTC by Chris Paulson-Ellis
Modified: 2005-09-21 14:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ethereal-0.10.12.ebuild.diff (ethereal-0.10.12.ebuild.diff,911 bytes, patch)
2005-09-21 09:48 UTC, Marcelo Goes (RETIRED)
Details | Diff
ethereal-0.10.12.ebuild.diff (ethereal-0.10.12.ebuild.diff,1.27 KB, patch)
2005-09-21 13:48 UTC, Marcelo Goes (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Paulson-Ellis 2005-09-21 03:44:46 UTC
When trying to update ethereal from 0.10.5 to 0.10.12 on a machine without X,
configure fails while trying to find GTK+.

It used to be if you had -gtk, then the ethereal ebuild would work and it would
just build tethereal, not ethereal. I think it did this by adding
--disable-ethereal to the configure line. I think this feature may have been
broken as the result of the fix to #20475

Reproducible: Always
Steps to Reproduce:
On a machine without any X libraries, do

USE="-gtk" emerge ethereal

Actual Results:  
...
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --build=i686-pc-linux-gnu --with-ssl --enable-ipv6
--without-adns --without-krb5 --without-net-snmp --without-ucd-snmp
--enable-dftest --enable-randpkt --sysconfdir=/etc/ethereal --enable-editcap
--enable-capinfos --enable-text2pcap --enable-dftest --enable-randpkt
...
checking for GTK+ - version >= 2.0.0... no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLIB - version >= 2.0.0... no
*** Could not run GLIB test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GLIB is incorrectly installed.
configure: error: GLib2 distribution not found.


Expected Results:  
Built tethereal only.
Comment 2 Marcelo Goes (RETIRED) gentoo-dev 2005-09-21 09:48:39 UTC
Created attachment 68942 [details, diff]
ethereal-0.10.12.ebuild.diff

Indeed; $(use_enable gtk gtk2) fell only inside the if use gtk condition; I
apologize. Would you mind testing this patch?
Comment 3 Chris Paulson-Ellis 2005-09-21 10:06:25 UTC
Looks good. With the patch & USE=-gtk, configure now decides not to build the
GUI on a machine without GTK.

I haven't tested that you get the same result on a machine that *does* have GTK
installed, but where you don't want the ebuild to use it.

Thanks for the speedy response,
Chris.
Comment 4 Chris Paulson-Ellis 2005-09-21 10:18:36 UTC
...I thought that might not work. On a machine that *does* have GTK installed,
trying to compile without the GUI does not work...

USE="-gtk" emerge -av ethereal
...
The Ethereal package has been configured with the following options.
                    Build ethereal : yes
                   Build tethereal : yes

I think it needs to add --desable-ethereal to make this work. Older versions of
the ebuild did this I think, though there is some comment that this flag does
not work properly.

Chris.
Comment 5 Marcelo Goes (RETIRED) gentoo-dev 2005-09-21 13:48:37 UTC
Created attachment 68966 [details, diff]
ethereal-0.10.12.ebuild.diff

I think this time it's fixed, --disable-ethereal worked for me.

USE=-gtk emerge -v ethereal &> ~/emerge.log
grep Build ~/emerge.log
 * Building without gtk support
		    Build ethereal : no
		   Build tethereal : yes

Test, please? :-)
Comment 6 Chris Paulson-Ellis 2005-09-21 14:12:25 UTC
It looks good. Configure now says that it is only building tethereal in both
scenarios.

Thanks for the help.
Chris.
Comment 7 Marcelo Goes (RETIRED) gentoo-dev 2005-09-21 14:23:25 UTC
Cool, committed fixes to cvs.
Thanks for your input!