Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 473188 - =net-analyzer/wireshark-1.10.0-r1 - USE="gtk -qt4" disables building the wireshark executable
Summary: =net-analyzer/wireshark-1.10.0-r1 - USE="gtk -qt4" disables building the wire...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
: 473348 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-13 13:18 UTC by Nikita Kozlov
Modified: 2013-06-15 08:21 UTC (History)
1 user (show)

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


Attachments
wireshark-1.10.0-r1.ebuild.diff (wireshark-1.10.0-r1.ebuild.diff,838 bytes, patch)
2013-06-13 13:45 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Kozlov 2013-06-13 13:18:16 UTC
Hello,

in that new ebuild we have introduced the qt4 useflag.
Unfortunately in the src_configure step, the econf and use_enable is missused. We have both $(use_enable gtk wireshark) and $(use_enable qt4 wireshark) so if both useflags are not enabled it will result to something like --enable-wireshark --disable-wireshark and the binary won't be build.



Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-13 13:33:36 UTC
I don't see what you mean. If neither is enabled, USE="-gtk -qt4", you don't want the wireshark binary, right? This is precisely what happens with the -r0 ebuild when you set USE=-gtk. When you disable both USE flags, then you don't get the wireshark executable. Is that what you meant?

$ grep executable metadata.xml 
<flag name='gtk'>Build the wireshark executable with a GTK+ UI.</flag>
<flag name='qt4'>Build the wireshark executable with a Qt UI.</flag>
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-13 13:35:06 UTC
I guess this is what you meant.
Comment 3 Nikita Kozlov 2013-06-13 13:37:30 UTC
I mean if you have something like `USE="gtk -qt4" emerge wireshark` you will have something like 

./configure --enable-wireshark (due to the $(use_enable gtk wireshark)) --dissable-wireshark (due to the $(use_enable qt4 wireshark))
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-06-13 13:45:24 UTC
Created attachment 350886 [details, diff]
wireshark-1.10.0-r1.ebuild.diff

possible fix...
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-13 13:51:26 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #4)
> Created attachment 350886 [details, diff] [details, diff]
> wireshark-1.10.0-r1.ebuild.diff
> 
> possible fix...

That looks good.
Comment 6 Nikita Kozlov 2013-06-13 13:56:47 UTC
works for me, thanks for the quick fix.
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2013-06-13 14:01:50 UTC
Fixed in CVS. Thanks for the report and for the patch!
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2013-06-15 08:21:08 UTC
*** Bug 473348 has been marked as a duplicate of this bug. ***