-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wireshark 2.4.4 build broken #34003
Comments
I was just reading through CMakeLists.txt and the general outline if( CMAKE_C_COMPILER_ID MATCHES "MSVC") # checking if we're using the C compiler for Win
# ... who cares
else()
# ...
find_package(Qt5Core) # line 444
# ...
endif()
# ...
if(BUILD_wireshark_gtk) # line 770
# ... seems to suggest that Qt5Core is required even with I also tried building diff --git a/pkgs/applications/networking/sniffers/wireshark/default.nix b/pkgs/applications/networking/sniffers/wireshark/default.nix
index 5c7aaa7f054..9845c13c6d9 100644
--- a/pkgs/applications/networking/sniffers/wireshark/default.nix
+++ b/pkgs/applications/networking/sniffers/wireshark/default.nix
@@ -32,7 +32,7 @@ in stdenv.mkDerivation {
buildInputs = [
gettext pcre perl pkgconfig libpcap lua5 libssh openssl libgcrypt
libgpgerror gnutls geoip c-ares python glib zlib
- ] ++ optionals withQt (with qt5; [ qtbase qtmultimedia qtsvg qttools ])
+ ] ++ (with qt5; [ qtbase qtmultimedia qtsvg qttools ])
++ optionals withGtk [ gtk3 librsvg gsettings_desktop_schemas ]
++ optionals stdenv.isLinux [ libcap libnl ]
++ optionals stdenv.isDarwin [ SystemConfiguration ApplicationServices gmp ];
@aKriJcz, I just use the Qt variant of Wireshark and that works fine. Is there a reason why you are not using it? There is a chance that the conclusion will be drawn to remove the GTK variant for Wireshark and just support Qt going forward. |
See #33477 |
It looks like a fix was attempted by @adisbladis on 17.09 (089d869 and ab76932) but #33477 is superior and should be used instead. |
This was only affecting @dtzWill @jtojnar Thanks for pointing out the proper fix. |
Closing since |
@vidbina Well, I think it is just a matter of personal preference. But lately Qt apps started to behave strangely as can be seen in #24256. I guess it is mixing of release channels (although it shouldn't be a problem here on NixOS). But if Qt is needed for building a cli app, that is just not right. Sorry for necroing this issue, I just found my mail notice about this thread. Gmail is really good at hiding mails from GitHub. |
@aKriJcz QT is not needed, the issue was that both QT and GTK frontends would be built unless the QT one was explicitly disabled. |
@jtojnar Yes, I know it is not needed. That is why I say that it is not right to have it as a mandatory build dependency. |
Issue description
Package wireshark-gtk is broken after update to version 2.4.4.
Brief output with warnings:
Steps to reproduce
Updated system (nixos-rebuild switch --upgrade) with wireshark-gtk in installed packages.
Technical details
"x86_64-linux"
Linux 4.9.76, NixOS, 17.09.2731.92d088e891e (Hummingbird)
yes
no
nix-env (Nix) 1.11.16
"nixos-17.09.2799.d9a2891c32e"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
Temporary fix
I had to revert to previous version 2.4.2 with configuration override:
The text was updated successfully, but these errors were encountered: