From 8fbb68e1baedec6f1bd129ab2357e97987a06cfc Mon Sep 17 00:00:00 2001 From: Thomas Beierlein Date: Wed, 9 Jul 2025 12:44:14 +0200 Subject: [PATCH] media-radio/wsjtx_improved: Fix build with Qt-6.9.1 Signed-off-by: Thomas Beierlein --- .../files/wsjtx-2.8.0-qt691.patch | 40 +++++++++++++++++++ ....ebuild => wsjtx_improved-2.8.0-r1.ebuild} | 1 + 2 files changed, 41 insertions(+) create mode 100644 media-radio/wsjtx_improved/files/wsjtx-2.8.0-qt691.patch rename media-radio/wsjtx_improved/{wsjtx_improved-2.8.0.ebuild => wsjtx_improved-2.8.0-r1.ebuild} (97%) diff --git a/media-radio/wsjtx_improved/files/wsjtx-2.8.0-qt691.patch b/media-radio/wsjtx_improved/files/wsjtx-2.8.0-qt691.patch new file mode 100644 index 0000000000000..97e7d207834c2 --- /dev/null +++ b/media-radio/wsjtx_improved/files/wsjtx-2.8.0-qt691.patch @@ -0,0 +1,40 @@ +diff --git a/widgets/logqso.cpp b/widgets/logqso.cpp +index 3f81b4d..eed2835 100755 +--- a/widgets/logqso.cpp ++++ b/widgets/logqso.cpp +@@ -176,7 +176,7 @@ void LogQSO::loadSettings () + QString comments_location; // load the content of comments.txt file to the comments combo box + QDir dataPath {QStandardPaths::writableLocation (QStandardPaths::AppDataLocation)}; + comments_location = dataPath.exists("comments.txt") ? dataPath.absoluteFilePath("comments.txt") : m_config->data_dir ().absoluteFilePath ("comments.txt"); +- QFile file2 = {comments_location}; ++ QFile file2 {comments_location}; + QTextStream stream2(&file2); + if(file2.open (QIODevice::ReadOnly | QIODevice::Text)) { + while (!stream2.atEnd()) { +@@ -538,7 +538,7 @@ void LogQSO::on_addButton_clicked() + if (m_comments_temp != "") { + QString comments_location = m_config->writeable_data_dir().absoluteFilePath("comments.txt"); + if(QFileInfo::exists(m_config->writeable_data_dir().absoluteFilePath("comments.txt"))) { +- QFile file2 = {comments_location}; ++ QFile file2 {comments_location}; + if (file2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append)) { + QTextStream out(&file2); + out << m_comments_temp // append new line to comments.txt +@@ -555,7 +555,7 @@ void LogQSO::on_addButton_clicked() + "\"comments.txt\" from your log directory"); + } + } else { +- QFile file2 = {comments_location}; ++ QFile file2 {comments_location}; + if (file2.open(QIODevice::WriteOnly | QIODevice::Text | QIODevice::Append)) { + QTextStream out(&file2); + out << ("\n" + m_comments_temp) // create file "comments.txt" and add a blank line +@@ -573,7 +573,7 @@ void LogQSO::on_addButton_clicked() + } + } + ui->comments->clear(); // clear the comments combo box and reload updated content +- QFile file2 = {comments_location}; ++ QFile file2 {comments_location}; + QTextStream stream2(&file2); + if(file2.open (QIODevice::ReadOnly | QIODevice::Text)) { + while (!stream2.atEnd()) { diff --git a/media-radio/wsjtx_improved/wsjtx_improved-2.8.0.ebuild b/media-radio/wsjtx_improved/wsjtx_improved-2.8.0-r1.ebuild similarity index 97% rename from media-radio/wsjtx_improved/wsjtx_improved-2.8.0.ebuild rename to media-radio/wsjtx_improved/wsjtx_improved-2.8.0-r1.ebuild index 6c36197e41ab6..5dc3883253489 100644 --- a/media-radio/wsjtx_improved/wsjtx_improved-2.8.0.ebuild +++ b/media-radio/wsjtx_improved/wsjtx_improved-2.8.0-r1.ebuild @@ -37,6 +37,7 @@ PATCHES=( "${FILESDIR}/wsjtx-2.3.0-drop-docs.patch" "${FILESDIR}/wsjtx-clang.patch" "${FILESDIR}/wsjtx-fix-sound-dir.patch" + "${FILESDIR}/wsjtx-2.8.0-qt691.patch" ) DOCS=( AUTHORS BUGS NEWS README THANKS )