[neon/kde/plasma-workspace/Neon/release] debian: use stable appstream

Jonathan Esk-Riddell null at kde.org
Tue Oct 3 17:40:24 BST 2023


Git commit d7910e14844f97da65dc786ba4ed5b59c246fde0 by Jonathan Esk-Riddell.
Committed on 03/10/2023 at 18:39.
Pushed by jriddell into branch 'Neon/release'.

use stable appstream

M  +1    -1    debian/control
D  +0    -133  debian/patches/0001_kf5_appstream_1
D  +0    -20   debian/patches/0002_kf5_appstream_2
D  +0    -2    debian/patches/series

https://invent.kde.org/neon/kde/plasma-workspace/-/commit/d7910e14844f97da65dc786ba4ed5b59c246fde0

diff --git a/debian/control b/debian/control
index 32ebb04..fe18a8e 100644
--- a/debian/control
+++ b/debian/control
@@ -17,7 +17,7 @@ Build-Depends: baloo-kf5-dev (>= 5.18.0~),
                kuserfeedback-dev,
                kwayland-dev (>= 4:5.5.1~),
                kwin-dev (>= 4:5.5.1~),
-               libappstreamqt5-dev,
+               libappstreamqt-dev,
                libboost-dev,
                libdbusmenu-qt5-dev,
                libdrm-dev,
diff --git a/debian/patches/0001_kf5_appstream_1 b/debian/patches/0001_kf5_appstream_1
deleted file mode 100644
index 44fe79e..0000000
--- a/debian/patches/0001_kf5_appstream_1
+++ /dev/null
@@ -1,133 +0,0 @@
-diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 21a7632165b6b0708323ef0fe8fb323942b4ef83..a80cd3cc47a11a02b58b2ea073fec09ced9c7761 100644
---- a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -183,13 +183,13 @@ if(FONTCONFIG_FOUND)
-   find_package(Qt${QT_MAJOR_VERSION} ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS PrintSupport)
- endif()
- 
--find_package(AppStreamQt 0.10.6)
--set_package_properties(AppStreamQt PROPERTIES DESCRIPTION "Access metadata for listing available software"
-+find_package(AppStreamQt5)
-+set_package_properties(AppStreamQt5 PROPERTIES DESCRIPTION "Access metadata for listing available software"
-                        URL "https://www.freedesktop.org/wiki/Distributions/AppStream/"
-                        TYPE OPTIONAL)
- 
--if(${AppStreamQt_FOUND})
--    set(HAVE_APPSTREAMQT true)
-+if(${AppStreamQt5_FOUND})
-+    set(HAVE_APPSTREAMQT5 true)
- endif()
- 
- 
-diff --git a/applets/kicker/CMakeLists.txt b/applets/kicker/CMakeLists.txt
-index 6fd212d21d1a3603e72d664283d72fe26ae7cb31..f80fa30cf7c94999401460aac39dd7db1899136e 100644
---- a/applets/kicker/CMakeLists.txt
-+++ b/applets/kicker/CMakeLists.txt
-@@ -83,8 +83,8 @@ target_link_libraries(kickerplugin
-                       KF5::WindowSystem
-                       PW::KWorkspace)
- 
--if (${HAVE_APPSTREAMQT})
--target_link_libraries(kickerplugin AppStreamQt)
-+if (${HAVE_APPSTREAMQT5})
-+target_link_libraries(kickerplugin AppStreamQt5)
- endif()
- 
- if (${HAVE_ICU})
-diff --git a/applets/kicker/plugin/actionlist.cpp b/applets/kicker/plugin/actionlist.cpp
-index 61fc2348723c58e06dd622644054e09d46905eb8..7683a8cc5085fd0d9e7bdb48fdda1ef7c8d71056 100644
---- a/applets/kicker/plugin/actionlist.cpp
-+++ b/applets/kicker/plugin/actionlist.cpp
-@@ -31,8 +31,8 @@
- 
- #include "containmentinterface.h"
- 
--#ifdef HAVE_APPSTREAMQT
--#include <AppStreamQt/pool.h>
-+#ifdef HAVE_APPSTREAMQT5
-+#include <AppStreamQt5/pool.h>
- #endif
- 
- namespace KAStats = KActivities::Stats;
-@@ -410,13 +410,13 @@ bool handleEditApplicationAction(const QString &actionId, const KService::Ptr &s
-     return false;
- }
- 
--#ifdef HAVE_APPSTREAMQT
-+#ifdef HAVE_APPSTREAMQT5
- Q_GLOBAL_STATIC(AppStream::Pool, appstreamPool)
- #endif
- 
- QVariantList appstreamActions(const KService::Ptr &service)
- {
--#ifdef HAVE_APPSTREAMQT
-+#ifdef HAVE_APPSTREAMQT5
-     const KService::Ptr appStreamHandler = KApplicationTrader::preferredService(QStringLiteral("x-scheme-handler/appstream"));
- 
-     // Don't show action if we can't find any app to handle appstream:// URLs.
-@@ -441,7 +441,7 @@ bool handleAppstreamActions(const QString &actionId, const KService::Ptr &servic
-     if (actionId != QLatin1String("manageApplication")) {
-         return false;
-     }
--#ifdef HAVE_APPSTREAMQT
-+#ifdef HAVE_APPSTREAMQT5
-     if (!appstreamPool.exists()) {
-         appstreamPool->load();
-     }
-diff --git a/config-appstream.h.cmake b/config-appstream.h.cmake
-index f0e89921a0fa3f9495275a2957592307fdc475fb..8d79e61bf8efa2d83157011ce58523c9b0452df9 100644
---- a/config-appstream.h.cmake
-+++ b/config-appstream.h.cmake
-@@ -1 +1 @@
--#cmakedefine HAVE_APPSTREAMQT 1
-+#cmakedefine HAVE_APPSTREAMQT5 1
-diff --git a/runners/CMakeLists.txt b/runners/CMakeLists.txt
-index ec22f27d701f2cf815578dd70207d4fc611f67f5..4216518e9682b7ea5bbffccb28bc98eff2c37007 100644
---- a/runners/CMakeLists.txt
-+++ b/runners/CMakeLists.txt
-@@ -14,7 +14,7 @@ add_subdirectory(shell)
- add_subdirectory(webshortcuts)
- add_subdirectory(windowedwidgets)
- 
--if(AppStreamQt_FOUND)
-+if(AppStreamQt5_FOUND)
-     add_subdirectory(appstream)
- endif()
- 
-diff --git a/runners/appstream/CMakeLists.txt b/runners/appstream/CMakeLists.txt
-index 7dc43cdad93a40ba8bb636b38f2a0aaeaf9e76b4..15c486a3ea3b8d3dbb25a07d347c617b8415aa40 100644
---- a/runners/appstream/CMakeLists.txt
-+++ b/runners/appstream/CMakeLists.txt
-@@ -11,4 +11,4 @@ ecm_qt_declare_logging_category(krunner_appstream_SRCS
-     DEFAULT_SEVERITY Warning)
- 
- kcoreaddons_add_plugin(krunner_appstream SOURCES ${krunner_appstream_SRCS} INSTALL_NAMESPACE "kf5/krunner")
--target_link_libraries(krunner_appstream PUBLIC Qt::Gui KF5::Runner KF5::I18n KF5::Service AppStreamQt)
-+target_link_libraries(krunner_appstream PUBLIC Qt::Gui KF5::Runner KF5::I18n KF5::Service AppStreamQt5)
-diff --git a/runners/appstream/appstreamrunner.cpp b/runners/appstream/appstreamrunner.cpp
-index b0dcb381ee48c671b0a3d15069b59e3a8e427dce..7d0c646c18c909041adb0e7324dc70c073640da2 100644
---- a/runners/appstream/appstreamrunner.cpp
-+++ b/runners/appstream/appstreamrunner.cpp
-@@ -6,7 +6,7 @@
- 
- #include "appstreamrunner.h"
- 
--#include <AppStreamQt/icon.h>
-+#include <AppStreamQt5/icon.h>
- 
- #include <QDebug>
- #include <QDesktopServices>
-diff --git a/runners/appstream/appstreamrunner.h b/runners/appstream/appstreamrunner.h
-index 18197ab08b05c4b202b946c4450bf83de44e9c51..b585f55c36f680d5b83202892a35effd7a31f21a 100644
---- a/runners/appstream/appstreamrunner.h
-+++ b/runners/appstream/appstreamrunner.h
-@@ -6,7 +6,7 @@
- 
- #pragma once
- 
--#include <AppStreamQt/pool.h>
-+#include <AppStreamQt5/pool.h>
- #include <KRunner/AbstractRunner>
- #include <QMutex>
-
diff --git a/debian/patches/0002_kf5_appstream_2 b/debian/patches/0002_kf5_appstream_2
deleted file mode 100644
index dcd7a5d..0000000
--- a/debian/patches/0002_kf5_appstream_2
+++ /dev/null
@@ -1,20 +0,0 @@
-diff --git a/runners/appstream/appstreamrunner.cpp b/runners/appstream/appstreamrunner.cpp
-index 7d0c646c18c909041adb0e7324dc70c073640da2..31ef6580248c77ab46b3ed068fe1829593a3f137 100644
---- a/runners/appstream/appstreamrunner.cpp
-+++ b/runners/appstream/appstreamrunner.cpp
-@@ -150,12 +150,12 @@ QList<AppStream::Component> InstallerRunner::findComponentsByString(const QStrin
-     QMutexLocker locker(&m_appstreamMutex);
-     QString error;
-     static bool warnedOnce = false;
--    static bool opened = m_db.load(&error);
-+    static bool opened = m_db.load();
-     if (!opened) {
-         if (warnedOnce) {
--            qCDebug(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << error;
-+            qCDebug(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << m_db.lastError();
-         } else {
--            qCWarning(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << error;
-+            qCWarning(RUNNER_APPSTREAM) << "Had errors when loading AppStream metadata pool" << m_db.lastError();
-             warnedOnce = true;
-         }
-     }
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index e93f5f5..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1,2 +0,0 @@
-0001_kf5_appstream_1
-0002_kf5_appstream_2


More information about the Neon-commits mailing list