1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

comms/gqrx: Always build with Qt5

Gqrx crashes when built with Qt6, e.g. when selecting demodulator:

  0  memcpy () at /usr/src/lib/libc/amd64/string/memmove.S:306
  1  0x000000080140edd9 in ?? () from /usr/local/lib/qt6/libQt6Gui.so.6
  2  0x0000000801416193 in QRasterPaintEngine::drawImage(QPointF const&, QImage const&) () from /usr/local/lib/qt6/libQt6Gui.so.6
  3  0x00000000003569ba in ?? ()
  4  0x0000000800b3c555 in QWidget::event(QEvent*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  5  0x0000000800bcf37b in QFrame::event(QEvent*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  6  0x0000000800ae943a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  7  0x0000000800aea526 in QApplication::notify(QObject*, QEvent*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  8  0x0000000801cd3d43 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/local/lib/qt6/libQt6Core.so.6
  9  0x0000000800b2d681 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  10 0x0000000800b4d3ae in QWidgetRepaintManager::paintAndFlush() () from /usr/local/lib/qt6/libQt6Widgets.so.6
  11 0x0000000800b4d820 in QWidgetRepaintManager::sync() () from /usr/local/lib/qt6/libQt6Widgets.so.6
  12 0x0000000800b3c784 in QWidget::event(QEvent*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  13 0x0000000800c76a69 in QMainWindow::event(QEvent*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  14 0x0000000800ae943a in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  15 0x0000000800aea526 in QApplication::notify(QObject*, QEvent*) () from /usr/local/lib/qt6/libQt6Widgets.so.6
  16 0x0000000801cd3d43 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/local/lib/qt6/libQt6Core.so.6
  17 0x0000000801cd4e16 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/local/lib/qt6/libQt6Core.so.6
  18 0x0000000801f47578 in ?? () from /usr/local/lib/qt6/libQt6Core.so.6
  19 0x00000008034a7034 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0
  20 0x00000008034a7373 in ?? () from /usr/local/lib/libglib-2.0.so.0
  21 0x00000008034a7418 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0
  22 0x0000000801f46f89 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/local/lib/qt6/libQt6Core.so.6
  23 0x0000000801cdd407 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/local/lib/qt6/libQt6Core.so.6
  24 0x0000000801cd4491 in QCoreApplication::exec() () from /usr/local/lib/qt6/libQt6Core.so.6

This patch avoids Qt6 detection. We will switch to Qt6 later, following
comms/gnuradio dependency (that still depends on Qt5).

PR:	272543
Reported by:	trasz
This commit is contained in:
Ganael LAPLANCHE 2023-07-24 16:52:39 +02:00
parent d0ab0c2b53
commit ef05a49890
2 changed files with 14 additions and 1 deletions

View File

@ -1,7 +1,7 @@
PORTNAME= gqrx
PORTVERSION= 2.16
DISTVERSIONPREFIX= v
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= comms hamradio

View File

@ -0,0 +1,13 @@
--- CMakeLists.txt.orig 2023-04-28 17:35:04 UTC
+++ CMakeLists.txt
@@ -121,10 +121,7 @@ else()
endif()
# 3rd Party Dependency Stuff
-find_package(Qt6 QUIET COMPONENTS Core Network Widgets Svg SvgWidgets)
-if(NOT Qt6_FOUND)
find_package(Qt5 REQUIRED COMPONENTS Core Network Widgets Svg)
-endif()
include(FindPkgConfig)
find_package(Gnuradio-osmosdr REQUIRED)