[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2024-04-20 Thread Arthur Zamarin
commit: 264ea3d3182178e993379d03e003e045999abd9b
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 20 17:39:26 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 20 17:39:26 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=264ea3d3

kde-apps/libkgapi: Stabilize 23.08.5-r1 arm64, #930324

Signed-off-by: Arthur Zamarin  gentoo.org>

 kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
index b605e0deea7d..df7ecaabe785 100644
--- a/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
+++ b/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv x86"
+KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
 IUSE="kf6compat"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2024-04-20 Thread Arthur Zamarin
commit: abf597181a730633046ae8eb954884e29f2bd9a1
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 20 14:51:56 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 20 14:52:09 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abf59718

kde-apps/libkgapi: Stabilize 23.08.5-r1 x86, #930324

Signed-off-by: Arthur Zamarin  gentoo.org>

 kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
index e3f767c29e1c..b605e0deea7d 100644
--- a/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
+++ b/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv x86"
 IUSE="kf6compat"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2024-04-20 Thread Arthur Zamarin
commit: d665fcf425784ce2f28ccc1c9cb40bb629e43871
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Apr 20 14:51:49 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Apr 20 14:52:06 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d665fcf4

kde-apps/libkgapi: Stabilize 23.08.5-r1 amd64, #930324

Signed-off-by: Arthur Zamarin  gentoo.org>

 kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
index 4bb890933a7f..e3f767c29e1c 100644
--- a/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
+++ b/kde-apps/libkgapi/libkgapi-23.08.5-r1.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv ~x86"
 IUSE="kf6compat"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2024-03-06 Thread Arthur Zamarin
commit: 320ecda0e3b274aae952f9d66c3d4b1a76206d1b
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Wed Mar  6 19:19:19 2024 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Wed Mar  6 19:19:19 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=320ecda0

kde-apps/libkgapi: Stabilize 23.08.5 x86, #924716

Signed-off-by: Arthur Zamarin  gentoo.org>

 kde-apps/libkgapi/libkgapi-23.08.5.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-23.08.5.ebuild 
b/kde-apps/libkgapi/libkgapi-23.08.5.ebuild
index f4b31dfa5736..eb68d65f5e11 100644
--- a/kde-apps/libkgapi/libkgapi-23.08.5.ebuild
+++ b/kde-apps/libkgapi/libkgapi-23.08.5.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="amd64 arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
 IUSE=""
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2023-11-23 Thread Sam James
commit: fd01cca70f12dd9218f426ea06166803cf4fd49b
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov 23 15:26:40 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov 23 15:26:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd01cca7

kde-apps/libkgapi: Stabilize 23.08.3 x86, #917212

Signed-off-by: Sam James  gentoo.org>

 kde-apps/libkgapi/libkgapi-23.08.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-23.08.3.ebuild 
b/kde-apps/libkgapi/libkgapi-23.08.3.ebuild
index c490ac89e58e..89027426a669 100644
--- a/kde-apps/libkgapi/libkgapi-23.08.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-23.08.3.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv x86"
 IUSE=""
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2023-07-15 Thread Arthur Zamarin
commit: 4376aa62114eef5432f3e11f647957344a28d757
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Jul 15 17:02:24 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Jul 15 17:02:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4376aa62

kde-apps/libkgapi: Stabilize 23.04.2 x86, #909314

Signed-off-by: Arthur Zamarin  gentoo.org>

 kde-apps/libkgapi/libkgapi-23.04.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-23.04.2.ebuild 
b/kde-apps/libkgapi/libkgapi-23.04.2.ebuild
index 5ec1411a0451..d4b8690e107a 100644
--- a/kde-apps/libkgapi/libkgapi-23.04.2.ebuild
+++ b/kde-apps/libkgapi/libkgapi-23.04.2.ebuild
@@ -13,7 +13,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="amd64 arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
 IUSE=""
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2023-04-02 Thread Arthur Zamarin
commit: 9744dd1285346234656cca2b0d96ce8713b1ecd2
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sun Apr  2 19:32:49 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sun Apr  2 19:40:12 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9744dd12

kde-apps/libkgapi: Stabilize 22.12.3 x86, #898916

Signed-off-by: Arthur Zamarin  gentoo.org>

 kde-apps/libkgapi/libkgapi-22.12.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-22.12.3.ebuild 
b/kde-apps/libkgapi/libkgapi-22.12.3.ebuild
index 7064ef3b1202..f205c69d7e36 100644
--- a/kde-apps/libkgapi/libkgapi-22.12.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-22.12.3.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="amd64 arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
 IUSE="nls"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2023-02-21 Thread Arthur Zamarin
commit: dd25114092d68640c2fa05d44f3d5901ad96090a
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Tue Feb 21 17:13:24 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Tue Feb 21 17:13:24 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd251140

kde-apps/libkgapi: Stabilize 22.08.3-r1 x86, #892473

Signed-off-by: Arthur Zamarin  gentoo.org>

 kde-apps/libkgapi/libkgapi-22.08.3-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-22.08.3-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-22.08.3-r1.ebuild
index a46cb2350c58..0ba982756bcb 100644
--- a/kde-apps/libkgapi/libkgapi-22.08.3-r1.ebuild
+++ b/kde-apps/libkgapi/libkgapi-22.08.3-r1.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv x86"
 IUSE="nls"
 
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/files/, kde-apps/libkgapi/

2023-01-28 Thread Andreas Sturmlechner
commit: 93ce4f04790e887e14d4176fe1f931e07f9c31aa
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Jan 28 21:45:47 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat Jan 28 22:32:26 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93ce4f04

kde-apps/libkgapi: Fix AccountManager promises cache handling

Upstream commits:
b5a581d98d9b57363c44bd98eeab7243fbf13a22
d677a08c21fd99e7e8be0a0899f797f9237207e4

KDE-bug: https://bugs.kde.org/show_bug.cgi?id=406839
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=409122
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=421664
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=456923

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...ager-dont-keep-finished-promises-in-cache.patch | 27 
 ...e-promises-for-AccountManager-findAccount.patch | 75 ++
 kde-apps/libkgapi/libkgapi-22.08.3-r1.ebuild   | 49 ++
 3 files changed, 151 insertions(+)

diff --git 
a/kde-apps/libkgapi/files/libkgapi-22.08.3-AccountManager-dont-keep-finished-promises-in-cache.patch
 
b/kde-apps/libkgapi/files/libkgapi-22.08.3-AccountManager-dont-keep-finished-promises-in-cache.patch
new file mode 100644
index ..485bc7d840f8
--- /dev/null
+++ 
b/kde-apps/libkgapi/files/libkgapi-22.08.3-AccountManager-dont-keep-finished-promises-in-cache.patch
@@ -0,0 +1,27 @@
+From b5a581d98d9b57363c44bd98eeab7243fbf13a22 Mon Sep 17 00:00:00 2001
+From: Fabian Vogt 
+Date: Mon, 21 Nov 2022 13:00:41 +0100
+Subject: [PATCH] AccountManager: Don't keep finished promises in the cache
+
+AccountPromises are destroyed one event loop cycle after they finished().
+They won't emit finished() again, so they can't be used.
+---
+ src/core/accountmanager.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/core/accountmanager.cpp b/src/core/accountmanager.cpp
+index 42719c5e..da5c37b6 100644
+--- a/src/core/accountmanager.cpp
 b/src/core/accountmanager.cpp
+@@ -134,7 +134,7 @@ public:
+ auto promise = mPendingPromises.value(key, nullptr);
+ if (!promise) {
+ promise = new AccountPromise(q);
+-QObject::connect(promise, ::destroyed, q, [key, this]() {
++QObject::connect(promise, ::finished, q, [key, 
this]() {
+ mPendingPromises.remove(key);
+ });
+ mPendingPromises.insert(key, promise);
+-- 
+GitLab
+

diff --git 
a/kde-apps/libkgapi/files/libkgapi-22.08.3-dont-cache-promises-for-AccountManager-findAccount.patch
 
b/kde-apps/libkgapi/files/libkgapi-22.08.3-dont-cache-promises-for-AccountManager-findAccount.patch
new file mode 100644
index ..b24b80377686
--- /dev/null
+++ 
b/kde-apps/libkgapi/files/libkgapi-22.08.3-dont-cache-promises-for-AccountManager-findAccount.patch
@@ -0,0 +1,75 @@
+From d677a08c21fd99e7e8be0a0899f797f9237207e4 Mon Sep 17 00:00:00 2001
+From: Fabian Vogt 
+Date: Mon, 21 Nov 2022 13:02:27 +0100
+Subject: [PATCH] Don't cache promises for AccountManager::findAccount
+
+Unlike AccountManager::getAccount and AccountManager::refreshTokens, this
+method does not return an authenticated account. However, the promises are
+cached for all of them in the same store, so it was possible for a call to
+e.g. refreshTokens to get a promise created by findAccount instead, resulting
+in an unexpected result. Just don't cache promises created by findAccount.
+
+BUG: 406839
+BUG: 409122
+BUG: 421664
+BUG: 456923
+---
+ src/core/accountmanager.cpp | 38 ++---
+ 1 file changed, 18 insertions(+), 20 deletions(-)
+
+diff --git a/src/core/accountmanager.cpp b/src/core/accountmanager.cpp
+index da5c37b6..c6b8189d 100644
+--- a/src/core/accountmanager.cpp
 b/src/core/accountmanager.cpp
+@@ -265,30 +265,28 @@ AccountPromise *AccountManager::refreshTokens(const 
QString , const QStri
+ 
+ AccountPromise *AccountManager::findAccount(const QString , const 
QString , const QList )
+ {
+-auto promise = d->createPromise(apiKey, accountName);
+-if (!promise->d->isRunning()) {
+-QTimer::singleShot(0, this, [=]() {
+-d->ensureStore([=](bool storeOpened) {
+-if (!storeOpened) {
+-promise->d->setError(tr("Failed to open account store"));
+-return;
+-}
++auto promise = new AccountPromise(this);
++QTimer::singleShot(0, this, [=]() {
++d->ensureStore([=](bool storeOpened) {
++if (!storeOpened) {
++promise->d->setError(tr("Failed to open account store"));
++return;
++}
+ 
+-const auto account = d->mStore->getAccount(apiKey, 
accountName);
+-if (!account) {
+-promise->d->setAccount({});
++const auto account = d->mStore->getAccount(apiKey, accountName);
++if (!account) {
++promise->d->setAccount({});
++} 

[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/files/

2022-12-03 Thread Andreas Sturmlechner
commit: dcf830014cc3b2cf271585a22cc2973b9cb204e8
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Sat Dec  3 10:49:53 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Sat Dec  3 10:50:48 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcf83001

kde-apps/libkgapi: Drop obsolete patch

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../files/libkgapi-22.04.2-gnu_source.patch| 23 --
 1 file changed, 23 deletions(-)

diff --git a/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch 
b/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch
deleted file mode 100644
index 88e3e2a3ed34..
--- a/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-https://invent.kde.org/pim/libkgapi/-/merge_requests/29
-https://invent.kde.org/pim/libkgapi/-/merge_requests/29/diffs?commit_id=1e6a54a9f2d818aa4046e5291702e236a53ba987
-

- src/saslplugin/CMakeLists.txt | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/saslplugin/CMakeLists.txt b/src/saslplugin/CMakeLists.txt
-index 61edd04..e8823fb 100644
 a/src/saslplugin/CMakeLists.txt
-+++ b/src/saslplugin/CMakeLists.txt
-@@ -2,7 +2,7 @@ include(CheckIncludeFile)
- include(CheckStructHasMember)
- 
- if (NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
--   add_definitions(-D_POSIX_SOURCE)
-+  add_definitions(-D_GNU_SOURCE)
- endif()
- 
- if (WIN32)
--- 
-2.35.1
-



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2022-07-19 Thread Andreas Sturmlechner
commit: 170b80ee6f53b932ae2d8369abbac87aa7f1fc71
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Jul 19 10:46:09 2022 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Jul 19 10:48:57 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=170b80ee

kde-apps/libkgapi: Disable failing tests

Closes: https://bugs.gentoo.org/852593
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-apps/libkgapi/libkgapi-22.04.3.ebuild | 11 +--
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/kde-apps/libkgapi/libkgapi-22.04.3.ebuild 
b/kde-apps/libkgapi/libkgapi-22.04.3.ebuild
index 2e26e8525db4..baf8148f39c3 100644
--- a/kde-apps/libkgapi/libkgapi-22.04.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-22.04.3.ebuild
@@ -17,9 +17,6 @@ SLOT="5"
 KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
 IUSE="nls"
 
-BDEPEND="
-   nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )
-"
 DEPEND="
dev-libs/cyrus-sasl:2
>=dev-qt/qtgui-${QTMIN}:5
@@ -31,6 +28,7 @@ DEPEND="
>=kde-frameworks/kwallet-${KFMIN}:5
 "
 RDEPEND="${DEPEND}"
+BDEPEND="nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )"
 
 PATCHES=( "${FILESDIR}"/${PN}-22.04.2-gnu_source.patch )
 
@@ -38,9 +36,10 @@ src_test() {
local myctestargs=(
# Both fail for multiple distros, see bug #832709 for more 
discussion
# Revisit at least once Qt 5.15.3 is in wider distribution (in 
Gentoo at least):
-   # - contacts-contactcreatejobtest
-   # - contacts-contactmodifyjobtest
-   -E 
"(contacts-contactcreatejobtest|contacts-contactmodifyjobtest)"
+   #   contacts-contactcreatejobtest, contacts-contactmodifyjobtest
+   # More failures not specific to Gentoo, bug #852593, KDE-bug 
#440648:
+   #  calendar-eventcreatejobtest, calendar-eventfetchjobtest, 
calendar-eventmodifyjobtest
+   -E 
"(contacts-contactcreatejobtest|contacts-contactmodifyjobtest|calendar-eventcreatejobtest|calendar-eventfetchjobtest|calendar-eventmodifyjobtest)"
)
 
virtx cmake_src_test



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/files/, kde-apps/libkgapi/

2022-07-15 Thread Sam James
commit: 4443c8095edbfbb98ec5cf1c3e6b5c109ae8bed4
Author: Alfred Persson Forsberg  catcream  org>
AuthorDate: Tue Jun 28 16:11:03 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 15 07:12:19 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4443c809

kde-apps/libkgapi: fix build for musl

The issue here is that NI_MAXHOST is used inside
saslplugin/plugin_common.c. That is a GNU extension only defined when
_GNU_SOURCE is defined. Declarning that this is POSIX source
code (_POSIX_SOURCE) is therefore misleading and breaks the build for
musl.

See:
https://invent.kde.org/pim/libkgapi/-/merge_requests/29/diffs?commit_id=1e6a54a9f2d818aa4046e5291702e236a53ba987,
https://invent.kde.org/pim/libkgapi/-/merge_requests/29/

Signed-off-by: Alfred Persson Forsberg  catcream.org>
Closes: https://github.com/gentoo/gentoo/pull/26116
Signed-off-by: Sam James  gentoo.org>

 .../files/libkgapi-22.04.2-gnu_source.patch| 23 ++
 kde-apps/libkgapi/libkgapi-22.04.3.ebuild  |  2 ++
 2 files changed, 25 insertions(+)

diff --git a/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch 
b/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch
new file mode 100644
index ..88e3e2a3ed34
--- /dev/null
+++ b/kde-apps/libkgapi/files/libkgapi-22.04.2-gnu_source.patch
@@ -0,0 +1,23 @@
+https://invent.kde.org/pim/libkgapi/-/merge_requests/29
+https://invent.kde.org/pim/libkgapi/-/merge_requests/29/diffs?commit_id=1e6a54a9f2d818aa4046e5291702e236a53ba987
+
+---
+ src/saslplugin/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/saslplugin/CMakeLists.txt b/src/saslplugin/CMakeLists.txt
+index 61edd04..e8823fb 100644
+--- a/src/saslplugin/CMakeLists.txt
 b/src/saslplugin/CMakeLists.txt
+@@ -2,7 +2,7 @@ include(CheckIncludeFile)
+ include(CheckStructHasMember)
+ 
+ if (NOT CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
+-   add_definitions(-D_POSIX_SOURCE)
++  add_definitions(-D_GNU_SOURCE)
+ endif()
+ 
+ if (WIN32)
+-- 
+2.35.1
+

diff --git a/kde-apps/libkgapi/libkgapi-22.04.3.ebuild 
b/kde-apps/libkgapi/libkgapi-22.04.3.ebuild
index 6b4d892a0c6a..2e26e8525db4 100644
--- a/kde-apps/libkgapi/libkgapi-22.04.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-22.04.3.ebuild
@@ -32,6 +32,8 @@ DEPEND="
 "
 RDEPEND="${DEPEND}"
 
+PATCHES=( "${FILESDIR}"/${PN}-22.04.2-gnu_source.patch )
+
 src_test() {
local myctestargs=(
# Both fail for multiple distros, see bug #832709 for more 
discussion



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2022-03-17 Thread Sam James
commit: de961b344931e87678fecda91e71fe0530cb5d9b
Author: Sam James  gentoo  org>
AuthorDate: Thu Mar 17 17:33:02 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Mar 17 17:33:58 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de961b34

kde-apps/libkgapi: fix ctest typo

Bug: https://bugs.gentoo.org/832709
Signed-off-by: Sam James  gentoo.org>

 kde-apps/libkgapi/libkgapi-21.12.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-21.12.3.ebuild 
b/kde-apps/libkgapi/libkgapi-21.12.3.ebuild
index cb1ee520c959..78c2858046a2 100644
--- a/kde-apps/libkgapi/libkgapi-21.12.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-21.12.3.ebuild
@@ -38,7 +38,7 @@ src_test() {
# Revisit at least once Qt 5.15.3 is in wider distribution (in 
Gentoo at least):
# - contacts-contactcreatejobtest
# - contacts-contactmodifyjobtest
-   -E 
"(contacts-contactcreatejobtest|contacts-contactmodifyjobtest"
+   -E 
"(contacts-contactcreatejobtest|contacts-contactmodifyjobtest)"
)
 
virtx cmake_src_test



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2022-03-16 Thread Sam James
commit: 2661c867b5cf47e49bed24b40607b39b8a4c966a
Author: Sam James  gentoo  org>
AuthorDate: Wed Mar 16 21:52:25 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Wed Mar 16 21:52:25 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2661c867

kde-apps/libkgapi: skip buggy tests

We want to report these failures upstream but I didn't
think ahead and upgraded to newer Qt 5.15.3 (not yet in wider
distribution yet in Gentoo) and some of the newer failures I hit
may be attributed to that.

So, let's skip them for now, and circle back. Other distros
(Exherbo, Alpine) are hitting these failures anyway so we know it's not
Gentoo-specific.

Bug: https://bugs.gentoo.org/832709
Signed-off-by: Sam James  gentoo.org>

 kde-apps/libkgapi/libkgapi-21.12.3.ebuild | 12 
 1 file changed, 12 insertions(+)

diff --git a/kde-apps/libkgapi/libkgapi-21.12.3.ebuild 
b/kde-apps/libkgapi/libkgapi-21.12.3.ebuild
index cd70cf990abc..cb1ee520c959 100644
--- a/kde-apps/libkgapi/libkgapi-21.12.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-21.12.3.ebuild
@@ -31,3 +31,15 @@ DEPEND="
>=kde-frameworks/kwallet-${KFMIN}:5
 "
 RDEPEND="${DEPEND}"
+
+src_test() {
+   local myctestargs=(
+   # Both fail for multiple distros, see bug #832709 for more 
discussion
+   # Revisit at least once Qt 5.15.3 is in wider distribution (in 
Gentoo at least):
+   # - contacts-contactcreatejobtest
+   # - contacts-contactmodifyjobtest
+   -E 
"(contacts-contactcreatejobtest|contacts-contactmodifyjobtest"
+   )
+
+   virtx cmake_src_test
+}



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2021-11-30 Thread Yixun Lan
commit: 6b6ad1d0b0d2b74806f00f936bdd85f43228c027
Author: Alex Fan  gmail  com>
AuthorDate: Wed Dec  1 02:23:06 2021 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Wed Dec  1 06:34:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b6ad1d0

kde-apps/libkgapi: keyword 21.08.3 for ~riscv

Signed-off-by: Alex Fan  gmail.com>
Signed-off-by: Yixun Lan  gentoo.org>

 kde-apps/libkgapi/libkgapi-21.08.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-21.08.3.ebuild 
b/kde-apps/libkgapi/libkgapi-21.08.3.ebuild
index b015c9225c74..d948e288cd46 100644
--- a/kde-apps/libkgapi/libkgapi-21.08.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-21.08.3.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="amd64 arm64 ~ppc64 x86"
+KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
 IUSE="nls"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/files/, kde-apps/libkgapi/

2021-02-24 Thread Andreas Sturmlechner
commit: d18944a40e30a4cbc81eabad819c5b91126629ce
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Feb 24 21:18:24 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Feb 24 22:39:43 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d18944a4

kde-apps/libkgapi: drop 20.08.3*

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-apps/libkgapi/Manifest |  1 -
 ...20.08.3-fix-contactfetchjobtest-w-qt-5.15.patch | 31 -
 kde-apps/libkgapi/libkgapi-20.08.3-r1.ebuild   | 40 --
 3 files changed, 72 deletions(-)

diff --git a/kde-apps/libkgapi/Manifest b/kde-apps/libkgapi/Manifest
index 4d783edbb5d..ecf59a49792 100644
--- a/kde-apps/libkgapi/Manifest
+++ b/kde-apps/libkgapi/Manifest
@@ -1,2 +1 @@
-DIST libkgapi-20.08.3.tar.xz 242676 BLAKE2B 
86b04cea376eb46081632fb571bdb3a67f4f44f3dd6c8a3af0144598634417ee39defb445324f33969420718daa999f43c5ea5d9c01634a0ec944bf457219fd7
 SHA512 
de7062632660777074f4d0d8b754b072c7f2b0550260e994d1db3e99d8f258f2507ad605d91cb6c465794ced92b740a742ab99947737edea73fd928c087d4388
 DIST libkgapi-20.12.2.tar.xz 246020 BLAKE2B 
c934898d8832c0264919a313d25d6a74a7a377dbd5575926ea6bc6ebbe8870e37691b307b058b67a5ff09d9bbf2db759b4d98d93d347a239315500e7f95d5bdc
 SHA512 
0350eaff72b192219553047781e1ae79bc794b9519095f812a1c8efe3e9d33c3dbb5d9db07bd28a39132adc4543627e2c46a866aec9f8710ef2d35cfb0a1f697

diff --git 
a/kde-apps/libkgapi/files/libkgapi-20.08.3-fix-contactfetchjobtest-w-qt-5.15.patch
 
b/kde-apps/libkgapi/files/libkgapi-20.08.3-fix-contactfetchjobtest-w-qt-5.15.patch
deleted file mode 100644
index 42cd78136ad..000
--- 
a/kde-apps/libkgapi/files/libkgapi-20.08.3-fix-contactfetchjobtest-w-qt-5.15.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 570c0fd731af9ca4cead249d1db6133acc21f7c1 Mon Sep 17 00:00:00 2001
-From: David Barchiesi 
-Date: Mon, 24 Aug 2020 12:04:17 +0200
-Subject: [PATCH] Remove duplicate "gContact$groupMembershipInfo" value in mock
- fetch response.
-
-BUG: 419629

- autotests/contacts/data/contact1_fetch_response.txt | 6 --
- 1 file changed, 6 deletions(-)
-
-diff --git a/autotests/contacts/data/contact1_fetch_response.txt 
b/autotests/contacts/data/contact1_fetch_response.txt
-index 7b22c91..89fc0e1 100644
 a/autotests/contacts/data/contact1_fetch_response.txt
-+++ b/autotests/contacts/data/contact1_fetch_response.txt
-@@ -44,12 +44,6 @@ Content-type: application/json; charset=UTF-8
-   "$t": "2018-03-25T16:37:29.565Z"
- }, 
- "xmlns$gd": "http://schemas.google.com/g/2005;, 
--"gContact$groupMembershipInfo": [
--  {
--"deleted": "false", 
--"href": "http://www.google.com/m8/feeds/groups/MockAccount/base/6;
--  }
--], 
- "gd$structuredPostalAddress": [
-   {
- "gd$country": {
--- 
-GitLab
-

diff --git a/kde-apps/libkgapi/libkgapi-20.08.3-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-20.08.3-r1.ebuild
deleted file mode 100644
index 99b60fac04b..000
--- a/kde-apps/libkgapi/libkgapi-20.08.3-r1.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-ECM_TEST="true"
-KFMIN=5.74.0
-QTMIN=5.15.1
-VIRTUALX_REQUIRED="test"
-inherit ecm kde.org
-
-DESCRIPTION="Library for accessing Google calendar and contact resources"
-HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
-
-LICENSE="LGPL-2.1+"
-SLOT="5"
-KEYWORDS="amd64 arm64 ~ppc64 x86"
-IUSE="nls"
-
-BDEPEND="
-   nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )
-"
-DEPEND="
-   dev-libs/cyrus-sasl:2
-   >=dev-qt/qtgui-${QTMIN}:5
-   >=dev-qt/qtnetwork-${QTMIN}:5
-   >=dev-qt/qtwebengine-${QTMIN}:5[widgets]
-   >=dev-qt/qtwidgets-${QTMIN}:5
-   >=dev-qt/qtxml-${QTMIN}:5
-   >=kde-frameworks/kcalendarcore-${KFMIN}:5
-   >=kde-frameworks/kcontacts-${KFMIN}:5
-   >=kde-frameworks/kio-${KFMIN}:5
-   >=kde-frameworks/kwallet-${KFMIN}:5
-   >=kde-frameworks/kwindowsystem-${KFMIN}:5
-"
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}/${P}-fix-contactfetchjobtest-w-qt-5.15.patch" # bug 754159
-)



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2021-02-24 Thread Mikle Kolyada
commit: da6f7f55f1ef8b68cf75623b1446306f70b2f69e
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Wed Feb 24 19:34:42 2021 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Wed Feb 24 19:34:42 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da6f7f55

kde-apps/libkgapi: Stabilize 20.12.2 arm64, #770775

Signed-off-by: Mikle Kolyada  gentoo.org>

 kde-apps/libkgapi/libkgapi-20.12.2.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-20.12.2.ebuild 
b/kde-apps/libkgapi/libkgapi-20.12.2.ebuild
index 5299cddf59e..1f8552178b9 100644
--- a/kde-apps/libkgapi/libkgapi-20.12.2.ebuild
+++ b/kde-apps/libkgapi/libkgapi-20.12.2.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
 
 LICENSE="LGPL-2.1+"
 SLOT="5"
-KEYWORDS="amd64 ~arm64 ~ppc64 x86"
+KEYWORDS="amd64 arm64 ~ppc64 x86"
 IUSE="nls"
 
 BDEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/files/, kde-apps/libkgapi/

2021-01-14 Thread Andreas Sturmlechner
commit: 1ddf70fde01795a6b4ee92321f553fd9dab7ba92
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Jan 14 19:20:33 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Jan 14 19:48:48 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ddf70fd

kde-apps/libkgapi: Remember GMail auth token

See also: https://bugs.kde.org/show_bug.cgi?id=429406

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...ibkgapi-20.12.1-remember-gmail-auth-token.patch | 30 +++
 kde-apps/libkgapi/libkgapi-20.12.1-r1.ebuild   | 35 ++
 2 files changed, 65 insertions(+)

diff --git 
a/kde-apps/libkgapi/files/libkgapi-20.12.1-remember-gmail-auth-token.patch 
b/kde-apps/libkgapi/files/libkgapi-20.12.1-remember-gmail-auth-token.patch
new file mode 100644
index 000..4d777f1475f
--- /dev/null
+++ b/kde-apps/libkgapi/files/libkgapi-20.12.1-remember-gmail-auth-token.patch
@@ -0,0 +1,30 @@
+From d81d247026ac993ac5717ca471c7fcf1778951f2 Mon Sep 17 00:00:00 2001
+From: Antonio Rojas 
+Date: Wed, 6 Jan 2021 15:54:52 +0100
+Subject: [PATCH] Don't reset account scopes if not necessary
+
+This triggers unnecesary authentication prompts
+
+BUG: 429406
+---
+ src/core/accountmanager.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/core/accountmanager.cpp b/src/core/accountmanager.cpp
+index b9af6c1..f68563e 100644
+--- a/src/core/accountmanager.cpp
 b/src/core/accountmanager.cpp
+@@ -81,7 +81,9 @@ public:
+ currentScopes.push_back(requestedScope);
+ }
+ }
+-account->setScopes(currentScopes);
++if (currentScopes != account->scopes()) {
++account->setScopes(currentScopes);
++}
+ }
+ auto *job = new AuthJob(account, apiKey, apiSecret);
+ job->setUsername(account->accountName());
+-- 
+GitLab
+

diff --git a/kde-apps/libkgapi/libkgapi-20.12.1-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-20.12.1-r1.ebuild
new file mode 100644
index 000..07016b6b5f8
--- /dev/null
+++ b/kde-apps/libkgapi/libkgapi-20.12.1-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+ECM_TEST="true"
+KFMIN=5.75.0
+QTMIN=5.15.1
+VIRTUALX_REQUIRED="test"
+inherit ecm kde.org
+
+DESCRIPTION="Library for accessing Google calendar and contact resources"
+HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
+
+LICENSE="LGPL-2.1+"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+IUSE="nls"
+
+BDEPEND="
+   nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )
+"
+DEPEND="
+   dev-libs/cyrus-sasl:2
+   >=dev-qt/qtgui-${QTMIN}:5
+   >=dev-qt/qtnetwork-${QTMIN}:5
+   >=dev-qt/qtwidgets-${QTMIN}:5
+   >=dev-qt/qtxml-${QTMIN}:5
+   >=kde-frameworks/kcalendarcore-${KFMIN}:5
+   >=kde-frameworks/kcontacts-${KFMIN}:5
+   >=kde-frameworks/kwallet-${KFMIN}:5
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-remember-gmail-auth-token.patch" ) # KDE-Bug 429406



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2021-01-14 Thread Andreas Sturmlechner
commit: 0ada8f03b7a5985689a009c3200ea4e75a039090
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Jan 14 19:21:51 2021 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Jan 14 19:48:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ada8f03

kde-apps/libkgapi: Drop 20.12.1 (r0)

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-apps/libkgapi/libkgapi-20.12.1.ebuild | 33 ---
 1 file changed, 33 deletions(-)

diff --git a/kde-apps/libkgapi/libkgapi-20.12.1.ebuild 
b/kde-apps/libkgapi/libkgapi-20.12.1.ebuild
deleted file mode 100644
index 950dc581ce2..000
--- a/kde-apps/libkgapi/libkgapi-20.12.1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-ECM_TEST="true"
-KFMIN=5.75.0
-QTMIN=5.15.1
-VIRTUALX_REQUIRED="test"
-inherit ecm kde.org
-
-DESCRIPTION="Library for accessing Google calendar and contact resources"
-HOMEPAGE="https://api.kde.org/kdepim/libkgapi/html/index.html;
-
-LICENSE="LGPL-2.1+"
-SLOT="5"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
-IUSE="nls"
-
-BDEPEND="
-   nls? ( >=dev-qt/linguist-tools-${QTMIN}:5 )
-"
-DEPEND="
-   dev-libs/cyrus-sasl:2
-   >=dev-qt/qtgui-${QTMIN}:5
-   >=dev-qt/qtnetwork-${QTMIN}:5
-   >=dev-qt/qtwidgets-${QTMIN}:5
-   >=dev-qt/qtxml-${QTMIN}:5
-   >=kde-frameworks/kcalendarcore-${KFMIN}:5
-   >=kde-frameworks/kcontacts-${KFMIN}:5
-   >=kde-frameworks/kwallet-${KFMIN}:5
-"
-RDEPEND="${DEPEND}"



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2020-12-22 Thread Andreas Sturmlechner
commit: 8eee7d0ff4ffe71f6fc75fddcd996c18891b3bc4
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Dec 22 11:07:13 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Dec 22 11:18:10 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8eee7d0f

kde-apps/libkgapi: Add missing DEPEND

Upstream commit 79f6768bbb8e5c042a7e700db8ac212a3f5673dd

Closes: https://bugs.gentoo.org/760938
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../libkgapi/{libkgapi-20.08.3.ebuild => libkgapi-20.08.3-r1.ebuild} | 5 ++---
 .../libkgapi/{libkgapi-20.12.0.ebuild => libkgapi-20.12.0-r1.ebuild} | 1 +
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kde-apps/libkgapi/libkgapi-20.08.3.ebuild 
b/kde-apps/libkgapi/libkgapi-20.08.3-r1.ebuild
similarity index 93%
rename from kde-apps/libkgapi/libkgapi-20.08.3.ebuild
rename to kde-apps/libkgapi/libkgapi-20.08.3-r1.ebuild
index 53678224521..99b60fac04b 100644
--- a/kde-apps/libkgapi/libkgapi-20.08.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-20.08.3-r1.ebuild
@@ -30,11 +30,10 @@ DEPEND="
>=kde-frameworks/kcalendarcore-${KFMIN}:5
>=kde-frameworks/kcontacts-${KFMIN}:5
>=kde-frameworks/kio-${KFMIN}:5
+   >=kde-frameworks/kwallet-${KFMIN}:5
>=kde-frameworks/kwindowsystem-${KFMIN}:5
 "
-RDEPEND="${DEPEND}
-   !

[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/files/, kde-apps/libkgapi/

2020-11-25 Thread Andreas Sturmlechner
commit: 421c9da28628083d6c510eed8c963ed025a1cfbe
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Nov 25 12:22:52 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Nov 25 13:17:42 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=421c9da2

kde-apps/libkgapi: Fix contactfetchjobtest

Upstream commit 570c0fd731af9ca4cead249d1db6133acc21f7c1
KDE-Bug: https://bugs.kde.org/show_bug.cgi?id=419629
Reported-by: Paolo Pedroni  iol.it>
Closes: https://bugs.gentoo.org/754159
Package-Manager: Portage-3.0.10, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 ...20.08.3-fix-contactfetchjobtest-w-qt-5.15.patch | 31 ++
 kde-apps/libkgapi/libkgapi-20.08.3.ebuild  |  4 +++
 2 files changed, 35 insertions(+)

diff --git 
a/kde-apps/libkgapi/files/libkgapi-20.08.3-fix-contactfetchjobtest-w-qt-5.15.patch
 
b/kde-apps/libkgapi/files/libkgapi-20.08.3-fix-contactfetchjobtest-w-qt-5.15.patch
new file mode 100644
index 000..42cd78136ad
--- /dev/null
+++ 
b/kde-apps/libkgapi/files/libkgapi-20.08.3-fix-contactfetchjobtest-w-qt-5.15.patch
@@ -0,0 +1,31 @@
+From 570c0fd731af9ca4cead249d1db6133acc21f7c1 Mon Sep 17 00:00:00 2001
+From: David Barchiesi 
+Date: Mon, 24 Aug 2020 12:04:17 +0200
+Subject: [PATCH] Remove duplicate "gContact$groupMembershipInfo" value in mock
+ fetch response.
+
+BUG: 419629
+---
+ autotests/contacts/data/contact1_fetch_response.txt | 6 --
+ 1 file changed, 6 deletions(-)
+
+diff --git a/autotests/contacts/data/contact1_fetch_response.txt 
b/autotests/contacts/data/contact1_fetch_response.txt
+index 7b22c91..89fc0e1 100644
+--- a/autotests/contacts/data/contact1_fetch_response.txt
 b/autotests/contacts/data/contact1_fetch_response.txt
+@@ -44,12 +44,6 @@ Content-type: application/json; charset=UTF-8
+   "$t": "2018-03-25T16:37:29.565Z"
+ }, 
+ "xmlns$gd": "http://schemas.google.com/g/2005;, 
+-"gContact$groupMembershipInfo": [
+-  {
+-"deleted": "false", 
+-"href": "http://www.google.com/m8/feeds/groups/MockAccount/base/6;
+-  }
+-], 
+ "gd$structuredPostalAddress": [
+   {
+ "gd$country": {
+-- 
+GitLab
+

diff --git a/kde-apps/libkgapi/libkgapi-20.08.3.ebuild 
b/kde-apps/libkgapi/libkgapi-20.08.3.ebuild
index 20276f79832..9ba86c9d21f 100644
--- a/kde-apps/libkgapi/libkgapi-20.08.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-20.08.3.ebuild
@@ -35,3 +35,7 @@ DEPEND="
 RDEPEND="${DEPEND}
!

[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2019-03-20 Thread Andreas Sturmlechner
commit: 02c1bd47ed793795b0e43c4e1924214aa277f822
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Wed Mar 20 12:44:56 2019 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Wed Mar 20 12:46:24 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02c1bd47

kde-apps/libkgapi: Disable broken tests

Bug: https://bugs.gentoo.org/679764
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 kde-apps/libkgapi/libkgapi-18.12.3.ebuild | 9 +
 1 file changed, 9 insertions(+)

diff --git a/kde-apps/libkgapi/libkgapi-18.12.3.ebuild 
b/kde-apps/libkgapi/libkgapi-18.12.3.ebuild
index 8fc489120e5..b3763d73b98 100644
--- a/kde-apps/libkgapi/libkgapi-18.12.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-18.12.3.ebuild
@@ -33,3 +33,12 @@ RDEPEND="${DEPEND}
!kde-apps/kdepim-l10n
!

[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/, kde-apps/libkgapi/files/

2018-01-18 Thread Andreas Sturmlechner
commit: f949b61b15f50aa8d58fc82001b03cc216dd3160
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Jan 18 22:08:30 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Jan 18 23:01:28 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f949b61b

kde-apps/libkgapi: Fix Google token page URL

Upstream commit fa572d93cfa463f61432dd92239e747f9642fbae

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 .../files/libkgapi-17.12.1-gmail-tokenpage.patch   | 40 ++
 kde-apps/libkgapi/libkgapi-17.12.1-r1.ebuild   | 36 +++
 2 files changed, 76 insertions(+)

diff --git a/kde-apps/libkgapi/files/libkgapi-17.12.1-gmail-tokenpage.patch 
b/kde-apps/libkgapi/files/libkgapi-17.12.1-gmail-tokenpage.patch
new file mode 100644
index 000..61162ddf7c0
--- /dev/null
+++ b/kde-apps/libkgapi/files/libkgapi-17.12.1-gmail-tokenpage.patch
@@ -0,0 +1,40 @@
+From fa572d93cfa463f61432dd92239e747f9642fbae Mon Sep 17 00:00:00 2001
+From: David Kahles 
+Date: Fri, 12 Jan 2018 15:23:53 +0100
+Subject: Fix token page URL
+
+Summary:
+It seems like Google changed the URL of the token page.
+Maybe we should use QString::startsWith, to be futureproof?
+
+BUG: 388483
+
+Test Plan:
+- Login in KOrganizer and KMail works again
+- All tests pass (though i think there is no oauth2 test)
+
+Reviewers: dvratil, mlaurent
+
+Reviewed By: mlaurent
+
+Differential Revision: https://phabricator.kde.org/D9843
+---
+ src/core/ui/authwidget_p.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/core/ui/authwidget_p.h b/src/core/ui/authwidget_p.h
+index 78b0e7f..29ece44 100644
+--- a/src/core/ui/authwidget_p.h
 b/src/core/ui/authwidget_p.h
+@@ -79,7 +79,7 @@ class Q_DECL_HIDDEN AuthWidgetPrivate: public QObject {
+ bool isSigninPage(const QUrl ) const { return url.path() == 
QLatin1String("/signin/oauth"); }
+ bool isUsernameFrame(const QUrl ) { return url.path() == 
QLatin1String("/signin/oauth/identifier"); }
+ bool isPasswordFrame(const QUrl ) { return url.path() == 
QLatin1String("/signin/v2/challenge/pwd"); }
+-bool isTokenPage(const QUrl ) { return url.path() == 
QLatin1String("/o/oauth2/approval/v2"); }
++bool isTokenPage(const QUrl ) { return url.path() == 
QLatin1String("/o/oauth2/approval/v2/approvalnativeapp"); }
+ 
+ void setSslIcon(const QString );
+ 
+-- 
+cgit v0.11.2
+

diff --git a/kde-apps/libkgapi/libkgapi-17.12.1-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-17.12.1-r1.ebuild
new file mode 100644
index 000..d3c67b28e4f
--- /dev/null
+++ b/kde-apps/libkgapi/libkgapi-17.12.1-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_BLOCK_SLOT4="false"
+KDE_TEST="true"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Library for accessing Google calendar and contact resources"
+HOMEPAGE="https://cgit.kde.org/libkgapi.git;
+
+LICENSE="LGPL-2.1+"
+KEYWORDS="~amd64 ~x86"
+IUSE="nls"
+
+COMMON_DEPEND="
+   $(add_frameworks_dep kio)
+   $(add_frameworks_dep kwindowsystem)
+   $(add_kdeapps_dep kcalcore)
+   $(add_kdeapps_dep kcontacts)
+   $(add_qt_dep qtgui)
+   $(add_qt_dep qtnetwork)
+   $(add_qt_dep qtwebengine 'widgets')
+   $(add_qt_dep qtwidgets)
+   $(add_qt_dep qtxml)
+"
+DEPEND="${COMMON_DEPEND}
+   nls? ( $(add_qt_dep linguist-tools) )
+"
+RDEPEND="${COMMON_DEPEND}
+   !kde-apps/kdepim-l10n
+"
+
+PATCHES=( "${FILESDIR}/${P}-gmail-tokenpage.patch" )



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2018-01-18 Thread Andreas Sturmlechner
commit: b7916db99a1ce20159912769ecf406a70dd92bde
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Jan 18 22:08:50 2018 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Jan 18 23:01:28 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7916db9

kde-apps/libkgapi: Drop 17.12.1 (r0)

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 kde-apps/libkgapi/libkgapi-17.12.1.ebuild | 34 ---
 1 file changed, 34 deletions(-)

diff --git a/kde-apps/libkgapi/libkgapi-17.12.1.ebuild 
b/kde-apps/libkgapi/libkgapi-17.12.1.ebuild
deleted file mode 100644
index 9f3e37a7764..000
--- a/kde-apps/libkgapi/libkgapi-17.12.1.ebuild
+++ /dev/null
@@ -1,34 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-KDE_BLOCK_SLOT4="false"
-KDE_TEST="true"
-VIRTUALX_REQUIRED="test"
-inherit kde5
-
-DESCRIPTION="Library for accessing Google calendar and contact resources"
-HOMEPAGE="https://cgit.kde.org/libkgapi.git;
-
-LICENSE="LGPL-2.1+"
-KEYWORDS="~amd64 ~x86"
-IUSE="nls"
-
-COMMON_DEPEND="
-   $(add_frameworks_dep kio)
-   $(add_frameworks_dep kwindowsystem)
-   $(add_kdeapps_dep kcalcore)
-   $(add_kdeapps_dep kcontacts)
-   $(add_qt_dep qtgui)
-   $(add_qt_dep qtnetwork)
-   $(add_qt_dep qtwebengine 'widgets')
-   $(add_qt_dep qtwidgets)
-   $(add_qt_dep qtxml)
-"
-DEPEND="${COMMON_DEPEND}
-   nls? ( $(add_qt_dep linguist-tools) )
-"
-RDEPEND="${COMMON_DEPEND}
-   !kde-apps/kdepim-l10n
-"



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2017-11-29 Thread Thomas Deutschmann
commit: a4b8152b308d630cf2304bc89e56531eb849c3e7
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Thu Nov 30 01:59:05 2017 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Thu Nov 30 02:07:30 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4b8152b

kde-apps/libkgapi: x86 stable (bug #637292)

Package-Manager: Portage-2.3.16, Repoman-2.3.6

 kde-apps/libkgapi/libkgapi-17.08.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kde-apps/libkgapi/libkgapi-17.08.3.ebuild 
b/kde-apps/libkgapi/libkgapi-17.08.3.ebuild
index 8da81153202..eb7c1c5f9a5 100644
--- a/kde-apps/libkgapi/libkgapi-17.08.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-17.08.3.ebuild
@@ -12,7 +12,7 @@ DESCRIPTION="Library for accessing Google calendar and 
contact resources"
 HOMEPAGE="https://projects.kde.org/projects/extragear/libs/libkgapi;
 
 LICENSE="LGPL-2.1+"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 x86"
 IUSE="nls"
 
 COMMON_DEPEND="



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2017-11-07 Thread Andreas Sturmlechner
commit: c19765efb2f064240e8c13136f569624bfa7a8d5
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Tue Nov  7 18:43:34 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Tue Nov  7 18:44:27 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c19765ef

kde-apps/libkgapi: Add missing DEPEND

Closes: https://bugs.gentoo.org/636808
Package-Manager: Portage-2.3.8, Repoman-2.3.4

 kde-apps/libkgapi/libkgapi-17.04.3.ebuild | 2 +-
 kde-apps/libkgapi/libkgapi-17.08.2.ebuild | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kde-apps/libkgapi/libkgapi-17.04.3.ebuild 
b/kde-apps/libkgapi/libkgapi-17.04.3.ebuild
index c398567f372..a4cbd7726b2 100644
--- a/kde-apps/libkgapi/libkgapi-17.04.3.ebuild
+++ b/kde-apps/libkgapi/libkgapi-17.04.3.ebuild
@@ -22,7 +22,7 @@ COMMON_DEPEND="
$(add_kdeapps_dep kcontacts)
$(add_qt_dep qtgui)
$(add_qt_dep qtnetwork)
-   $(add_qt_dep qtwebengine)
+   $(add_qt_dep qtwebengine 'widgets')
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
 "

diff --git a/kde-apps/libkgapi/libkgapi-17.08.2.ebuild 
b/kde-apps/libkgapi/libkgapi-17.08.2.ebuild
index e63b55ef58b..8da81153202 100644
--- a/kde-apps/libkgapi/libkgapi-17.08.2.ebuild
+++ b/kde-apps/libkgapi/libkgapi-17.08.2.ebuild
@@ -22,7 +22,7 @@ COMMON_DEPEND="
$(add_kdeapps_dep kcontacts)
$(add_qt_dep qtgui)
$(add_qt_dep qtnetwork)
-   $(add_qt_dep qtwebengine)
+   $(add_qt_dep qtwebengine 'widgets')
$(add_qt_dep qtwidgets)
$(add_qt_dep qtxml)
 "



[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/, kde-apps/libkgapi/files/

2017-04-27 Thread Andreas Sturmlechner
commit: 9adfadc371f342a5117387b4faf2a4549c1a4d1e
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Apr 27 17:53:37 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Apr 27 18:14:44 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9adfadc3

kde-apps/libkgapi: Drop old

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 kde-apps/libkgapi/Manifest |  1 -
 .../libkgapi/files/libkgapi-5.3.1-qt-5.8.patch | 52 --
 kde-apps/libkgapi/libkgapi-17.04.0.ebuild  | 31 -
 kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild | 33 --
 4 files changed, 117 deletions(-)

diff --git a/kde-apps/libkgapi/Manifest b/kde-apps/libkgapi/Manifest
index 7c9dd7e0b7f..5e3215e56b7 100644
--- a/kde-apps/libkgapi/Manifest
+++ b/kde-apps/libkgapi/Manifest
@@ -1,3 +1,2 @@
 DIST libkgapi-17.04.0.tar.xz 173868 SHA256 
8cc057ad5f88dee2a218b3a3aaf09720312a3fbb9a4a06b2aeb6706818557c54 SHA512 
af44c3e4d5bd34c7920a3a29e5e157c4fa3900283277176d3288cde339c7a9f99e9dc7a94eae925a15734fe9bda853559a310364e5a2c58cee5e0b31aa5de112
 WHIRLPOOL 
582985294e874605af7a77df61571564a177354d8b8e788b32147326c414003174ad3877d1ec99cbdaf021a32e47d58de4b545a2169db5946ed1269343bacb4e
 DIST libkgapi-2.2.0.tar.bz2 127026 SHA256 
c02965b639c2496d489d4f1865e35473db6f1b5e9e84fb079988d33db629c2b4 SHA512 
c5f37aacb89243d7985d7064aa8941d3d2a6c26685113e876b38c737ea2e1126b40b0f88b0908e7ea8a7bcb2fade1dc528c2f73f22890b9e892c6d18d9d3bb42
 WHIRLPOOL 
1aa1d5c661098793a6c6a112ed92198c044cd0ab9e320631e165dc2cbb510df6c7d0a96412b2147728aaba822e40c571c07ca2b88ad5f5a055c0755490774a08
-DIST libkgapi-5.3.1.tar.xz 159584 SHA256 
366692ced93442809175351f5590e6a82c4e6316f21d989c239bb72132a601fa SHA512 
257d1beea9615e9daa05333ad2de948a4e729c6cad192acbd50803be51ee86d7b3665a05fb94b40afc1bcdfcb5dbf5c2c8d2e6d635cf9c1988fe169ec69462cd
 WHIRLPOOL 
2c9c1c073702af0fdc8dd56410299a6547a6dd0a263e8eb20d162f153ceca8aa56efb7c8666c7594f270b5d3fee2ec2543d1569aeed80700bfdae8541bdc36fb

diff --git a/kde-apps/libkgapi/files/libkgapi-5.3.1-qt-5.8.patch 
b/kde-apps/libkgapi/files/libkgapi-5.3.1-qt-5.8.patch
deleted file mode 100644
index a7f69a86cae..000
--- a/kde-apps/libkgapi/files/libkgapi-5.3.1-qt-5.8.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 03a019820e9da9cf293a3ac66e55da745894c504 Mon Sep 17 00:00:00 2001
-From: Milian Wolff 
-Date: Tue, 31 Jan 2017 17:18:57 +0100
-Subject: Fix compile with Qt 5.8: add missing QImage includes
-

- src/contacts/contactcreatejob.cpp | 2 +-
- src/contacts/contactfetchphotojob.cpp | 1 +
- src/contacts/contactmodifyjob.cpp | 2 +-
- 3 files changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/src/contacts/contactcreatejob.cpp 
b/src/contacts/contactcreatejob.cpp
-index 5f41c1a..a7eb5f7 100644
 a/src/contacts/contactcreatejob.cpp
-+++ b/src/contacts/contactcreatejob.cpp
-@@ -31,7 +31,7 @@
- #include 
- #include 
- #include 
--
-+#include 
- 
- using namespace KGAPI2;
- 
-diff --git a/src/contacts/contactfetchphotojob.cpp 
b/src/contacts/contactfetchphotojob.cpp
-index 54606cb..a3ebe48 100644
 a/src/contacts/contactfetchphotojob.cpp
-+++ b/src/contacts/contactfetchphotojob.cpp
-@@ -28,6 +28,7 @@
- 
- #include 
- #include 
-+#include 
- 
- Q_DECLARE_METATYPE(KGAPI2::ContactPtr)
- 
-diff --git a/src/contacts/contactmodifyjob.cpp 
b/src/contacts/contactmodifyjob.cpp
-index ead5787..03a0e73 100644
 a/src/contacts/contactmodifyjob.cpp
-+++ b/src/contacts/contactmodifyjob.cpp
-@@ -31,7 +31,7 @@
- #include 
- #include 
- #include 
--
-+#include 
- 
- using namespace KGAPI2;
- 
--- 
-cgit v0.11.2
-

diff --git a/kde-apps/libkgapi/libkgapi-17.04.0.ebuild 
b/kde-apps/libkgapi/libkgapi-17.04.0.ebuild
deleted file mode 100644
index 8f4bcb63881..000
--- a/kde-apps/libkgapi/libkgapi-17.04.0.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-KDE_BLOCK_SLOT4="false"
-KDE_TEST="true"
-VIRTUALX_REQUIRED="test"
-inherit kde5
-
-DESCRIPTION="Library for accessing Google calendar and contact resources"
-HOMEPAGE="https://projects.kde.org/projects/extragear/libs/libkgapi;
-
-LICENSE="LGPL-2.1+"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="
-   $(add_frameworks_dep kio)
-   $(add_frameworks_dep kwindowsystem)
-   $(add_kdeapps_dep kcalcore)
-   $(add_kdeapps_dep kcontacts)
-   $(add_qt_dep qtgui)
-   $(add_qt_dep qtnetwork)
-   $(add_qt_dep qtwebengine)
-   $(add_qt_dep qtwidgets)
-   $(add_qt_dep qtxml)
-"
-RDEPEND="${DEPEND}
-   !kde-apps/kdepim-l10n
-"

diff --git a/kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild
deleted file mode 100644
index af63dce00aa..000
--- a/kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild
+++ /dev/null
@@ -1,33 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of 

[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/, kde-apps/libkgapi/files/

2017-04-27 Thread Andreas Sturmlechner
commit: 88f5d2ddef486a6ca915d2d7467e69461d4b1eff
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Apr 27 17:52:40 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Apr 27 18:14:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88f5d2dd

kde-apps/libkgapi: Fix 2FA, add USE=nls and missing DEPEND

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../libkgapi/files/libkgapi-17.04.0-auth1.patch| 168 +++
 .../libkgapi/files/libkgapi-17.04.0-auth2.patch|  36 +++
 .../libkgapi/files/libkgapi-17.04.0-auth3.patch| 310 +
 kde-apps/libkgapi/libkgapi-17.04.0-r1.ebuild   |  36 +++
 4 files changed, 550 insertions(+)

diff --git a/kde-apps/libkgapi/files/libkgapi-17.04.0-auth1.patch 
b/kde-apps/libkgapi/files/libkgapi-17.04.0-auth1.patch
new file mode 100644
index 000..eb426465947
--- /dev/null
+++ b/kde-apps/libkgapi/files/libkgapi-17.04.0-auth1.patch
@@ -0,0 +1,168 @@
+From 68b89bce22d0da234345ccffb869ae6863592624 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Daniel=20Vr=C3=A1til?= 
+Date: Thu, 27 Apr 2017 17:22:27 +0200
+Subject: [PATCH 1/3] Auth: Adapt to changes in Google OAuth token retrieval
+ process
+
+URLs and HTML code have changed a bit, which breaks authentication. Hopefully
+they won't change it too often in the future.
+---
+ src/core/ui/authwidget_p.cpp | 109 ---
+ src/core/ui/authwidget_p.h   |   6 +++
+ 2 files changed, 67 insertions(+), 48 deletions(-)
+
+diff --git a/src/core/ui/authwidget_p.cpp b/src/core/ui/authwidget_p.cpp
+index 6de33f5..75d38cd 100644
+--- a/src/core/ui/authwidget_p.cpp
 b/src/core/ui/authwidget_p.cpp
+@@ -112,11 +112,35 @@ void AuthWidgetPrivate::emitError(const enum Error 
errCode, const QString& msg)
+ 
+ void AuthWidgetPrivate::webviewUrlChanged(const QUrl )
+ {
+-qCDebug(KGAPIDebug) << url;
++qCDebug(KGAPIDebug) << "URLChange:" << url;
+ 
+-/* Access token here - hide browser and tell user to wait until we
+- * finish the authentication process ourselves */
+-if (url.host() == QLatin1String("accounts.google.com") && url.path() == 
QLatin1String("/o/oauth2/approval")) {
++if (!isGoogleHost(url)) {
++return;
++}
++
++// Username and password inputs are loaded dynamically, so we only get
++// urlChanged, but not urlFinished.
++if (isUsernameFrame(url)) {
++#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
++if (!username.isEmpty()) {
++
webview->page()->runJavaScript(QStringLiteral("document.getElementById(\"identifierId\").value
 = \"%1\";").arg(username));
++}
++#endif
++} else if (isPasswordFrame(url)) {
++#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
++if (!password.isEmpty()) {
++webview->page()->runJavaScript(QStringLiteral("var elems = 
document.getElementsByTagName(\"input\");"
++  "for (var i = 0; i 
< elems.length; i++) {"
++  "  if 
(elems[i].type == \"password\" && elems[i].name == \"password\") {"
++  "  
elems[i].value = \"%1\";"
++  "  break;"
++  "  }"
++  "}").arg(password));
++}
++#endif
++} else if (isTokenPage(url)) {
++/* Access token here - hide browser and tell user to wait until we
++ * finish the authentication process ourselves */
+ webview->setVisible(false);
+ progressbar->setVisible(false);
+ label->setVisible(true);
+@@ -131,57 +155,46 @@ void AuthWidgetPrivate::webviewFinished(bool ok)
+ qCWarning(KGAPIDebug) << "Failed to load" << webview->url();
+ }
+ 
+-QUrl url = webview->url();
+-qCDebug(KGAPIDebug) << url;
+-
+-if (url.host() == QLatin1String("accounts.google.com") && url.path() == 
QLatin1String("/ServiceLogin")) {
+-if (username.isEmpty() && password.isEmpty()) {
+-return;
+-}
+-
+-#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
+-const auto js = QStringLiteral("document.getElementById(\"%1\").value 
= \"%2\";");
+-if (!username.isEmpty()) {
+-webview->page()->runJavaScript(js.arg(QStringLiteral("Email"), 
username));
+-}
+-
+-if (!password.isEmpty()) {
+-webview->page()->runJavaScript(js.arg(QStringLiteral("Passwd"), 
password));
+-}
+-#endif
++const QUrl url = webview->url();
++qCDebug(KGAPIDebug) << "URLFinished:" << url;
+ 
++if (!isGoogleHost(url)) {
+ return;
+ }
+ 
+-if (url.host() == QLatin1String("accounts.google.com") && url.path() == 
QLatin1String("/o/oauth2/approval")) {
+-QString title = webview->title();
+-QString 

[gentoo-commits] repo/gentoo:master commit in: kde-apps/libkgapi/

2017-03-09 Thread Andreas Sturmlechner
commit: 86cbc27b3a310c1f8128236fc5cc592dc0defc11
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Thu Mar  9 23:39:43 2017 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Thu Mar  9 23:39:43 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86cbc27b

kde-apps/libkgapi: Set KDE_BLOCK_SLOT4 to false

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild | 1 +
 1 file changed, 1 insertion(+)

diff --git a/kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild 
b/kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild
index a4e636be53f..af63dce00aa 100644
--- a/kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild
+++ b/kde-apps/libkgapi/libkgapi-5.3.1-r1.ebuild
@@ -3,6 +3,7 @@
 
 EAPI=6
 
+KDE_BLOCK_SLOT4="false"
 KDE_TEST="true"
 VIRTUALX_REQUIRED="test"
 inherit kde5