From 816b1423e749b1a2b3c365039eeb462b5f3243bb Mon Sep 17 00:00:00 2001 From: Michal Ruprich Date: Jul 11 2018 15:22:21 +0000 Subject: Fixing build error with newer qt5 version --- diff --git a/wireshark-0008-qt5-includes.patch b/wireshark-0008-qt5-includes.patch new file mode 100644 index 0000000..f286cb1 --- /dev/null +++ b/wireshark-0008-qt5-includes.patch @@ -0,0 +1,63 @@ +From ea197d88a3e85ff238ffebda28baadc36dc34b7d Mon Sep 17 00:00:00 2001 +From: =?utf8?q?Jo=C3=A3o=20Valverde?= +Date: Fri, 1 Jun 2018 16:15:47 +0100 +Subject: [PATCH] Fix compilation with Qt 5.11 +MIME-Version: 1.0 +Content-Type: text/plain; charset=utf8 +Content-Transfer-Encoding: 8bit + +On my system (Arch Linux) with Qt 5.11 these includes are required +to avoid undefined declarations. + +Change-Id: Iffb0aa4d867ea55cf4a5e8fe7df9a6264c5b3be3 +Reviewed-on: https://code.wireshark.org/review/27947 +Petri-Dish: João Valverde +Reviewed-by: Roland Knall +Tested-by: Petri Dish Buildbot +Reviewed-by: João Valverde +--- + ui/qt/packet_format_group_box.cpp | 1 + + ui/qt/time_shift_dialog.cpp | 3 +++ + ui/qt/wireless_frame.cpp | 1 + + 3 files changed, 5 insertions(+) + +diff --git a/ui/qt/packet_format_group_box.cpp b/ui/qt/packet_format_group_box.cpp +index a80a71a..3c0fff2 100644 +--- a/ui/qt/packet_format_group_box.cpp ++++ b/ui/qt/packet_format_group_box.cpp +@@ -10,6 +10,7 @@ + #include + + #include ++#include + + PacketFormatGroupBox::PacketFormatGroupBox(QWidget *parent) : + QGroupBox(parent), +diff --git a/ui/qt/time_shift_dialog.cpp b/ui/qt/time_shift_dialog.cpp +index 93882c0..7906bd2 100644 +--- a/ui/qt/time_shift_dialog.cpp ++++ b/ui/qt/time_shift_dialog.cpp +@@ -14,6 +14,9 @@ + #include + #include + ++#include ++#include ++ + + TimeShiftDialog::TimeShiftDialog(QWidget *parent, capture_file *cf) : + QDialog(parent), +diff --git a/ui/qt/wireless_frame.cpp b/ui/qt/wireless_frame.cpp +index bd9076a..46fb2dd 100644 +--- a/ui/qt/wireless_frame.cpp ++++ b/ui/qt/wireless_frame.cpp +@@ -23,6 +23,7 @@ + #include + + #include ++#include + + // To do: + // - Disable or hide invalid channel types. +-- +2.7.4 diff --git a/wireshark.spec b/wireshark.spec index 2d168c0..69255cd 100644 --- a/wireshark.spec +++ b/wireshark.spec @@ -6,7 +6,7 @@ Summary: Network traffic analyzer Name: wireshark Version: 2.6.1 -Release: 1%{?dist} +Release: 2%{?dist} Epoch: 1 License: GPL+ Url: http://www.wireshark.org/ @@ -30,6 +30,7 @@ Patch5: wireshark-0005-Fix-paths-in-a-wireshark.desktop-file.patch # Fedora-specific Patch6: wireshark-0006-Move-tmp-to-var-tmp.patch Patch7: wireshark-0007-cmakelists.patch +Patch8: wireshark-0008-qt5-includes.patch #install tshark together with wireshark GUI Requires: %{name}-cli = %{epoch}:%{version}-%{release} @@ -264,6 +265,9 @@ getent group usbmon >/dev/null || groupadd -r usbmon %{_libdir}/pkgconfig/%{name}.pc %changelog +* Wed Jul 11 2018 Michal Ruprich - 1:2.6.1-2 +- Fixing build error with newer qt5 version + * Thu May 24 2018 Michal Ruprich - 1:2.6.1-1 - New version 2.6.1