Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] qtkeychain-qt5: update to 0.11.1
@ 2020-11-18 23:32 yopito
  2020-11-19  0:36 ` [PR PATCH] [Updated] " yopito
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: yopito @ 2020-11-18 23:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

There is a new pull request by yopito against master on the void-packages repository

https://github.com/yopito/void-packages qtkeychain.0111
https://github.com/void-linux/void-packages/pull/26497

qtkeychain-qt5: update to 0.11.1
* build is fine
* works with nextcloud client 3.0.2 for both GNOME keyring and kwallet5

A patch file from https://github.com/void-linux/void-packages/pull/26497.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qtkeychain.0111-26497.patch --]
[-- Type: text/x-diff, Size: 3301 bytes --]

From c4d11feec5eddfda9512c3b26e5952617379ec73 Mon Sep 17 00:00:00 2001
From: yopito <pierre.bourgin@free.fr>
Date: Thu, 12 Nov 2020 21:09:20 +0100
Subject: [PATCH] qtkeychain-qt5: update to 0.11.1

---
 srcpkgs/qtkeychain-qt5/INSTALL.msg                |  2 +-
 .../patches/use-kwallet-dbus-def.patch            | 15 +++++++++++++++
 srcpkgs/qtkeychain-qt5/template                   | 14 ++++++++++----
 3 files changed, 26 insertions(+), 5 deletions(-)
 create mode 100644 srcpkgs/qtkeychain-qt5/patches/use-kwallet-dbus-def.patch

diff --git a/srcpkgs/qtkeychain-qt5/INSTALL.msg b/srcpkgs/qtkeychain-qt5/INSTALL.msg
index 87e12556a84..b358ca1a984 100644
--- a/srcpkgs/qtkeychain-qt5/INSTALL.msg
+++ b/srcpkgs/qtkeychain-qt5/INSTALL.msg
@@ -1,2 +1,2 @@
 To actually use qtkeychain-qt5 you need to either have kwallet or
-libgnome-keyring installed.
+gnome-keyring installed.
diff --git a/srcpkgs/qtkeychain-qt5/patches/use-kwallet-dbus-def.patch b/srcpkgs/qtkeychain-qt5/patches/use-kwallet-dbus-def.patch
new file mode 100644
index 00000000000..d97fcc7890b
--- /dev/null
+++ b/srcpkgs/qtkeychain-qt5/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
+
+--- CMakeLists.txt.ORIG	2020-09-08 15:13:16.000000000 +0200
++++ 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-qt5/template b/srcpkgs/qtkeychain-qt5/template
index 9bac2f766d0..95422a84fb0 100644
--- a/srcpkgs/qtkeychain-qt5/template
+++ b/srcpkgs/qtkeychain-qt5/template
@@ -1,22 +1,27 @@
 # Template file for 'qtkeychain-qt5'
 pkgname=qtkeychain-qt5
-version=0.9.1
-revision=2
+version=0.11.1
+revision=1
 wrksrc="${pkgname%-*}-${version}"
 build_style=cmake
 hostmakedepends="pkg-config"
-makedepends="libsecret-devel qt5-tools-devel"
+makedepends="libsecret-devel qt5-tools-devel kwallet"
 short_desc="Platform-independent Qt5 API for storing passwords securely"
 maintainer="Duncaen <duncaen@voidlinux.org>"
 license="BSD-2-Clause"
 homepage="https://github.com/frankosterfeld/qtkeychain"
 distfiles="https://github.com/frankosterfeld/${pkgname%-*}/archive/v${version}.tar.gz"
-checksum=9c2762d9d0759a65cdb80106d547db83c6e9fdea66f1973c6e9014f867c6f28e
+checksum=77fc6841c1743d9e6bd499989481cd9239c21bc9bf0760d41a4f4068d2f0a49d
 
 if [ "$CROSS_BUILD" ]; then
 	hostmakedepends+=" qt5-host-tools qt5-tools-devel"
 fi
 
+post_patch() {
+	# ensure it's not used (see dedicated patch)
+	rm org.kde.KWallet.xml
+}
+
 post_install() {
 	vlicense COPYING
 }
@@ -28,5 +33,6 @@ qtkeychain-qt5-devel_package() {
 		vmove usr/include
 		vmove usr/lib/cmake
 		vmove usr/lib/*.so
+		vmove usr/lib/qt5/mkspecs
 	}
 }

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-11-21 20:20 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-18 23:32 [PR PATCH] qtkeychain-qt5: update to 0.11.1 yopito
2020-11-19  0:36 ` [PR PATCH] [Updated] " yopito
2020-11-19  0:45 ` yopito
2020-11-20 22:08 ` yopito
2020-11-20 22:10 ` yopito
2020-11-20 22:30 ` ericonr
2020-11-20 22:38 ` Duncaen
2020-11-20 22:38 ` Duncaen
2020-11-20 22:40 ` ericonr
2020-11-21 18:52 ` yopito
2020-11-21 18:55 ` [PR PATCH] [Updated] " yopito
2020-11-21 20:20 ` [PR PATCH] [Merged]: " ericonr
2020-11-21 20:20 ` ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).