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.
The fix for Bug 106560 killed it. http://www.gentoo.org/cgi-bin/viewcvs.cgi/net-analyzer/ethereal/ethereal-0.10.12.ebuild?r1=1.8&r2=1.9
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?
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.
...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.
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? :-)
It looks good. Configure now says that it is only building tethereal in both scenarios. Thanks for the help. Chris.
Cool, committed fixes to cvs. Thanks for your input!