diff options
Diffstat (limited to 'user/kpmcore')
-rw-r--r-- | user/kpmcore/APKBUILD | 18 | ||||
-rw-r--r-- | user/kpmcore/filesystem.patch | 10 | ||||
-rw-r--r-- | user/kpmcore/test.patch | 42 |
3 files changed, 62 insertions, 8 deletions
diff --git a/user/kpmcore/APKBUILD b/user/kpmcore/APKBUILD index a6fef6476..eb401b59c 100644 --- a/user/kpmcore/APKBUILD +++ b/user/kpmcore/APKBUILD @@ -1,7 +1,7 @@ # Contributor: A. Wilcox <awilfox@adelielinux.org> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=kpmcore -pkgver=3.3.0 +pkgver=22.04.2 pkgrel=0 pkgdesc="Core routines for KDE Partition Manager" url="https://www.kde.org/applications/system/partitionmanager" @@ -10,12 +10,14 @@ license="LGPL-2.1+" depends="" depends_dev="libatasmart-dev parted-dev qt5-qtbase-dev" makedepends="$depends_dev cmake extra-cmake-modules kcoreaddons-dev ki18n-dev - kwidgetsaddons-dev util-linux-dev" + kwidgetsaddons-dev util-linux-dev kauth-dev qca-dev" subpackages="$pkgname-dev $pkgname-lang" -source="https://download.kde.org/stable/kpmcore/$pkgver/src/kpmcore-$pkgver.tar.xz" +source="https://download.kde.org/stable/release-service/$pkgver/src/kpmcore-$pkgver.tar.xz + filesystem.patch + test.patch + " build() { - cd "$builddir" if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi @@ -26,18 +28,18 @@ build() { -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ - ${CMAKE_CROSSOPTS} + ${CMAKE_CROSSOPTS} . make } check() { - cd "$builddir" CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { - cd "$builddir" make DESTDIR="$pkgdir" install } -sha512sums="62a0a341fbbec426291e2c9dd183a20466fce48ffaa360dd816c58402ee03c1f61c4ef7887d0a66c4693d77c2183a5da3477b828ba4ac2ed405f684ffb27125e kpmcore-3.3.0.tar.xz" +sha512sums="3ce043daccbe5a2d56f6fd849a3b8c6518b49c4c47db1989f7cea60282e63f430047815f6ff7c1a9a4195d9b06d2ad3ec357bc3ed66fef80b253762aea099f15 kpmcore-22.04.2.tar.xz +f8553feb7b73ef3f8e4212b5831354d81c036406ed867805b125a3b1ee24e8df7e524c530d4fb3c4131246342c6ec272dfff074473d8e72e5ff407096806527b filesystem.patch +547803c36e333a39ad3500e3896cfb407ba8dd15cf08f329c748979c42e3f33a4b1940a11c02d532d00414d6d8f7fa564bb78df986ab9ebf0c62d63a64b4edc7 test.patch" diff --git a/user/kpmcore/filesystem.patch b/user/kpmcore/filesystem.patch new file mode 100644 index 000000000..931f44722 --- /dev/null +++ b/user/kpmcore/filesystem.patch @@ -0,0 +1,10 @@ +--- kpmcore-22.04.2/src/util/CMakeLists.txt.old 2022-06-03 15:45:10.000000000 -0500 ++++ kpmcore-22.04.2/src/util/CMakeLists.txt 2022-06-12 16:01:45.750000000 -0500 +@@ -53,6 +53,7 @@ + Qt${QT_MAJOR_VERSION}::DBus + KF5::I18n + PolkitQt${QT_MAJOR_VERSION}-1::Core ++ stdc++fs + ) + + install(TARGETS kpmcore_externalcommand DESTINATION ${KDE_INSTALL_LIBEXECDIR}) diff --git a/user/kpmcore/test.patch b/user/kpmcore/test.patch new file mode 100644 index 000000000..e969cb91d --- /dev/null +++ b/user/kpmcore/test.patch @@ -0,0 +1,42 @@ +From 26e069d6cdd2d28b04f0beb9cfb35115ac8f29d5 Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" <AWilcox@Wilcox-Tech.com> +Date: Sun, 12 Jun 2022 16:14:51 -0500 +Subject: [PATCH] Tests: Fix backend loading for tests + +Using $<TARGET_FILE> we receive the entire plugin file path, leading to +errors such as: + +kf.coreaddons: no metadata found in "kpmcore//home/awilcox/Code/KDE/kpmcore/bin/kpmcore/pmdummybackendplugin.so" "The shared library was not found." + +Using $<TARGET_FILE_NAME> instead we are able to have just the plugin +name, which does load properly. The tests now pass. +--- + test/CMakeLists.txt | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt +index 262c38f..53cb133 100644 +--- a/test/CMakeLists.txt ++++ b/test/CMakeLists.txt +@@ -34,15 +34,15 @@ endmacro() + # Tests of initialization: try explicitly loading some backends + kpm_test(testinit testinit.cpp) # Default backend + if(TARGET pmdummybackendplugin) +- add_test(NAME testinit-dummy COMMAND testinit $<TARGET_FILE:pmdummybackendplugin>) ++ add_test(NAME testinit-dummy COMMAND testinit $<TARGET_FILE_NAME:pmdummybackendplugin>) + endif() + if(TARGET pmsfdiskbackendplugin) +- add_test(NAME testinit-sfdisk COMMAND testinit $<TARGET_FILE:pmsfdiskbackendplugin>) ++ add_test(NAME testinit-sfdisk COMMAND testinit $<TARGET_FILE_NAME:pmsfdiskbackendplugin>) + else() + return() # All the rest really needs a working backend + endif() + +-set(BACKEND $<TARGET_FILE:pmsfdiskbackendplugin>) ++set(BACKEND $<TARGET_FILE_NAME:pmsfdiskbackendplugin>) + + ### + # +-- +GitLab + |