[bug#50862,PATCHES] KDE updates (5.90, 22.12.2)

Message ID 836191564.431838.1647409371331@office.mailbox.org
State New
Headers
Series [bug#50862,PATCHES] KDE updates (5.90, 22.12.2) |

Commit Message

Brendan Tildesley March 16, 2022, 5:42 a.m. UTC
Anyone mind giving me a hand with something?
I've been trying to package libaccounts-qt but I've been stuck for far too long
unable to figure out why it can't find libaccounts-glib, it should use pkg-config 
to like it finds glib and gobject, but qmake just reports

Project ERROR: libaccounts-glib development package not found


From Accounts.pro, there is:
PKGCONFIG += \
	glib-2.0 \
	gobject-2.0 \
	libaccounts-glib

I was running qmake with strace but it wasn't showing anything that seemed all that useful,
and I can't see anything wrong with the libaccounts-glib package

any ideas?
  

Comments

Maxime Devos March 16, 2022, 11:01 a.m. UTC | #1
Brendan Tildesley schreef op wo 16-03-2022 om 06:42 [+0100]:
> +                  gtk-doc

This one is a build tool, so for cross-compilation it needs to be
native-inputs.

> +                  vala))

This is a compiler, so native-inputs.

(not really relevant to the pkg-config issue though ...)

Greetings,
Maxime.
  
Maxime Devos March 16, 2022, 11:03 a.m. UTC | #2
Brendan Tildesley schreef op wo 16-03-2022 om 06:42 [+0100]:
> +                  glib

glib needs to be propagated here because the pkg-config file of
libaccounts-glib asks for a 'glib-2.0', by name and not by
some absolute file name.

Greetings,
Maxime.
  
phodina April 14, 2022, 4:04 p.m. UTC | #3
Hi,
I've been going through the patches - not yet finished, there are also some more applied on top mostly concerning Plasma Mobile [1].

I'll focus on finishing going through them all in the upcoming week.

[1] https://github.com/phodina/guix/tree/patch/plasma-mobile

----
Petr
  
Brendan Tildesley April 19, 2022, 2:50 a.m. UTC | #4
On 15/4/22 02:04, phodina wrote:

> Hi,
> I've been going through the patches - not yet finished, there are also some more applied on top mostly concerning Plasma Mobile [1].
>
> I'll focus on finishing going through them all in the upcoming week.
>
> [1]https://github.com/phodina/guix/tree/patch/plasma-mobile
>
> ----
> Petr

Since the patches are still a bit broken I thought it would be good try get plasma working to test things, and attract interest,

but i got stuck failing to build libaccounts-qt.

I updated to frameworks 5.92 and kde 21.12.3, ended up squashing all the commits down since it it was a pain to rebase

many patches. please pull the branch again.

In particular KDE Connnect was not working for me.

So please treat the patches as WIP rather than a complete patch set for review and feel free to test and fix programs.

I will be away for the next 2 weeks wont be working on it any time soon.
  

Patch

From 7c0860a147d3b72f718ac3c06a202cd8181094d4 Mon Sep 17 00:00:00 2001
From: Brendan Tildesley <mail@brendan.scot>
Date: Sat, 5 Mar 2022 11:46:47 +1100
Subject: [PATCH 2/2] . libaccounts-qt

---
 gnu/packages/qt.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/qt.scm b/gnu/packages/qt.scm
index 6d2e54783a..eebede4176 100644
--- a/gnu/packages/qt.scm
+++ b/gnu/packages/qt.scm
@@ -3182,3 +3182,33 @@  (define-public libaccounts-glib
 handles the authentication process of an account and securely stores the
 credentials and service-specific settings.")
     (license license:lgpl2.1+)))
+
+(define-public libaccounts-qt
+  (package
+    (name "libaccounts-qt")
+    (version "1.16")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://gitlab.com/accounts-sso/libaccounts-qt")
+                    (commit (string-append "VERSION_" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1vmpjvysm0ld8dqnx8msa15hlhrkny02cqycsh4k2azrnijg0xjz"))))
+    (build-system gnu-build-system)
+    (native-inputs (list pkg-config qtbase-5 strace qttools))
+    (inputs (list doxygen
+                  libaccounts-glib
+                  glib))
+    (arguments
+     (list
+      #:tests? #f
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'configure
+            (lambda _ (invoke "qmake"))))))
+    (home-page "https://accounts-sso.gitlab.io/")
+    (synopsis "Qt5 bindings for libaccounts-glib")
+    (description (package-description libaccounts-glib))
+    (license #f)))
-- 
2.34.0