From abae0c4769ed11bdccc598de34e0d1c3229da418 Mon Sep 17 00:00:00 2001 From: Sergei Reznikov Date: Tue, 2 Oct 2018 15:18:29 +0300 Subject: [PATCH] QuiteRSS: workaround a crash on quit --- .../patches/quiterss-0.18.12.patchset | 31 +++++++++++++++++++ net-news/quiterss/quiterss-0.18.12.recipe | 3 +- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 net-news/quiterss/patches/quiterss-0.18.12.patchset diff --git a/net-news/quiterss/patches/quiterss-0.18.12.patchset b/net-news/quiterss/patches/quiterss-0.18.12.patchset new file mode 100644 index 000000000..d4c5fa07c --- /dev/null +++ b/net-news/quiterss/patches/quiterss-0.18.12.patchset @@ -0,0 +1,31 @@ +From 38d78bb149104ad44a0fd70dfd4dd34061d0c96a Mon Sep 17 00:00:00 2001 +From: Sergei Reznikov +Date: Tue, 2 Oct 2018 15:12:39 +0300 +Subject: Workaround for a crash on quit + + +diff --git a/src/application/logfile.cpp b/src/application/logfile.cpp +index 04c9c13..03711b7 100644 +--- a/src/application/logfile.cpp ++++ b/src/application/logfile.cpp +@@ -36,7 +36,8 @@ void LogFile::msgHandler(QtMsgType type, const QMessageLogContext &, const QStri + if (!mainApp->dataDirInitialized()) + return; + +- QFile file; ++} ++/* QFile file; + file.setFileName(mainApp->dataDir() + "/debug.log"); + QIODevice::OpenMode openMode = QIODevice::WriteOnly | QIODevice::Text; + +@@ -74,6 +75,7 @@ void LogFile::msgHandler(QtMsgType type, const QMessageLogContext &, const QStri + file.close(); + } + } ++*/ + #else + void LogFile::msgHandler(QtMsgType type, const char *msg) + { +-- +2.19.0 + diff --git a/net-news/quiterss/quiterss-0.18.12.recipe b/net-news/quiterss/quiterss-0.18.12.recipe index 4b88b2b1e..9155801a8 100644 --- a/net-news/quiterss/quiterss-0.18.12.recipe +++ b/net-news/quiterss/quiterss-0.18.12.recipe @@ -15,11 +15,12 @@ restart application) HOMEPAGE="https://quiterss.org/" COPYRIGHT="2011-2018 QuiteRSS Team" LICENSE="GNU GPL v3" -REVISION="1" +REVISION="2" SOURCE_URI="https://github.com/QuiteRSS/quiterss/archive/$portVersion.tar.gz" CHECKSUM_SHA256="120de0d640e2c417d664872b8b8881c85c3e76aec9b76d235f0e12e5ee78f01f" SOURCE_FILENAME="quiterss-$portVersion.tar.gz" ADDITIONAL_FILES="quiterss.rdef.in" +PATCHES="quiterss-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86"