summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2018-10-10 20:10:17 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-10-11 20:35:09 +0200
commit64b9d917ddaf5e7bff1169be27e97a00dec2302f (patch)
tree784c54b43e1ca41e4b13714ef114bd4722796eb6 /kde-frameworks/solid
parentkde-frameworks/extra-cmake-modules: allarches stable (diff)
downloadgentoo-64b9d917ddaf5e7bff1169be27e97a00dec2302f.tar.gz
gentoo-64b9d917ddaf5e7bff1169be27e97a00dec2302f.tar.bz2
gentoo-64b9d917ddaf5e7bff1169be27e97a00dec2302f.zip
kde-frameworks: Drop 5.46.0
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'kde-frameworks/solid')
-rw-r--r--kde-frameworks/solid/Manifest1
-rw-r--r--kde-frameworks/solid/files/solid-5.46.0-crash-on-unmount.patch193
-rw-r--r--kde-frameworks/solid/solid-5.46.0-r1.ebuild35
3 files changed, 0 insertions, 229 deletions
diff --git a/kde-frameworks/solid/Manifest b/kde-frameworks/solid/Manifest
index 2ff9ad6b7f7..6a759d7fc10 100644
--- a/kde-frameworks/solid/Manifest
+++ b/kde-frameworks/solid/Manifest
@@ -1,2 +1 @@
-DIST solid-5.46.0.tar.xz 257668 BLAKE2B 3ec991f4b5b9f68cbf6770663625f7c332f1cbfc3d0ec6b489b464c8c460bd509dc570135075cae45430b2857d9cccbc6df48bf754f4d880858e4484f8fcbb32 SHA512 3b5a62f9723cd164a0ee2504e27a650bfae4a9d6b063db08e95d4a2735242092b39cb5b509d28408ca435adce18bf780c22a0acb4c8bf47749c5273edf6ed46c
DIST solid-5.50.0.tar.xz 259468 BLAKE2B 3176b3f3b78b3daae088cfad783e8a5fab03a3ee20bdaa122cf0fd33ddf668cd350ec5e91fa0606d9a1e1cb953ce18bc804401464b75135aab0a99a2b2bf8639 SHA512 f51c7bcaed7b2390f1b290791d7e9dc4a86ce8a925a2955c072be66274257c81c7872f76105fa8a03b35c184a8598551aa2bfa74017de487fc5a3521ea49d6a1
diff --git a/kde-frameworks/solid/files/solid-5.46.0-crash-on-unmount.patch b/kde-frameworks/solid/files/solid-5.46.0-crash-on-unmount.patch
deleted file mode 100644
index 378890b6b87..00000000000
--- a/kde-frameworks/solid/files/solid-5.46.0-crash-on-unmount.patch
+++ /dev/null
@@ -1,193 +0,0 @@
-From 967dc53dc9a5d1c7ba0c9f57fcb9bc640cd9663b Mon Sep 17 00:00:00 2001
-From: Kai Uwe Broulik <kde@privat.broulik.de>
-Date: Wed, 16 May 2018 14:37:33 +0200
-Subject: [FStab Handling] Clean up process running by using lambdas
-
-Encapsulates the QProcess* into the job it's supposed to be doing without storing it as a member and polluting state when multiple
-actions are requested simultaneously.
-
-CCBUG: 388499
-
-Differential Revision: https://phabricator.kde.org/D9653
----
- src/solid/devices/backends/fstab/fstabhandling.cpp | 29 +++++++--------
- src/solid/devices/backends/fstab/fstabhandling.h | 9 ++---
- .../devices/backends/fstab/fstabstorageaccess.cpp | 42 ++++++++--------------
- .../devices/backends/fstab/fstabstorageaccess.h | 3 --
- 4 files changed, 30 insertions(+), 53 deletions(-)
-
-diff --git a/src/solid/devices/backends/fstab/fstabhandling.cpp b/src/solid/devices/backends/fstab/fstabhandling.cpp
-index 9d078dd..e56f55a 100644
---- a/src/solid/devices/backends/fstab/fstabhandling.cpp
-+++ b/src/solid/devices/backends/fstab/fstabhandling.cpp
-@@ -226,34 +226,31 @@ QStringList Solid::Backends::Fstab::FstabHandling::options(const QString &device
- return options;
- }
-
--QProcess *Solid::Backends::Fstab::FstabHandling::callSystemCommand(const QString &commandName,
-- const QStringList &args,
-- QObject *obj, const char *slot)
-+bool Solid::Backends::Fstab::FstabHandling::callSystemCommand(const QString &commandName, const QStringList &args,
-+ const QObject *receiver, std::function<void(QProcess *)> callback)
- {
- QStringList env = QProcess::systemEnvironment();
- env.replaceInStrings(QRegExp("^PATH=(.*)", Qt::CaseInsensitive), "PATH=/sbin:/bin:/usr/sbin/:/usr/bin");
-
-- QProcess *process = new QProcess(obj);
-+ QProcess *process = new QProcess();
-
-- QObject::connect(process, SIGNAL(finished(int,QProcess::ExitStatus)),
-- obj, slot);
-+ QObject::connect(process, static_cast<void(QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), receiver,
-+ [process, callback](int exitCode, QProcess::ExitStatus exitStatus) {
-+ Q_UNUSED(exitCode);
-+ Q_UNUSED(exitStatus);
-+ callback(process);
-+ process->deleteLater();
-+ });
-
- process->setEnvironment(env);
- process->start(commandName, args);
-
- if (process->waitForStarted()) {
-- return process;
-- } else {
-- delete process;
-- return nullptr;
-+ return true;
- }
--}
-
--QProcess *Solid::Backends::Fstab::FstabHandling::callSystemCommand(const QString &commandName,
-- const QString &device,
-- QObject *obj, const char *slot)
--{
-- return callSystemCommand(commandName, QStringList() << device, obj, slot);
-+ delete process;
-+ return false;
- }
-
- void Solid::Backends::Fstab::FstabHandling::_k_updateMtabMountPointsCache()
-diff --git a/src/solid/devices/backends/fstab/fstabhandling.h b/src/solid/devices/backends/fstab/fstabhandling.h
-index 2b6b9d9..bcd6c33 100644
---- a/src/solid/devices/backends/fstab/fstabhandling.h
-+++ b/src/solid/devices/backends/fstab/fstabhandling.h
-@@ -25,6 +25,8 @@
- #include <QtCore/QString>
- #include <QtCore/QMultiHash>
-
-+#include <functional>
-+
- class QProcess;
- class QObject;
-
-@@ -44,12 +46,7 @@ public:
- static QStringList currentMountPoints(const QString &device);
- static QStringList mountPoints(const QString &device);
- static QStringList options(const QString &device);
-- static QProcess *callSystemCommand(const QString &commandName,
-- const QStringList &args,
-- QObject *obj, const char *slot);
-- static QProcess *callSystemCommand(const QString &commandName,
-- const QString &device,
-- QObject *obj, const char *slot);
-+ static bool callSystemCommand(const QString &commandName, const QStringList &args, const QObject *recvr, std::function<void(QProcess *)> callback);
- static void flushMtabCache();
- static void flushFstabCache();
-
-diff --git a/src/solid/devices/backends/fstab/fstabstorageaccess.cpp b/src/solid/devices/backends/fstab/fstabstorageaccess.cpp
-index a4063ff..e8fce5b 100644
---- a/src/solid/devices/backends/fstab/fstabstorageaccess.cpp
-+++ b/src/solid/devices/backends/fstab/fstabstorageaccess.cpp
-@@ -91,10 +91,13 @@ bool FstabStorageAccess::setup()
- return false;
- }
- m_fstabDevice->broadcastActionRequested("setup");
-- m_process = FstabHandling::callSystemCommand("mount", filePath(),
-- this, SLOT(slotSetupFinished(int,QProcess::ExitStatus)));
--
-- return m_process != nullptr;
-+ return FstabHandling::callSystemCommand("mount", {filePath()}, this, [this](QProcess *process) {
-+ if (process->exitCode() == 0) {
-+ m_fstabDevice->broadcastActionDone("setup", Solid::NoError, QString());
-+ } else {
-+ m_fstabDevice->broadcastActionDone("setup", Solid::UnauthorizedOperation, process->readAllStandardError());
-+ }
-+ });
- }
-
- void FstabStorageAccess::slotSetupRequested()
-@@ -108,10 +111,13 @@ bool FstabStorageAccess::teardown()
- return false;
- }
- m_fstabDevice->broadcastActionRequested("teardown");
-- m_process = FstabHandling::callSystemCommand("umount", filePath(),
-- this, SLOT(slotTeardownFinished(int,QProcess::ExitStatus)));
--
-- return m_process != nullptr;
-+ return FstabHandling::callSystemCommand("umount", {filePath()}, this, [this](QProcess *process) {
-+ if (process->exitCode() == 0) {
-+ m_fstabDevice->broadcastActionDone("teardown", Solid::NoError, QString());
-+ } else {
-+ m_fstabDevice->broadcastActionDone("teardown", Solid::UnauthorizedOperation, process->readAllStandardError());
-+ }
-+ });
- }
-
- void FstabStorageAccess::slotTeardownRequested()
-@@ -119,31 +125,11 @@ void FstabStorageAccess::slotTeardownRequested()
- emit teardownRequested(m_fstabDevice->udi());
- }
-
--void FstabStorageAccess::slotSetupFinished(int exitCode, QProcess::ExitStatus /*exitStatus*/)
--{
-- if (exitCode == 0) {
-- m_fstabDevice->broadcastActionDone("setup", Solid::NoError, QString());
-- } else {
-- m_fstabDevice->broadcastActionDone("setup", Solid::UnauthorizedOperation, m_process->readAllStandardError());
-- }
-- delete m_process;
--}
--
- void FstabStorageAccess::slotSetupDone(int error, const QString &errorString)
- {
- emit setupDone(static_cast<Solid::ErrorType>(error), errorString, m_fstabDevice->udi());
- }
-
--void FstabStorageAccess::slotTeardownFinished(int exitCode, QProcess::ExitStatus /*exitStatus*/)
--{
-- if (exitCode == 0) {
-- m_fstabDevice->broadcastActionDone("teardown", Solid::NoError, QString());
-- } else {
-- m_fstabDevice->broadcastActionDone("teardown", Solid::UnauthorizedOperation, m_process->readAllStandardError());
-- }
-- delete m_process;
--}
--
- void FstabStorageAccess::slotTeardownDone(int error, const QString &errorString)
- {
- emit teardownDone(static_cast<Solid::ErrorType>(error), errorString, m_fstabDevice->udi());
-diff --git a/src/solid/devices/backends/fstab/fstabstorageaccess.h b/src/solid/devices/backends/fstab/fstabstorageaccess.h
-index 10ca0a9..61deb88 100644
---- a/src/solid/devices/backends/fstab/fstabstorageaccess.h
-+++ b/src/solid/devices/backends/fstab/fstabstorageaccess.h
-@@ -68,8 +68,6 @@ Q_SIGNALS:
- void teardownRequested(const QString &udi) Q_DECL_OVERRIDE;
-
- private Q_SLOTS:
-- void slotSetupFinished(int exitCode, QProcess::ExitStatus exitStatus);
-- void slotTeardownFinished(int exitCode, QProcess::ExitStatus exitStatus);
- void onMtabChanged(const QString &device);
- void connectDBusSignals();
-
-@@ -80,7 +78,6 @@ private Q_SLOTS:
-
- private:
- Solid::Backends::Fstab::FstabDevice *m_fstabDevice;
-- QProcess *m_process;
- QString m_filePath;
- bool m_isAccessible;
- bool m_isIgnored;
---
-cgit v0.11.2
-
diff --git a/kde-frameworks/solid/solid-5.46.0-r1.ebuild b/kde-frameworks/solid/solid-5.46.0-r1.ebuild
deleted file mode 100644
index b300aed7ec9..00000000000
--- a/kde-frameworks/solid/solid-5.46.0-r1.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-VIRTUALX_REQUIRED="test"
-inherit kde5
-
-DESCRIPTION="Provider for platform independent hardware discovery, abstraction and management"
-LICENSE="LGPL-2.1+"
-KEYWORDS="amd64 ~arm ~arm64 x86"
-IUSE="nls"
-
-RDEPEND="
- $(add_qt_dep qtdbus)
- $(add_qt_dep qtdeclarative)
- $(add_qt_dep qtwidgets)
- $(add_qt_dep qtxml)
- sys-fs/udisks:2
- virtual/udev
-"
-DEPEND="${RDEPEND}
- nls? ( $(add_qt_dep linguist-tools) )
- test? ( $(add_qt_dep qtconcurrent) )
-"
-
-PATCHES=( "${FILESDIR}/${P}-crash-on-unmount.patch" )
-
-pkg_postinst() {
- kde5_pkg_postinst
-
- if ! has_version "app-misc/media-player-info" ; then
- einfo "For media player support, install app-misc/media-player-info"
- fi
-}