aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2018-02-19 01:40:47 +0800
committerrakuco <rakuco@FreeBSD.org>2018-02-19 01:40:47 +0800
commit3601fd33ced0c7809bc7a5fa11e99fe1a28b21f7 (patch)
treed7e5c9f1de8166a82e38c2ae48cebf1b77f15ad5 /x11
parent9bacdcc81bfaf106a48d132c17123eb0038fabf6 (diff)
downloadfreebsd-ports-gnome-3601fd33ced0c7809bc7a5fa11e99fe1a28b21f7.tar.gz
freebsd-ports-gnome-3601fd33ced0c7809bc7a5fa11e99fe1a28b21f7.tar.zst
freebsd-ports-gnome-3601fd33ced0c7809bc7a5fa11e99fe1a28b21f7.zip
Update kdelibs to 4.14.38.
According to upstream, which has stopped making new releases of Qt4-based software, this is the last kdelibs release ever. Thanks to antoine for the exp-run. PR: 225991 Differential Revision: https://reviews.freebsd.org/D14411
Diffstat (limited to 'x11')
-rw-r--r--x11/kdelibs-kde4/Makefile4
-rw-r--r--x11/kdelibs-kde4/distinfo6
-rw-r--r--x11/kdelibs-kde4/files/patch-git_264e976_CVE-2017-8422200
-rw-r--r--x11/kdelibs-kde4/files/patch-git_57eaf6533
4 files changed, 6 insertions, 237 deletions
diff --git a/x11/kdelibs-kde4/Makefile b/x11/kdelibs-kde4/Makefile
index 790efcb6db08..d52ef7f6b8f9 100644
--- a/x11/kdelibs-kde4/Makefile
+++ b/x11/kdelibs-kde4/Makefile
@@ -3,7 +3,6 @@
PORTNAME= kdelibs
PORTVERSION= ${KDE4_KDELIBS_VERSION}
-PORTREVISION= 9
CATEGORIES= x11 kde kde-applications
PKGNAMESUFFIX= -kde4
@@ -30,6 +29,9 @@ RUN_DEPENDS= ${LOCALBASE}/share/icons/hicolor/index.theme:misc/hicolor-icon-them
docbook-xml>0:textproc/docbook-xml \
${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:textproc/docbook-xsl
+# kdelibs's last release was as part of KDE Applications 17.08.3
+KDE_APPLICATIONS_VERSION= 17.08.3
+
USES= cmake:outsource fam gettext grantlee:4 jpeg kde:4 perl5 \
shared-mime-info shebangfix tar:xz ssl
USE_GNOME= libxml2 libxslt
diff --git a/x11/kdelibs-kde4/distinfo b/x11/kdelibs-kde4/distinfo
index ba06aabbb529..31cb220dbcc9 100644
--- a/x11/kdelibs-kde4/distinfo
+++ b/x11/kdelibs-kde4/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1490532363
-SHA256 (KDE/applications/16.12.3/kdelibs-4.14.30.tar.xz) = a39fc3ef320c27ea49e5d238b2a860ef61824a20922268a18392b0521a38196d
-SIZE (KDE/applications/16.12.3/kdelibs-4.14.30.tar.xz) = 11643248
+TIMESTAMP = 1518867582
+SHA256 (KDE/applications/17.08.3/kdelibs-4.14.38.tar.xz) = 37fd43a34e8118406e03a5d0e53f4a03c8aa50b219e8484a5d42349dc0f2c3fe
+SIZE (KDE/applications/17.08.3/kdelibs-4.14.38.tar.xz) = 11644900
diff --git a/x11/kdelibs-kde4/files/patch-git_264e976_CVE-2017-8422 b/x11/kdelibs-kde4/files/patch-git_264e976_CVE-2017-8422
deleted file mode 100644
index e2ed5bb8b0f8..000000000000
--- a/x11/kdelibs-kde4/files/patch-git_264e976_CVE-2017-8422
+++ /dev/null
@@ -1,200 +0,0 @@
-From 264e97625abe2e0334f97de17f6ffb52582888ab Mon Sep 17 00:00:00 2001
-From: Albert Ast/.als Cid <aacid@kde.org>
-Date: Wed, 10 May 2017 10:06:07 +0200
-Subject: Verify that whoever is calling us is actually who he says he is
-
-CVE-2017-8422
----
- kdecore/auth/AuthBackend.cpp | 5 ++++
- kdecore/auth/AuthBackend.h | 7 ++++++
- kdecore/auth/backends/dbus/DBusHelperProxy.cpp | 27 ++++++++++++++++++++--
- kdecore/auth/backends/dbus/DBusHelperProxy.h | 6 ++++-
- .../auth/backends/policykit/PolicyKitBackend.cpp | 5 ++++
- kdecore/auth/backends/policykit/PolicyKitBackend.h | 1 +
- kdecore/auth/backends/polkit-1/Polkit1Backend.cpp | 5 ++++
- kdecore/auth/backends/polkit-1/Polkit1Backend.h | 1 +
- 8 files changed, 54 insertions(+), 3 deletions(-)
-
-diff --git a/kdecore/auth/AuthBackend.cpp b/kdecore/auth/AuthBackend.cpp
-index c953b81..0ba4650 100644
---- kdecore/auth/AuthBackend.cpp
-+++ kdecore/auth/AuthBackend.cpp
-@@ -54,6 +54,11 @@ void AuthBackend::setCapabilities(AuthBackend::Capabilities capabilities)
- d->capabilities = capabilities;
- }
-
-+AuthBackend::ExtraCallerIDVerificationMethod AuthBackend::extraCallerIDVerificationMethod() const
-+{
-+ return NoExtraCallerIDVerificationMethod;
-+}
-+
- bool AuthBackend::actionExists(const QString& action)
- {
- Q_UNUSED(action);
-diff --git a/kdecore/auth/AuthBackend.h b/kdecore/auth/AuthBackend.h
-index a86732e..6f4b1bc 100644
---- kdecore/auth/AuthBackend.h
-+++ kdecore/auth/AuthBackend.h
-@@ -43,6 +43,12 @@ public:
- };
- Q_DECLARE_FLAGS(Capabilities, Capability)
-
-+ enum ExtraCallerIDVerificationMethod {
-+ NoExtraCallerIDVerificationMethod,
-+ VerifyAgainstDBusServiceName,
-+ VerifyAgainstDBusServicePid,
-+ };
-+
- AuthBackend();
- virtual ~AuthBackend();
- virtual void setupAction(const QString &action) = 0;
-@@ -50,6 +56,7 @@ public:
- virtual Action::AuthStatus authorizeAction(const QString &action) = 0;
- virtual Action::AuthStatus actionStatus(const QString &action) = 0;
- virtual QByteArray callerID() const = 0;
-+ virtual ExtraCallerIDVerificationMethod extraCallerIDVerificationMethod() const;
- virtual bool isCallerAuthorized(const QString &action, QByteArray callerID) = 0;
- virtual bool actionExists(const QString &action);
-
-diff --git a/kdecore/auth/backends/dbus/DBusHelperProxy.cpp b/kdecore/auth/backends/dbus/DBusHelperProxy.cpp
-index 9557a0f..ca59f1c 100644
---- kdecore/auth/backends/dbus/DBusHelperProxy.cpp
-+++ kdecore/auth/backends/dbus/DBusHelperProxy.cpp
-@@ -271,6 +271,29 @@ void DBusHelperProxy::performActions(QByteArray blob, const QByteArray &callerID
- }
- }
-
-+bool DBusHelperProxy::isCallerAuthorized(const QString &action, const QByteArray &callerID)
-+{
-+ // Check the caller is really who it says it is
-+ switch (BackendsManager::authBackend()->extraCallerIDVerificationMethod()) {
-+ case AuthBackend::NoExtraCallerIDVerificationMethod:
-+ break;
-+
-+ case AuthBackend::VerifyAgainstDBusServiceName:
-+ if (message().service().toUtf8() != callerID) {
-+ return false;
-+ }
-+ break;
-+
-+ case AuthBackend::VerifyAgainstDBusServicePid:
-+ if (connection().interface()->servicePid(message().service()).value() != callerID.toUInt()) {
-+ return false;
-+ }
-+ break;
-+ }
-+
-+ return BackendsManager::authBackend()->isCallerAuthorized(action, callerID);
-+}
-+
- QByteArray DBusHelperProxy::performAction(const QString &action, const QByteArray &callerID, QByteArray arguments)
- {
- if (!responder) {
-@@ -295,7 +318,7 @@ QByteArray DBusHelperProxy::performAction(const QString &action, const QByteArra
- QTimer *timer = responder->property("__KAuth_Helper_Shutdown_Timer").value<QTimer*>();
- timer->stop();
-
-- if (BackendsManager::authBackend()->isCallerAuthorized(action, callerID)) {
-+ if (isCallerAuthorized(action, callerID)) {
- QString slotname = action;
- if (slotname.startsWith(m_name + QLatin1Char('.'))) {
- slotname = slotname.right(slotname.length() - m_name.length() - 1);
-@@ -338,7 +361,7 @@ uint DBusHelperProxy::authorizeAction(const QString& action, const QByteArray& c
- QTimer *timer = responder->property("__KAuth_Helper_Shutdown_Timer").value<QTimer*>();
- timer->stop();
-
-- if (BackendsManager::authBackend()->isCallerAuthorized(action, callerID)) {
-+ if (isCallerAuthorized(action, callerID)) {
- retVal = static_cast<uint>(Action::Authorized);
- } else {
- retVal = static_cast<uint>(Action::Denied);
-diff --git a/kdecore/auth/backends/dbus/DBusHelperProxy.h b/kdecore/auth/backends/dbus/DBusHelperProxy.h
-index 455cf51..264f6cc 100644
---- kdecore/auth/backends/dbus/DBusHelperProxy.h
-+++ kdecore/auth/backends/dbus/DBusHelperProxy.h
-@@ -21,6 +21,7 @@
- #ifndef DBUS_HELPER_PROXY_H
- #define DBUS_HELPER_PROXY_H
-
-+#include <QDBusContext>
- #include <QVariant>
- #include "HelperProxy.h"
- #include "kauthactionreply.h"
-@@ -28,7 +29,7 @@
- namespace KAuth
- {
-
--class DBusHelperProxy : public HelperProxy
-+class DBusHelperProxy : public HelperProxy, protected QDBusContext
- {
- Q_OBJECT
- Q_INTERFACES(KAuth::HelperProxy)
-@@ -73,6 +74,9 @@ signals:
-
- private slots:
- void remoteSignalReceived(int type, const QString &action, QByteArray blob);
-+
-+private:
-+ bool isCallerAuthorized(const QString &action, const QByteArray &callerID);
- };
-
- } // namespace Auth
-diff --git a/kdecore/auth/backends/policykit/PolicyKitBackend.cpp b/kdecore/auth/backends/policykit/PolicyKitBackend.cpp
-index 3be97f2..9d041d1 100644
---- kdecore/auth/backends/policykit/PolicyKitBackend.cpp
-+++ kdecore/auth/backends/policykit/PolicyKitBackend.cpp
-@@ -78,6 +78,11 @@ QByteArray PolicyKitBackend::callerID() const
- return a;
- }
-
-+AuthBackend::ExtraCallerIDVerificationMethod Polkit1Backend::extraCallerIDVerificationMethod() const
-+{
-+ return VerifyAgainstDBusServicePid;
-+}
-+
- bool PolicyKitBackend::isCallerAuthorized(const QString &action, QByteArray callerID)
- {
- QDataStream s(&callerID, QIODevice::ReadOnly);
-diff --git a/kdecore/auth/backends/policykit/PolicyKitBackend.h b/kdecore/auth/backends/policykit/PolicyKitBackend.h
-index 7154e93..0d3d8f9 100644
---- kdecore/auth/backends/policykit/PolicyKitBackend.h
-+++ kdecore/auth/backends/policykit/PolicyKitBackend.h
-@@ -40,6 +40,7 @@ public:
- virtual Action::AuthStatus authorizeAction(const QString&);
- virtual Action::AuthStatus actionStatus(const QString&);
- virtual QByteArray callerID() const;
-+ virtual ExtraCallerIDVerificationMethod extraCallerIDVerificationMethod() const;
- virtual bool isCallerAuthorized(const QString &action, QByteArray callerID);
-
- private Q_SLOTS:
-diff --git a/kdecore/auth/backends/polkit-1/Polkit1Backend.cpp b/kdecore/auth/backends/polkit-1/Polkit1Backend.cpp
-index 732d2cb..63c0e1e 100644
---- kdecore/auth/backends/polkit-1/Polkit1Backend.cpp
-+++ kdecore/auth/backends/polkit-1/Polkit1Backend.cpp
-@@ -163,6 +163,11 @@ QByteArray Polkit1Backend::callerID() const
- return QDBusConnection::systemBus().baseService().toUtf8();
- }
-
-+AuthBackend::ExtraCallerIDVerificationMethod Polkit1Backend::extraCallerIDVerificationMethod() const
-+{
-+ return VerifyAgainstDBusServiceName;
-+}
-+
- bool Polkit1Backend::isCallerAuthorized(const QString &action, QByteArray callerID)
- {
- PolkitQt1::SystemBusNameSubject subject(QString::fromUtf8(callerID));
-diff --git a/kdecore/auth/backends/polkit-1/Polkit1Backend.h b/kdecore/auth/backends/polkit-1/Polkit1Backend.h
-index 18ed1a2..d579da2 100644
---- kdecore/auth/backends/polkit-1/Polkit1Backend.h
-+++ kdecore/auth/backends/polkit-1/Polkit1Backend.h
-@@ -48,6 +48,7 @@ public:
- virtual Action::AuthStatus authorizeAction(const QString&);
- virtual Action::AuthStatus actionStatus(const QString&);
- virtual QByteArray callerID() const;
-+ virtual ExtraCallerIDVerificationMethod extraCallerIDVerificationMethod() const;
- virtual bool isCallerAuthorized(const QString &action, QByteArray callerID);
- virtual bool actionExists(const QString& action);
-
---
-cgit v0.11.2
-
diff --git a/x11/kdelibs-kde4/files/patch-git_57eaf65 b/x11/kdelibs-kde4/files/patch-git_57eaf65
deleted file mode 100644
index 19f5b5abc5fc..000000000000
--- a/x11/kdelibs-kde4/files/patch-git_57eaf65
+++ /dev/null
@@ -1,33 +0,0 @@
-From 57eaf65accb8d058644dc8eee7332e0ec0c1952f Mon Sep 17 00:00:00 2001
-From: Heiko Becker <heirecka@exherbo.org>
-Date: Thu, 20 Jul 2017 20:12:10 +0200
-Subject: [PATCH] [cmake]: De-duplicate "else" to fix build with cmake-3.9
-
-Otherwise it errors out with:
-"CMake Error at kdeui/CMakeLists.txt:316 (else): A duplicate ELSE
-command was found inside an IF block."
-Also adjust the indentation to match the surrounding lines and remove
-the arguments from else() and endif().
----
- kdeui/CMakeLists.txt | 8 +++-----
- 1 file changed, 3 insertions(+), 5 deletions(-)
-
-diff --git kdeui/CMakeLists.txt kdeui/CMakeLists.txt
-index d6ec8b47e9..cadb52e713 100644
---- kdeui/CMakeLists.txt
-+++ kdeui/CMakeLists.txt
-@@ -311,11 +311,9 @@ if (Q_WS_MAC AND MAC_USE_OSXKEYCHAIN)
- FIND_LIBRARY(SECURITY_LIBRARY Security)
- set(kdeui_LIB_SRCS ${kdeui_LIB_SRCS} util/kwallet_mac.cpp util/qosxkeychain.cpp)
- add_definitions(-DMAC_USE_OSXKEYCHAIN)
--else(Q_WS_MAC AND MAC_USE_OSXKEYCHAIN)
-- set(kdeui_LIB_SRCS ${kdeui_LIB_SRCS} util/kwallet.cpp)
--else(Q_WS_MAC AND MAC_USE_OSXKEYCHAIN)
-- set(kdeui_LIB_SRCS ${kdeui_LIB_SRCS} util/kwallet.cpp)
--endif(Q_WS_MAC AND MAC_USE_OSXKEYCHAIN)
-+else()
-+ set(kdeui_LIB_SRCS ${kdeui_LIB_SRCS} util/kwallet.cpp)
-+endif()
-
- if(NOT WINCE)
- set(kdeui_LIB_SRCS