all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Packaging Grisbi
@ 2019-05-12 12:11 Tanguy Le Carrour
  2019-05-12 20:09 ` Timothy Sample
  0 siblings, 1 reply; 10+ messages in thread
From: Tanguy Le Carrour @ 2019-05-12 12:11 UTC (permalink / raw)
  To: Guix

Hello Guix!

This is my first packaging attempt, please be indulgent…

I decided to start small and be a little chauvinistic by packaging
Grisbi "an application written by French developers"! :-)

```
(define-module (gnu packages grisbi)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix build-system glib-or-gtk)
  #:use-module (gnu packages gtk)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages gnome)
  #:use-module (gnu packages pkg-config)
  #:use-module (guix licenses))

(define-public grisbi
  (package
    (name "grisbi")
    (version "1.2.1")
    (source (origin
              (method url-fetch)
              (uri (string-append
                     "mirror://sourceforge/projects/grisbi/files/"
                     "grisbi stable/1.2.x/" version "/grisbi-" version
                     ".tar.bz2/download"))
              (sha256
               (base32
                "0j6jq0h4kkhyqhdprhaw4zk6sn89s4a9h0m8i8hh5sc7fbi88nyq"))))
    (build-system glib-or-gtk-build-system)
    (arguments
     `(#:configure-flags (list "--without-ofx" "--without-goffice")))
    (inputs
      `(("gtk+" ,gtk+)
        ("libgsf" ,libgsf)))
    (native-inputs
      `(("glib" ,glib "bin")             ; glib-compile-schemas
        ("pkg-config" ,pkg-config)
        ("intltool" ,intltool)))
    (synopsis "Personnal accounting application")
    (description "Grisbi is an application written by French developers,
so it perfectly respects French accounting rules.  Grisbi can manage
multiple accounts, currencies and users.  It manages third party,
expenditure and receipt categories, budgetary lines, financial years,
budget estimates, bankcard management and other information that make Grisbi
adapted for associations.")
    (home-page "http://grisbi.org")
    (license gpl2+)))
```

So far, it builds, it lints, it's installable… and it works!
It still has a small amnesia problem: each time I start it, it's acting like
it's the first time. It seems to be a dconf issue, for I get the following
error message:

```
failed to commit changes to dconf:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
The name ca.desrt.dconf was not provided by any .service files
```

Installing dconf does not solve the problem, though.

I also don't know where to put it! In its own `grisbi.scm` file? Or
alongside gnucash in a new `finance.scm` file?

Any comment and piece of advice is welcome!

-- 
Tanguy

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

* Re: Packaging Grisbi
  2019-05-12 12:11 Packaging Grisbi Tanguy Le Carrour
@ 2019-05-12 20:09 ` Timothy Sample
  2019-05-13  6:51   ` Tanguy Le Carrour
  0 siblings, 1 reply; 10+ messages in thread
From: Timothy Sample @ 2019-05-12 20:09 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: Guix

Hi Tanguy,

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> This is my first packaging attempt, please be indulgent…
>
> [...]
>
> So far, it builds, it lints, it's installable… and it works!

Pretty exciting!

> It still has a small amnesia problem: each time I start it, it's acting like
> it's the first time. It seems to be a dconf issue, for I get the following
> error message:
>
> ```
> failed to commit changes to dconf:
> GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
> The name ca.desrt.dconf was not provided by any .service files
> ```

Drat!

> Installing dconf does not solve the problem, though.

If you are using GDM, this might be due to the way it (used to) start
D-Bus.  See commit dcb3a0fe0a086b4762a721e9b1da64826d5160d0.  If you
have not ran “guix pull” in the last four days, doing so might make this
problem disappear.

> I also don't know where to put it! In its own `grisbi.scm` file? Or
> alongside gnucash in a new `finance.scm` file?

We already have a “finance.scm”, which seems appropriate to me.

Hope that helps!


-- Tim

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

* Re: Packaging Grisbi
  2019-05-12 20:09 ` Timothy Sample
@ 2019-05-13  6:51   ` Tanguy Le Carrour
  2019-05-29 15:38     ` Tanguy Le Carrour
  0 siblings, 1 reply; 10+ messages in thread
From: Tanguy Le Carrour @ 2019-05-13  6:51 UTC (permalink / raw)
  To: Timothy Sample; +Cc: Guix

Hi Timothy,


Le 05/12, Timothy Sample a écrit :
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> > I get the following error message:
> >
> > ```
> > failed to commit changes to dconf:
> > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
> > The name ca.desrt.dconf was not provided by any .service files
> > ```
> 
> Drat!
> 
> > Installing dconf does not solve the problem, though.
> 
> If you are using GDM, this might be due to the way it (used to) start
> D-Bus.  See commit dcb3a0fe0a086b4762a721e9b1da64826d5160d0.  If you
> have not ran “guix pull” in the last four days, doing so might make this
> problem disappear.

My bad! I'll update my system and try again!


> > I also don't know where to put it! In its own `grisbi.scm` file? Or
> > alongside gnucash in a new `finance.scm` file?
> 
> We already have a “finance.scm”, which seems appropriate to me.

Oups, I did not notice it! I was focused on GnuCash and only saw
`gnucash.scm`. Shouldn't it also be in `finance.scm`?! I guess,
there's a good reason for it not to be, though!


> Hope that helps!

Definitively! Thanks!


-- 
Tanguy

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

* Re: Packaging Grisbi
  2019-05-13  6:51   ` Tanguy Le Carrour
@ 2019-05-29 15:38     ` Tanguy Le Carrour
  2019-05-31  1:55       ` Timothy Sample
  0 siblings, 1 reply; 10+ messages in thread
From: Tanguy Le Carrour @ 2019-05-29 15:38 UTC (permalink / raw)
  To: Timothy Sample; +Cc: Guix

Dear Timothy, dear Guix

Sorry it took me soooooo long to answer!


Le 05/13, Tanguy Le Carrour a écrit :
> Le 05/12, Timothy Sample a écrit :
> > Tanguy Le Carrour <tanguy@bioneland.org> writes:
> > > I get the following error message:
> > >
> > > ```
> > > failed to commit changes to dconf:
> > > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
> > > The name ca.desrt.dconf was not provided by any .service files
> > > ```
> > 
> > Drat!
> > 
> > > Installing dconf does not solve the problem, though.
> > 
> > If you are using GDM, this might be due to the way it (used to) start
> > D-Bus.  See commit dcb3a0fe0a086b4762a721e9b1da64826d5160d0.  If you
> > have not ran “guix pull” in the last four days, doing so might make this
> > problem disappear.
> 
> My bad! I'll update my system and try again!

I've updated my system (a couple of times) since then and I still have the
same problem! Any dconf specialist around?!

Here is my "final" patch…

---
 gnu/packages/finance.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
index e1a1e8ab6f..ae2ebea46e 100644
--- a/gnu/packages/finance.scm
+++ b/gnu/packages/finance.scm
@@ -35,6 +35,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system python)
+  #:use-module (guix build-system glib-or-gtk)
   #:use-module (gnu packages)
   #:use-module (gnu packages base)
   #:use-module (gnu packages boost)
@@ -45,9 +46,12 @@
   #:use-module (gnu packages dns)
   #:use-module (gnu packages emacs)
   #:use-module (gnu packages dbm)
+  #:use-module (gnu packages glib)
+  #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnupg)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages groff)
+  #:use-module (gnu packages gtk)
   #:use-module (gnu packages libedit)
   #:use-module (gnu packages libevent)
   #:use-module (gnu packages libunwind)
@@ -1028,3 +1032,37 @@ Its features are:
 @item get account amount.
 @end itemize")
     (license license:agpl3+)))
+
+(define-public grisbi
+  (package
+    (name "grisbi")
+    (version "1.2.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "mirror://sourceforge/grisbi/grisbi%20stable/1.2.x"
+               "/" version "/grisbi-" version ".tar.bz2"))
+        (sha256
+          (base32
+            "1piiyyxjsjbw9gcqydvknzxmmfgh8kdqal12ywrxyxih2afwnvbw"))))
+    (build-system glib-or-gtk-build-system)
+    (arguments
+     `(#:configure-flags (list "--without-ofx")))
+    (inputs
+      `(("gtk+" ,gtk+)
+        ("libgsf" ,libgsf)))
+    (native-inputs
+      `(("glib" ,glib "bin")             ; glib-compile-schemas
+        ("pkg-config" ,pkg-config)
+        ("intltool" ,intltool)))
+    (synopsis "Personnal accounting application")
+    (description "Grisbi is an application written by French developers,
+so it perfectly respects French accounting rules.  Grisbi can manage
+multiple accounts, currencies and users.  It manages third party,
+expenditure and receipt categories, budgetary lines, financial years,
+budget estimates, bankcard management and other information that make Grisbi
+adapted for associations.")
+    (home-page "http://grisbi.org")
+    (license license:gpl2+)))
-- 
2.21.0


-- 
Tanguy

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

* Re: Packaging Grisbi
  2019-05-29 15:38     ` Tanguy Le Carrour
@ 2019-05-31  1:55       ` Timothy Sample
  2019-06-02 17:06         ` Tanguy Le Carrour
  0 siblings, 1 reply; 10+ messages in thread
From: Timothy Sample @ 2019-05-31  1:55 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: Guix

Hi Tanguy,

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> Dear Timothy, dear Guix
>
> Sorry it took me soooooo long to answer!

No problem!  Thanks for following up.

> Le 05/13, Tanguy Le Carrour a écrit :
>> Le 05/12, Timothy Sample a écrit :
>> > Tanguy Le Carrour <tanguy@bioneland.org> writes:
>> > > I get the following error message:
>> > >
>> > > ```
>> > > failed to commit changes to dconf:
>> > > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
>> > > The name ca.desrt.dconf was not provided by any .service files
>> > > ```
>> > 
>> > Drat!
>> > 
>> > > Installing dconf does not solve the problem, though.
>> > 
>> > If you are using GDM, this might be due to the way it (used to) start
>> > D-Bus.  See commit dcb3a0fe0a086b4762a721e9b1da64826d5160d0.  If you
>> > have not ran “guix pull” in the last four days, doing so might make this
>> > problem disappear.
>> 
>> My bad! I'll update my system and try again!
>
> I've updated my system (a couple of times) since then and I still have the
> same problem! Any dconf specialist around?!

I applied your patch below, and everything works great for me.  It seems
this is because I am running GNOME, and GNOME puts the dconf service
file in the system profile.

What desktop are you running?  How is D-Bus started?

A handy tool to peek at D-Bus is D-Feet.

> Here is my "final" patch…
>
> ---
>  gnu/packages/finance.scm | 38 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 38 insertions(+)
>
> diff --git a/gnu/packages/finance.scm b/gnu/packages/finance.scm
> index e1a1e8ab6f..ae2ebea46e 100644
> --- a/gnu/packages/finance.scm
> +++ b/gnu/packages/finance.scm
> @@ -35,6 +35,7 @@
>    #:use-module (guix build-system gnu)
>    #:use-module (guix build-system cmake)
>    #:use-module (guix build-system python)
> +  #:use-module (guix build-system glib-or-gtk)
>    #:use-module (gnu packages)
>    #:use-module (gnu packages base)
>    #:use-module (gnu packages boost)
> @@ -45,9 +46,12 @@
>    #:use-module (gnu packages dns)
>    #:use-module (gnu packages emacs)
>    #:use-module (gnu packages dbm)
> +  #:use-module (gnu packages glib)
> +  #:use-module (gnu packages gnome)
>    #:use-module (gnu packages gnupg)
>    #:use-module (gnu packages graphviz)
>    #:use-module (gnu packages groff)
> +  #:use-module (gnu packages gtk)
>    #:use-module (gnu packages libedit)
>    #:use-module (gnu packages libevent)
>    #:use-module (gnu packages libunwind)
> @@ -1028,3 +1032,37 @@ Its features are:
>  @item get account amount.
>  @end itemize")
>      (license license:agpl3+)))
> +
> +(define-public grisbi
> +  (package
> +    (name "grisbi")
> +    (version "1.2.2")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (string-append
> +               "mirror://sourceforge/grisbi/grisbi%20stable/1.2.x"
> +               "/" version "/grisbi-" version ".tar.bz2"))
> +        (sha256
> +          (base32
> +            "1piiyyxjsjbw9gcqydvknzxmmfgh8kdqal12ywrxyxih2afwnvbw"))))
> +    (build-system glib-or-gtk-build-system)
> +    (arguments
> +     `(#:configure-flags (list "--without-ofx")))
> +    (inputs
> +      `(("gtk+" ,gtk+)
> +        ("libgsf" ,libgsf)))
> +    (native-inputs
> +      `(("glib" ,glib "bin")             ; glib-compile-schemas
> +        ("pkg-config" ,pkg-config)
> +        ("intltool" ,intltool)))
> +    (synopsis "Personnal accounting application")

                        ^ Extra ‘n’.

> +    (description "Grisbi is an application written by French developers,

Maybe say “Grisbi is a personal accounting application written by French
developers that is designed to follow French accounting rules.”

> +so it perfectly respects French accounting rules.  Grisbi can manage
> +multiple accounts, currencies and users.  It manages third party,
> +expenditure and receipt categories, budgetary lines, financial years,
> +budget estimates, bankcard management and other information that make Grisbi
> +adapted for associations.")

You could drop the last part after “other information”, or change it to
something like “which makes Grisbi appropriate for associations.”

> +    (home-page "http://grisbi.org")
> +    (license license:gpl2+)))
> -- 
> 2.21.0

If you don’t mind, please send an updated patch generated using “git
format-patch” as an attachment (this makes it easier to apply the patch
while preserving you as the author).  When you do so, don’t forget to
add your name to the top of the file with the other copyright notices.

Since the package works for me, I think we can include it now regardless
of your D-Bus problems.  If it turns out there’s some problem with the
package, we can always fix it!


-- Tim

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

* Re: Packaging Grisbi
  2019-05-31  1:55       ` Timothy Sample
@ 2019-06-02 17:06         ` Tanguy Le Carrour
  2019-06-02 19:04           ` Timothy Sample
  0 siblings, 1 reply; 10+ messages in thread
From: Tanguy Le Carrour @ 2019-06-02 17:06 UTC (permalink / raw)
  To: Timothy Sample; +Cc: Guix

Hi Timothy,


Le 05/30, Timothy Sample a écrit :
> […]
> >> > Tanguy Le Carrour <tanguy@bioneland.org> writes:
> >> > > I get the following error message:
> >> > >
> >> > > ```
> >> > > failed to commit changes to dconf:
> >> > > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
> >> > > The name ca.desrt.dconf was not provided by any .service files
> >> > > ```
> […]
> I applied your patch below, and everything works great for me.  It seems
> this is because I am running GNOME, and GNOME puts the dconf service
> file in the system profile.
> 
> What desktop are you running?  How is D-Bus started?

I'm running bspwm [1]. D-Bus seems to be running [2], but I have not clue
how it's been started!? I just select the bspwm session from the login
manager.

[1]: snippet of my OS config
```
;; …
;; This is where we specify system-wide packages.
  (packages (cons* nss-certs         ;for HTTPS access
                   bspwm sxhkd       ;for desktop env
                   fish neovim openssh wget recutils
                   %base-packages))
;; …
```

[2]: output of `env | ag DBUS`
```
DBUS_FATAL_WARNINGS=0
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-783FOvFmx6,guid=63be5a9abc13dee04e494f3e5cf3fb36
GDM_DBUS_DAEMON=/gnu/store/bp4zn8kx5p09ddn6dm7lsdlf4l0cj8g3-gdm-dbus-wrapper
```

Any idea?!

-- 
Tanguy

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

* Re: Packaging Grisbi
  2019-06-02 17:06         ` Tanguy Le Carrour
@ 2019-06-02 19:04           ` Timothy Sample
  2019-06-08 13:23             ` Tanguy Le Carrour
  0 siblings, 1 reply; 10+ messages in thread
From: Timothy Sample @ 2019-06-02 19:04 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: Guix

Hi Tanguy,

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> Hi Timothy,
>
>
> Le 05/30, Timothy Sample a écrit :
>> […]
>> >> > Tanguy Le Carrour <tanguy@bioneland.org> writes:
>> >> > > I get the following error message:
>> >> > >
>> >> > > ```
>> >> > > failed to commit changes to dconf:
>> >> > > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
>> >> > > The name ca.desrt.dconf was not provided by any .service files
>> >> > > ```
>> […]
>> I applied your patch below, and everything works great for me.  It seems
>> this is because I am running GNOME, and GNOME puts the dconf service
>> file in the system profile.
>> 
>> What desktop are you running?  How is D-Bus started?
>
> I'm running bspwm [1]. D-Bus seems to be running [2], but I have not clue
> how it's been started!? I just select the bspwm session from the login
> manager.
>
> [1]: snippet of my OS config
> ```
> ;; …
> ;; This is where we specify system-wide packages.
>   (packages (cons* nss-certs         ;for HTTPS access
>                    bspwm sxhkd       ;for desktop env
>                    fish neovim openssh wget recutils
>                    %base-packages))
> ;; …
> ```
>
> [2]: output of `env | ag DBUS`
> ```
> DBUS_FATAL_WARNINGS=0
> DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-783FOvFmx6,guid=63be5a9abc13dee04e494f3e5cf3fb36
> GDM_DBUS_DAEMON=/gnu/store/bp4zn8kx5p09ddn6dm7lsdlf4l0cj8g3-gdm-dbus-wrapper
> ```
>
> Any idea?!

What are the contents of the “$GDM_DBUS_DAEMON” file above?  It should
set it up so that D-Bus looks at the system profile and your user
profile.  Please check that the service file is available either in

  /run/current-system/profile/share/dbus-1/services/

or

  $HOME/.guix-profile/share/dbus-1/services/

There should be a symlink called “ca.desrt.dconf.service” in one of
those directories.


-- Tim

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

* Re: Packaging Grisbi
  2019-06-02 19:04           ` Timothy Sample
@ 2019-06-08 13:23             ` Tanguy Le Carrour
  2019-06-13  0:02               ` Timothy Sample
  0 siblings, 1 reply; 10+ messages in thread
From: Tanguy Le Carrour @ 2019-06-08 13:23 UTC (permalink / raw)
  To: Timothy Sample; +Cc: Guix

Hi Tim

Sorry it took me so long just to type 1 `cat` and 2 `ls`! ^_^'
…

Le 06/02, Timothy Sample a écrit :
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> > […]
> > Le 05/30, Timothy Sample a écrit :
> >> […]
> >> >> > Tanguy Le Carrour <tanguy@bioneland.org> writes:
> >> >> > > I get the following error message:
> >> >> > >
> >> >> > > ```
> >> >> > > failed to commit changes to dconf:
> >> >> > > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
> >> >> > > The name ca.desrt.dconf was not provided by any .service files
> >> >> > > ```
> >> […]
> >> I applied your patch below, and everything works great for me.  It seems
> >> this is because I am running GNOME, and GNOME puts the dconf service
> >> file in the system profile.
> >> 
> >> What desktop are you running?  How is D-Bus started?
> >> […]
> What are the contents of the “$GDM_DBUS_DAEMON” file above?  It should
> set it up so that D-Bus looks at the system profile and your user
> profile.  Please check that the service file is available either in
> 
>   /run/current-system/profile/share/dbus-1/services/
> or
>   $HOME/.guix-profile/share/dbus-1/services/
> 
> There should be a symlink called “ca.desrt.dconf.service” in one of
> those directories.

… But I eventually did!

```
❯ cat /gnu/store/bp4zn8kx5p09ddn6dm7lsdlf4l0cj8g3-gdm-dbus-wrapper
#!/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/bin/guile --no-auto-compile
!#
(begin (use-modules (srfi srfi-26)) (define system-profile "/run/current-system/profile") (define user-profile (and=> (getpw (getuid)) (lambda (pw) (string-append (passwd:dir pw) "/.guix-profile")))) (define profiles (if user-profile (list user-profile system-profile) (list system-profile))) (setenv "XDG_CONFIG_DIRS" (string-join (map (cut string-append <> "/etc/xdg") profiles) ":")) (setenv "XDG_DATA_DIRS" (string-join (map (cut string-append <> "/share") profiles) ":")) (apply execl (string-append "/gnu/store/s62xzisv3mnl510m5wbf91jzzd392l6f-dbus-1.12.12" "/bin/dbus-daemon") (program-arguments)))⏎                                                                                                

❯ ls /run/current-system/profile/share/dbus-1/services/
org.a11y.Bus.service@

❯ ls $HOME/.guix-profile/share/dbus-1/services/
org.gnome.evince.Daemon.service@  org.knopwob.dunst.service@
```

So, apparently the `ca.desrt.dconf.service` is missing, which would
explain the problem. The thing is, I have no clue how it's supposed to
be started? Is it something I missed in the doc? Or is there something
else I need to do because I'm using bspwm?

I checked my guix system config, and the service section looks rather basic:

```
(services (append (list (set-xorg-configuration
                           (xorg-configuration
                            (keyboard-layout keyboard-layout))))
                     %desktop-services))
```

Any help welcome!

-- 
Tanguy

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

* Re: Packaging Grisbi
  2019-06-08 13:23             ` Tanguy Le Carrour
@ 2019-06-13  0:02               ` Timothy Sample
  2019-06-30 12:01                 ` Tanguy Le Carrour
  0 siblings, 1 reply; 10+ messages in thread
From: Timothy Sample @ 2019-06-13  0:02 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: Guix

Hi Tanguy,

Looks like it’s now my turn to take my time replying!  :)

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> Hi Tim
>
> Sorry it took me so long just to type 1 `cat` and 2 `ls`! ^_^'
> …
>
> Le 06/02, Timothy Sample a écrit :
>> Tanguy Le Carrour <tanguy@bioneland.org> writes:
>> > […]
>> > Le 05/30, Timothy Sample a écrit :
>> >> […]
>> >> >> > Tanguy Le Carrour <tanguy@bioneland.org> writes:
>> >> >> > > I get the following error message:
>> >> >> > >
>> >> >> > > ```
>> >> >> > > failed to commit changes to dconf:
>> >> >> > > GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown:
>> >> >> > > The name ca.desrt.dconf was not provided by any .service files
>> >> >> > > ```
>> >> […]
>> >> I applied your patch below, and everything works great for me.  It seems
>> >> this is because I am running GNOME, and GNOME puts the dconf service
>> >> file in the system profile.
>> >> 
>> >> What desktop are you running?  How is D-Bus started?
>> >> […]
>> What are the contents of the “$GDM_DBUS_DAEMON” file above?  It should
>> set it up so that D-Bus looks at the system profile and your user
>> profile.  Please check that the service file is available either in
>> 
>>   /run/current-system/profile/share/dbus-1/services/
>> or
>>   $HOME/.guix-profile/share/dbus-1/services/
>> 
>> There should be a symlink called “ca.desrt.dconf.service” in one of
>> those directories.
>
> … But I eventually did!
>
> ```
> ❯ cat /gnu/store/bp4zn8kx5p09ddn6dm7lsdlf4l0cj8g3-gdm-dbus-wrapper
> #!/gnu/store/9alic3caqhay3h8mx4iihpmyj6ymqpcx-guile-2.2.4/bin/guile --no-auto-compile
> !#
> (begin (use-modules (srfi srfi-26)) (define system-profile "/run/current-system/profile") (define user-profile (and=> (getpw (getuid)) (lambda (pw) (string-append (passwd:dir pw) "/.guix-profile")))) (define profiles (if user-profile (list user-profile system-profile) (list system-profile))) (setenv "XDG_CONFIG_DIRS" (string-join (map (cut string-append <> "/etc/xdg") profiles) ":")) (setenv "XDG_DATA_DIRS" (string-join (map (cut string-append <> "/share") profiles) ":")) (apply execl (string-append "/gnu/store/s62xzisv3mnl510m5wbf91jzzd392l6f-dbus-1.12.12" "/bin/dbus-daemon") (program-arguments)))⏎                                                                                                
>
> ❯ ls /run/current-system/profile/share/dbus-1/services/
> org.a11y.Bus.service@
>
> ❯ ls $HOME/.guix-profile/share/dbus-1/services/
> org.gnome.evince.Daemon.service@  org.knopwob.dunst.service@
> ```
>
> So, apparently the `ca.desrt.dconf.service` is missing, which would
> explain the problem. The thing is, I have no clue how it's supposed to
> be started? Is it something I missed in the doc? Or is there something
> else I need to do because I'm using bspwm?
>
> I checked my guix system config, and the service section looks rather basic:
>
> ```
> (services (append (list (set-xorg-configuration
>                            (xorg-configuration
>                             (keyboard-layout keyboard-layout))))
>                      %desktop-services))
> ```
>
> Any help welcome!

It looks like all you need to do is install “dconf”.  It should work if
you install it into your user profile either using a manifest file or
with “guix install dconf”.  (I seem to recall you tried this before, but
looking at the results above, and given my earlier success with Grisbi,
and think it’s worth another shot.)


-- Tim

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

* Re: Packaging Grisbi
  2019-06-13  0:02               ` Timothy Sample
@ 2019-06-30 12:01                 ` Tanguy Le Carrour
  0 siblings, 0 replies; 10+ messages in thread
From: Tanguy Le Carrour @ 2019-06-30 12:01 UTC (permalink / raw)
  To: Timothy Sample; +Cc: Guix

Dear Timothy,

Le 06/12, Timothy Sample a écrit :
> It looks like all you need to do is install “dconf”.  It should work if
> you install it into your user profile either using a manifest file or
> with “guix install dconf”.  (I seem to recall you tried this before, but
> looking at the results above, and given my earlier success with Grisbi,
> and think it’s worth another shot.)

Once again, you were right! I've added `dconf` and everything works
perfectly now! I checked how `dconf` was used in other packages and
added it as `propagated-inputs`. This being done, I submitted the patch
to guix-patches@gnu.org.

Thanks again for your precious help and your time!

-- 
Tanguy

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

end of thread, other threads:[~2019-06-30 12:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-12 12:11 Packaging Grisbi Tanguy Le Carrour
2019-05-12 20:09 ` Timothy Sample
2019-05-13  6:51   ` Tanguy Le Carrour
2019-05-29 15:38     ` Tanguy Le Carrour
2019-05-31  1:55       ` Timothy Sample
2019-06-02 17:06         ` Tanguy Le Carrour
2019-06-02 19:04           ` Timothy Sample
2019-06-08 13:23             ` Tanguy Le Carrour
2019-06-13  0:02               ` Timothy Sample
2019-06-30 12:01                 ` Tanguy Le Carrour

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.