mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
kde-frameworks/knewstuff: drop 5.86.0*
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -1,3 +1,2 @@
|
||||
DIST knewstuff-5.85.0.tar.xz 1138788 BLAKE2B 6f037ddd3dd7d9499d19b8d10b2486ced1ab169180d69a004369158665eb098015c60fd657e9d84af7b15634a28abd13e761b2728861f3f88c02ac0510121c5c SHA512 2da81b520ecab1d43b79e75ec56cbba410bd0944b13ea53eeee5ca94c77f9c04ad91a35b0c1942516edc5101a365f2a91b774405183bc8bf82c6cd5fb53a0570
|
||||
DIST knewstuff-5.86.0.tar.xz 1142536 BLAKE2B 8b1aa8ee9e8dc54f0431f77516d3e39bb4f9ff33f72573fee27b749df692b32c850230a2bc566ee580a56b587af05822a0348cd61d58501c49b507fdf0d164bb SHA512 984291bb68e6bde5d90b35245c101c0feb64338ee4c0656802f4812c3a0619a5291307e8e5e2de99b7a34e29554e2283de6513156e7aac32f0d2198433bb45cc
|
||||
DIST knewstuff-5.87.0.tar.xz 1146336 BLAKE2B 1f1beff60c59532e892e9b5f561b6a0848bd55d8c483f8195496fb9ec269c2cd4fc3f22216669b6486d5ae987b5d664bc20ffe8d867e401de7be6a6f228b009f SHA512 6979417e3a8b4b9a1dae0850cb8e333d31c1124f60c67ecc292b0b9372e6c7fcd8d5ae8f59afdcc543379b148f0fc310cfc7a24f8ae8fbf29358de0508ff307b
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
From d09ba1917cb7e035a9aac6c27c86fc4df5da3194 Mon Sep 17 00:00:00 2001
|
||||
From: Albert Astals Cid <aacid@kde.org>
|
||||
Date: Mon, 27 Sep 2021 20:05:09 +0200
|
||||
Subject: [PATCH] Fix crash in DownloadWidget
|
||||
|
||||
BUGS: 443025
|
||||
---
|
||||
src/downloadwidget.cpp | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/downloadwidget.cpp b/src/downloadwidget.cpp
|
||||
index 40df2e8c..36cfde37 100644
|
||||
--- a/src/downloadwidget.cpp
|
||||
+++ b/src/downloadwidget.cpp
|
||||
@@ -97,7 +97,7 @@ Entry::List DownloadWidget::installedEntries()
|
||||
}
|
||||
|
||||
DownloadWidgetPrivate::DownloadWidgetPrivate(DownloadWidget *qq)
|
||||
- : q(q)
|
||||
+ : q(qq)
|
||||
, engine(new KNSCore::Engine)
|
||||
, model(new KNSCore::ItemsModel(engine))
|
||||
, messageTimer(nullptr)
|
||||
--
|
||||
GitLab
|
||||
|
||||
-58
@@ -1,58 +0,0 @@
|
||||
From f687c5abd0c5e9bd5a6688b6d9d50f2536b7d33d Mon Sep 17 00:00:00 2001
|
||||
From: Aleix Pol <aleixpol@kde.org>
|
||||
Date: Fri, 24 Sep 2021 14:31:05 +0200
|
||||
Subject: [PATCH] Include a user agent on KNS requests
|
||||
|
||||
---
|
||||
src/core/jobs/httpworker.cpp | 13 +++++++++++++
|
||||
1 file changed, 13 insertions(+)
|
||||
|
||||
diff --git a/src/core/jobs/httpworker.cpp b/src/core/jobs/httpworker.cpp
|
||||
index 4c218b08..b81edd2d 100644
|
||||
--- a/src/core/jobs/httpworker.cpp
|
||||
+++ b/src/core/jobs/httpworker.cpp
|
||||
@@ -7,7 +7,9 @@
|
||||
#include "httpworker.h"
|
||||
|
||||
#include "knewstuffcore_debug.h"
|
||||
+#include "knewstuffcore_version.h"
|
||||
|
||||
+#include <QCoreApplication>
|
||||
#include <QFile>
|
||||
#include <QMutex>
|
||||
#include <QMutexLocker>
|
||||
@@ -93,6 +95,15 @@ void HTTPWorker::setUrl(const QUrl &url)
|
||||
d->source = url;
|
||||
}
|
||||
|
||||
+static void addUserAgent(QNetworkRequest &request)
|
||||
+{
|
||||
+ QString agentHeader = QStringLiteral("KNewStuff/%1").arg(QLatin1String(KNEWSTUFFCORE_VERSION_STRING));
|
||||
+ if (QCoreApplication::instance()) {
|
||||
+ agentHeader += QStringLiteral("-%1/%2").arg(QCoreApplication::instance()->applicationName(), QCoreApplication::instance()->applicationVersion());
|
||||
+ }
|
||||
+ request.setHeader(QNetworkRequest::UserAgentHeader, agentHeader);
|
||||
+}
|
||||
+
|
||||
void HTTPWorker::startRequest()
|
||||
{
|
||||
if (d->reply) {
|
||||
@@ -101,6 +112,7 @@ void HTTPWorker::startRequest()
|
||||
}
|
||||
|
||||
QNetworkRequest request(d->source);
|
||||
+ addUserAgent(request);
|
||||
d->reply = s_httpWorkerNAM->get(request);
|
||||
connect(d->reply, &QNetworkReply::readyRead, this, &HTTPWorker::handleReadyRead);
|
||||
connect(d->reply, &QNetworkReply::finished, this, &HTTPWorker::handleFinished);
|
||||
@@ -144,6 +156,7 @@ void HTTPWorker::handleFinished()
|
||||
<< d->reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
|
||||
d->reply->deleteLater();
|
||||
QNetworkRequest request(d->redirectUrl);
|
||||
+ addUserAgent(request);
|
||||
d->reply = s_httpWorkerNAM->get(request);
|
||||
connect(d->reply, &QNetworkReply::readyRead, this, &HTTPWorker::handleReadyRead);
|
||||
connect(d->reply, &QNetworkReply::finished, this, &HTTPWorker::handleFinished);
|
||||
--
|
||||
GitLab
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_TEST="false"
|
||||
PVCUT=$(ver_cut 1-2)
|
||||
QTMIN=5.15.2
|
||||
inherit ecm kde.org
|
||||
|
||||
DESCRIPTION="Framework for downloading and sharing additional application data"
|
||||
|
||||
LICENSE="LGPL-2+"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
||||
IUSE="opds"
|
||||
|
||||
DEPEND="
|
||||
>=dev-qt/qtdeclarative-${QTMIN}:5
|
||||
>=dev-qt/qtgui-${QTMIN}:5
|
||||
>=dev-qt/qtnetwork-${QTMIN}:5
|
||||
>=dev-qt/qtwidgets-${QTMIN}:5
|
||||
>=dev-qt/qtxml-${QTMIN}:5
|
||||
=kde-frameworks/attica-${PVCUT}*:5
|
||||
=kde-frameworks/karchive-${PVCUT}*:5
|
||||
=kde-frameworks/kcompletion-${PVCUT}*:5
|
||||
=kde-frameworks/kconfig-${PVCUT}*:5
|
||||
=kde-frameworks/kcoreaddons-${PVCUT}*:5
|
||||
=kde-frameworks/ki18n-${PVCUT}*:5
|
||||
=kde-frameworks/kiconthemes-${PVCUT}*:5
|
||||
=kde-frameworks/kio-${PVCUT}*:5
|
||||
=kde-frameworks/kitemviews-${PVCUT}*:5
|
||||
=kde-frameworks/kpackage-${PVCUT}*:5
|
||||
=kde-frameworks/kservice-${PVCUT}*:5
|
||||
=kde-frameworks/ktextwidgets-${PVCUT}*:5
|
||||
=kde-frameworks/kwidgetsaddons-${PVCUT}*:5
|
||||
=kde-frameworks/kxmlgui-${PVCUT}*:5
|
||||
opds? ( =kde-frameworks/syndication-${PVCUT}*:5 )
|
||||
"
|
||||
RDEPEND="${DEPEND}
|
||||
>=kde-frameworks/kirigami-${PVCUT}:5
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-fix-crash-in-DownloadWidget.patch" # KDE-bug 443025
|
||||
"${FILESDIR}/${P}-include-user-agent-on-KNS-requests.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
$(cmake_use_find_package opds KF5Syndication)
|
||||
)
|
||||
|
||||
ecm_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user