From 281a655c2a840be2a91bb763f282f17dd9596e10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 8 Oct 2023 18:23:53 -0300 Subject: [PATCH 1/4] New package: KDSingleApplication-1.0.0 --- common/shlibs | 1 + srcpkgs/KDSingleApplication/template | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 srcpkgs/KDSingleApplication/template diff --git a/common/shlibs b/common/shlibs index 9036a675c1ae5..ed187d434d552 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3530,6 +3530,7 @@ libwoff2common.so.1.0.2 libwoff2common1.0.2-1.0.2_1 libwoff2enc.so.1.0.2 libwoff2enc1.0.2-1.0.2_1 libwoff2dec.so.1.0.2 libwoff2dec1.0.2-1.0.2_1 libcloudproviders.so.0 libcloudproviders-0.2.5_2 +libkdsingleapplication-qt6.so KDSingleApplication-1.0.0_1 libKF5KDEGames.so.7 libkdegames-18.08.3_1 libKF5KDEGamesPrivate.so.7 libkdegames-21.04.0_1 libidn2.so.0 libidn2-2.1.1_1 diff --git a/srcpkgs/KDSingleApplication/template b/srcpkgs/KDSingleApplication/template new file mode 100644 index 0000000000000..0761766fadf44 --- /dev/null +++ b/srcpkgs/KDSingleApplication/template @@ -0,0 +1,18 @@ +# Template file for 'KDSingleApplication' +pkgname=KDSingleApplication +version=1.0.0 +revision=1 +build_style=cmake +configure_args="-DKDSingleApplication_QT6=ON" +hostmakedepends="qt6-tools-devel" +short_desc="KDAB's helper class for single-instance policy applications" +maintainer="Gonzalo Tornaría " +license="MIT" +homepage="https://github.com/KDAB/KDSingleApplication" +changelog="https://github.com/KDAB/KDSingleApplication/releases" +distfiles="https://github.com/KDAB/KDSingleApplication/releases/download/v${version}/kdsingleapplication-${version}.tar.gz" +checksum=c92355dc10f3ebd39363458458fb5bdd9662e080cf77d91f0437763c4d936520 + +post_install() { + vlicense LICENSE.txt +} From 050d2235ccb7f55ba70a57e28c46ad5c345990a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 8 Oct 2023 18:25:14 -0300 Subject: [PATCH 2/4] New package: qtkeychain-qt6-0.14.1 --- common/shlibs | 1 + srcpkgs/qtkeychain-qt6-devel | 1 + srcpkgs/qtkeychain-qt6/files/README.voidlinux | 2 + .../patches/use-kwallet-dbus-def.patch | 15 +++++++ srcpkgs/qtkeychain-qt6/template | 39 +++++++++++++++++++ 5 files changed, 58 insertions(+) create mode 120000 srcpkgs/qtkeychain-qt6-devel create mode 100644 srcpkgs/qtkeychain-qt6/files/README.voidlinux create mode 100644 srcpkgs/qtkeychain-qt6/patches/use-kwallet-dbus-def.patch create mode 100644 srcpkgs/qtkeychain-qt6/template diff --git a/common/shlibs b/common/shlibs index ed187d434d552..9c2cb6d10035e 100644 --- a/common/shlibs +++ b/common/shlibs @@ -3530,6 +3530,7 @@ libwoff2common.so.1.0.2 libwoff2common1.0.2-1.0.2_1 libwoff2enc.so.1.0.2 libwoff2enc1.0.2-1.0.2_1 libwoff2dec.so.1.0.2 libwoff2dec1.0.2-1.0.2_1 libcloudproviders.so.0 libcloudproviders-0.2.5_2 +libqt6keychain.so.1 qtkeychain-qt6-0.14.1_1 libkdsingleapplication-qt6.so KDSingleApplication-1.0.0_1 libKF5KDEGames.so.7 libkdegames-18.08.3_1 libKF5KDEGamesPrivate.so.7 libkdegames-21.04.0_1 diff --git a/srcpkgs/qtkeychain-qt6-devel b/srcpkgs/qtkeychain-qt6-devel new file mode 120000 index 0000000000000..189f5693ff61e --- /dev/null +++ b/srcpkgs/qtkeychain-qt6-devel @@ -0,0 +1 @@ +qtkeychain-qt6 \ No newline at end of file diff --git a/srcpkgs/qtkeychain-qt6/files/README.voidlinux b/srcpkgs/qtkeychain-qt6/files/README.voidlinux new file mode 100644 index 0000000000000..b358ca1a98429 --- /dev/null +++ b/srcpkgs/qtkeychain-qt6/files/README.voidlinux @@ -0,0 +1,2 @@ +To actually use qtkeychain-qt5 you need to either have kwallet or +gnome-keyring installed. diff --git a/srcpkgs/qtkeychain-qt6/patches/use-kwallet-dbus-def.patch b/srcpkgs/qtkeychain-qt6/patches/use-kwallet-dbus-def.patch new file mode 100644 index 0000000000000..44368a4d89190 --- /dev/null +++ b/srcpkgs/qtkeychain-qt6/patches/use-kwallet-dbus-def.patch @@ -0,0 +1,15 @@ +Use kwallet interface definition from the kwallet package, +instead of using the out-of-date provided in qtkeychain package +see https://github.com/frankosterfeld/qtkeychain/issues/172 + +--- a/CMakeLists.txt 2020-09-08 15:13:16.000000000 +0200 ++++ b/CMakeLists.txt 2020-11-13 13:50:56.648621533 +0100 +@@ -169,7 +169,7 @@ + + add_definitions(-DKEYCHAIN_DBUS=1) + list(APPEND qtkeychain_SOURCES keychain_unix.cpp gnomekeyring.cpp libsecret.cpp plaintextstore.cpp) +- qt_add_dbus_interface(qtkeychain_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/org.kde.KWallet.xml kwallet_interface KWalletInterface) ++ qt_add_dbus_interface(qtkeychain_SOURCES /usr/share/dbus-1/interfaces/kf5_org.kde.KWallet.xml kwallet_interface KWalletInterface) + list(APPEND qtkeychain_LIBRARIES ${QTDBUS_LIBRARIES} ) + endif() + diff --git a/srcpkgs/qtkeychain-qt6/template b/srcpkgs/qtkeychain-qt6/template new file mode 100644 index 0000000000000..368b8ca815f12 --- /dev/null +++ b/srcpkgs/qtkeychain-qt6/template @@ -0,0 +1,39 @@ +# Template file for 'qtkeychain-qt6' +pkgname=qtkeychain-qt6 +version=0.14.1 +revision=1 +build_style=cmake +configure_args="-DBUILD_WITH_QT6=ON" +hostmakedepends="pkg-config kwallet" +makedepends="libsecret-devel qt6-tools-devel" +short_desc="Platform-independent Qt6 API for storing passwords securely" +maintainer="yopito " +license="BSD-2-Clause" +homepage="https://github.com/frankosterfeld/qtkeychain" +distfiles="https://github.com/frankosterfeld/${pkgname%-*}/archive/${version}.tar.gz" +checksum=afb2d120722141aca85f8144c4ef017bd74977ed45b80e5d9e9614015dadd60c + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+=" qt6-host-tools qt6-tools-devel" +fi + +post_patch() { + # ensure it's not used (see dedicated patch) + rm org.kde.KWallet.xml +} + +post_install() { + vlicense COPYING + vdoc "${FILESDIR}/README.voidlinux" +} + +qtkeychain-qt6-devel_package() { + depends="${sourcepkg}>=${version}_${revision} libsecret-devel" + short_desc+=" - development files" + pkg_install() { + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/*.so + vmove usr/lib/qt6/mkspecs + } +} From 5f4f1f25927018c9aa7ed285057eb3965cde10d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 8 Oct 2023 18:26:37 -0300 Subject: [PATCH 3/4] libre-graph-api-cpp-qt-client: rebuild with qt6. --- srcpkgs/libre-graph-api-cpp-qt-client/template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/libre-graph-api-cpp-qt-client/template b/srcpkgs/libre-graph-api-cpp-qt-client/template index 735e0190a68e4..9369b355a4b28 100644 --- a/srcpkgs/libre-graph-api-cpp-qt-client/template +++ b/srcpkgs/libre-graph-api-cpp-qt-client/template @@ -1,11 +1,11 @@ # Template file for 'libre-graph-api-cpp-qt-client' pkgname=libre-graph-api-cpp-qt-client version=1.0.4 -revision=1 +revision=2 build_wrksrc=client build_style=cmake -hostmakedepends="qt5-qmake qt5-host-tools" -makedepends="qt5-devel" +hostmakedepends="qt6-tools" +makedepends="qt6-base-devel" short_desc="Libre Graph API for owncloudclient" maintainer="Gonzalo Tornaría " license="Apache-2.0" From 0c4030f3418052a8359fb0a267cea5ca8c930708 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Tornar=C3=ADa?= Date: Sun, 8 Oct 2023 19:37:41 -0300 Subject: [PATCH 4/4] owncloudclient: update to 5.1.0. --- .../patches/skip-root-test.patch | 26 ++++--------------- srcpkgs/owncloudclient/template | 26 ++++++++----------- 2 files changed, 16 insertions(+), 36 deletions(-) diff --git a/srcpkgs/owncloudclient/patches/skip-root-test.patch b/srcpkgs/owncloudclient/patches/skip-root-test.patch index 50aa32e2cd470..aa3270a0bf19f 100644 --- a/srcpkgs/owncloudclient/patches/skip-root-test.patch +++ b/srcpkgs/owncloudclient/patches/skip-root-test.patch @@ -1,35 +1,19 @@ Hardcode `getuid()` as `0` in tests, since inside xbps-src the filesystem is not restricted. -diff --git a/test/testdownload.cpp b/test/testdownload.cpp -index b37cb807da..4af30ae72e 100644 ---- a/test/testdownload.cpp -+++ b/test/testdownload.cpp -@@ -150,10 +150,10 @@ private slots: - void testMoveFailsInAConflict() { - #ifdef Q_OS_WIN - QSKIP("Not run on windows because permission on directory does not do what is expected"); - #else -- if (getuid() == 0) { -+ if (0 == 0) { - QSKIP("The permissions have no effect on the root user"); - } - #endif - // Test for https://github.com/owncloud/client/issues/7015 - // We want to test the case in which the renaming of the original to the conflict file succeeds, diff --git a/test/testfolderman.cpp b/test/testfolderman.cpp index 8fc2cc2627..47213ed6b9 100644 --- a/test/testfolderman.cpp +++ b/test/testfolderman.cpp -@@ -102,11 +102,11 @@ private slots: - QVERIFY(folderman->checkPathValidityForNewFolder(dirPath + "/link1/subfolder").isNull()); - QVERIFY(folderman->checkPathValidityForNewFolder(dirPath + "/link2/free/subfolder").isNull()); +@@ -109,11 +109,11 @@ private slots: + QVERIFY(folderman->checkPathValidityForNewFolder(dirPath + QStringLiteral("/link1/subfolder")).isNull()); + QVERIFY(folderman->checkPathValidityForNewFolder(dirPath + QStringLiteral("/link2/free/subfolder")).isNull()); - if (getuid() != 0) { + if (0 != 0) { // Should not have the rights - QVERIFY(!folderman->checkPathValidityForNewFolder("/").isNull()); - QVERIFY(!folderman->checkPathValidityForNewFolder("/usr/bin/somefolder").isNull()); + QVERIFY(!folderman->checkPathValidityForNewFolder(QStringLiteral("/")).isNull()); + QVERIFY(!folderman->checkPathValidityForNewFolder(QStringLiteral("/usr/bin/somefolder")).isNull()); } #endif diff --git a/srcpkgs/owncloudclient/template b/srcpkgs/owncloudclient/template index 8908d6119a1fa..41c7e10632a61 100644 --- a/srcpkgs/owncloudclient/template +++ b/srcpkgs/owncloudclient/template @@ -1,33 +1,29 @@ # Template file for 'owncloudclient' pkgname=owncloudclient -version=4.2.0 +version=5.1.0 revision=1 build_style=cmake configure_args="-Wno-dev -DWITH_AUTO_UPDATER=OFF" -hostmakedepends="pkg-config extra-cmake-modules qt5-host-tools qt5-tools-devel - kcoreaddons" -makedepends="qtkeychain-qt5-devel sqlite-devel qt5-declarative-devel kio-devel - qt5-tools-devel qt5-plugin-odbc qt5-plugin-tds qt5-plugin-pgsql qt5-plugin-mysql - qt5-plugin-sqlite libre-graph-api-cpp-qt-client libcloudproviders-devel" -depends="qt5-plugin-sqlite qt5-svg" +hostmakedepends="pkg-config extra-cmake-modules qt6-tools-devel" +makedepends="qtkeychain-qt6-devel libre-graph-api-cpp-qt-client + KDSingleApplication" +depends="qt6-plugin-sqlite qt6-svg" conf_files="/etc/ownCloud/sync-exclude.lst" short_desc="Connect to ownCloud servers" maintainer="Gonzalo Tornaría " license="GPL-2.0-or-later" homepage="https://www.owncloud.org" changelog="https://raw.githubusercontent.com/owncloud/client/master/CHANGELOG.md" -distfiles="https://github.com/owncloud/client/archive/v${version/.rc/-rc}.tar.gz" -checksum=e31402a922c63dd94975cb3d8b0a0952374891024daf8e08ce4442cfba0729b1 -subpackages="owncloudclient-kde5 owncloudclient-devel" +distfiles="https://github.com/owncloud/client/archive/v${version}.tar.gz" +checksum=c76dc9e1c0515c31534755aff440ddab9679b942bc9fef2ea4be7ec5a5e0e8c3 owncloudclient-kde5_package() { + # kde5 integration has been moved to: + # https://github.com/owncloud/client-desktop-shell-integration-dolphin + build_style=meta short_desc+=" - KDE 5 integration" depends="${sourcepkg}>=${version}_${revision}" - pkg_install() { - vmove "usr/lib/*dolphin*" - vmove "usr/lib/qt5/plugins/*dolphin*" - vmove "usr/lib/qt5/plugins/kf5" - } + short_desc+=" (transitional dummy package)" } owncloudclient-devel_package() {