unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#24188: gnucash needs gtk+ in propagated-inputs
@ 2016-08-08 17:45 Arun Isaac
  2016-08-09 10:00 ` Ricardo Wurmus
  0 siblings, 1 reply; 8+ messages in thread
From: Arun Isaac @ 2016-08-08 17:45 UTC (permalink / raw)
  To: 24188

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


I installed gnucash with `guix package -i gnucash`. When I attempt to
run it, it fails with the following error message:

**
gnc.gui:ERROR:gnc-icons.c:96:gnc_add_stock_icon_pair: assertion failed: (pixbuf1 && pixbuf2)
fish: 'gnucash' terminated by signal SIGABRT (Abort)

However within an environment created by `guix environment --ad-hoc
gtk+`, gnucash runs fine. So, I'm guessing gtk+ needs to be in gnucash's
propagated-inputs.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

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

* bug#24188: gnucash needs gtk+ in propagated-inputs
  2016-08-08 17:45 bug#24188: gnucash needs gtk+ in propagated-inputs Arun Isaac
@ 2016-08-09 10:00 ` Ricardo Wurmus
  2016-08-10  9:03   ` Arun Isaac
  0 siblings, 1 reply; 8+ messages in thread
From: Ricardo Wurmus @ 2016-08-09 10:00 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 24188


Arun Isaac <arunisaac@systemreboot.net> writes:

> I installed gnucash with `guix package -i gnucash`. When I attempt to
> run it, it fails with the following error message:
>
> **
> gnc.gui:ERROR:gnc-icons.c:96:gnc_add_stock_icon_pair: assertion failed: (pixbuf1 && pixbuf2)
> fish: 'gnucash' terminated by signal SIGABRT (Abort)
>
> However within an environment created by `guix environment --ad-hoc
> gtk+`, gnucash runs fine. So, I'm guessing gtk+ needs to be in gnucash's
> propagated-inputs.

I cannot reproduce this.  I don’t have gtk+ installed in a profile and
Gnucash starts up just fine.

The following environment variables are set which may make a difference
here:

  GUIX_GTK3_PATH=/run/current-system/profile/lib/gtk-3.0
  GUIX_GTK2_PATH=/run/current-system/profile/lib/gtk-2.0
  GTK_DATA_PREFIX=/run/current-system/profile

~~ Ricardo

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

* bug#24188: gnucash needs gtk+ in propagated-inputs
  2016-08-09 10:00 ` Ricardo Wurmus
@ 2016-08-10  9:03   ` Arun Isaac
  2016-08-11 13:22     ` 宋文武
       [not found]     ` <87inv7ignw.fsf@member.fsf.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Arun Isaac @ 2016-08-10  9:03 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 24188

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


> The following environment variables are set which may make a difference
> here:
>
>   GUIX_GTK3_PATH=/run/current-system/profile/lib/gtk-3.0
>   GUIX_GTK2_PATH=/run/current-system/profile/lib/gtk-2.0
>   GTK_DATA_PREFIX=/run/current-system/profile

After setting XDG_DATA_DIRS with

export XDG_DATA_DIRS="/gnu/store/zlr5l39k9gw7ss26iq6vj3yk215xrzpl-profile/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"

gnucash runs successfully. I found out about this using `guix
environment --search-paths gnucash`.

How do I find out about these environment variables in general?
Shouldn't they be set in the gnucash wrapper script so that the user
does not have to set them manually?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

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

* bug#24188: gnucash needs gtk+ in propagated-inputs
  2016-08-10  9:03   ` Arun Isaac
@ 2016-08-11 13:22     ` 宋文武
       [not found]     ` <87inv7ignw.fsf@member.fsf.org>
  1 sibling, 0 replies; 8+ messages in thread
From: 宋文武 @ 2016-08-11 13:22 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 24188, guix-devel

Arun Isaac <arunisaac@systemreboot.net> writes:

>> The following environment variables are set which may make a difference
>> here:
>>
>>   GUIX_GTK3_PATH=/run/current-system/profile/lib/gtk-3.0
>>   GUIX_GTK2_PATH=/run/current-system/profile/lib/gtk-2.0
>>   GTK_DATA_PREFIX=/run/current-system/profile
>
> After setting XDG_DATA_DIRS with
>
> export XDG_DATA_DIRS="/gnu/store/zlr5l39k9gw7ss26iq6vj3yk215xrzpl-profile/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
>
> gnucash runs successfully. I found out about this using `guix
> environment --search-paths gnucash`.
>
> How do I find out about these environment variables in general?
> Shouldn't they be set in the gnucash wrapper script so that the user
> does not have to set them manually?

--8<---------------cut here---------------start------------->8---
gnc.gui:ERROR:gnc-icons.c:96:gnc_add_stock_icon_pair: assertion failed: (pixbuf1 && pixbuf2)
fish: 'gnucash' terminated by signal SIGABRT (Abort)
--8<---------------cut here---------------end--------------->8---

I think this error is caused by gdk-pixbuf, which uses XDG mime-info
database to query file types.  Install the 'shared-mime-info' package
to activate the 'xdg-mime-database' profile hook should make it works.


To actually fix this package (and some others) we can:

- Wrap them with shared-mime-info in XDG_DATA_DIRS or propagated it.

- Make sure 'xdg-mime-database' always run if glib applications are
  there even without shared-mime-info referenced by profile.  
  IIRC, this was suggested by ludo, but I ignored, now patch sent :-)
  

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

* bug#24188: gnucash needs gtk+ in propagated-inputs
       [not found]     ` <87inv7ignw.fsf@member.fsf.org>
@ 2016-08-13  9:18       ` Arun Isaac
  2016-09-09 14:33       ` Ludovic Courtès
       [not found]       ` <87eg4t5eip.fsf@gnu.org>
  2 siblings, 0 replies; 8+ messages in thread
From: Arun Isaac @ 2016-08-13  9:18 UTC (permalink / raw)
  To: 宋文武; +Cc: 24188


> To actually fix this package (and some others) we can:
>
> - Wrap them with shared-mime-info in XDG_DATA_DIRS or propagated it.
>
> - Make sure 'xdg-mime-database' always run if glib applications are
>   there even without shared-mime-info referenced by profile.  
>   IIRC, this was suggested by ludo, but I ignored, now patch sent :-)

Great, I'll wait a bit for the package to be fixed.

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

* bug#24188: gnucash needs gtk+ in propagated-inputs
       [not found]     ` <87inv7ignw.fsf@member.fsf.org>
  2016-08-13  9:18       ` Arun Isaac
@ 2016-09-09 14:33       ` Ludovic Courtès
       [not found]       ` <87eg4t5eip.fsf@gnu.org>
  2 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2016-09-09 14:33 UTC (permalink / raw)
  To: 宋文武; +Cc: 24188, guix-devel

iyzsong@member.fsf.org (宋文武) skribis:

> Arun Isaac <arunisaac@systemreboot.net> writes:
>
>>> The following environment variables are set which may make a difference
>>> here:
>>>
>>>   GUIX_GTK3_PATH=/run/current-system/profile/lib/gtk-3.0
>>>   GUIX_GTK2_PATH=/run/current-system/profile/lib/gtk-2.0
>>>   GTK_DATA_PREFIX=/run/current-system/profile
>>
>> After setting XDG_DATA_DIRS with
>>
>> export XDG_DATA_DIRS="/gnu/store/zlr5l39k9gw7ss26iq6vj3yk215xrzpl-profile/share${XDG_DATA_DIRS:+:}$XDG_DATA_DIRS"
>>
>> gnucash runs successfully. I found out about this using `guix
>> environment --search-paths gnucash`.
>>
>> How do I find out about these environment variables in general?
>> Shouldn't they be set in the gnucash wrapper script so that the user
>> does not have to set them manually?
>
> gnc.gui:ERROR:gnc-icons.c:96:gnc_add_stock_icon_pair: assertion failed: (pixbuf1 && pixbuf2)
> fish: 'gnucash' terminated by signal SIGABRT (Abort)
>
> I think this error is caused by gdk-pixbuf, which uses XDG mime-info
> database to query file types.  Install the 'shared-mime-info' package
> to activate the 'xdg-mime-database' profile hook should make it works.
>
>
> To actually fix this package (and some others) we can:
>
> - Wrap them with shared-mime-info in XDG_DATA_DIRS or propagated it.
>
> - Make sure 'xdg-mime-database' always run if glib applications are
>   there even without shared-mime-info referenced by profile.  
>   IIRC, this was suggested by ludo, but I ignored, now patch sent :-)

Apparently the 2nd item is what commit
801d316b20b05a4d0687873ad8e438e6238e23ce does.

Are we done, or do we need to do item #1 too?

Ludo’.

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

* bug#24188: gnucash needs gtk+ in propagated-inputs
       [not found]       ` <87eg4t5eip.fsf@gnu.org>
@ 2016-09-09 15:40         ` Arun Isaac
       [not found]         ` <cu7lgz1xesb.fsf@systemreboot.net>
  1 sibling, 0 replies; 8+ messages in thread
From: Arun Isaac @ 2016-09-09 15:40 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 24188, guix-devel


>> To actually fix this package (and some others) we can:
>>
>> - Wrap them with shared-mime-info in XDG_DATA_DIRS or propagated it.
>>
>> - Make sure 'xdg-mime-database' always run if glib applications are
>>   there even without shared-mime-info referenced by profile.  
>>   IIRC, this was suggested by ludo, but I ignored, now patch sent :-)
>
> Apparently the 2nd item is what commit
> 801d316b20b05a4d0687873ad8e438e6238e23ce does.
>
> Are we done, or do we need to do item #1 too?

We are done. No need to do item #1. The issue has been fixed.

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

* bug#24188: gnucash needs gtk+ in propagated-inputs
       [not found]         ` <cu7lgz1xesb.fsf@systemreboot.net>
@ 2016-09-09 22:38           ` Ludovic Courtès
  0 siblings, 0 replies; 8+ messages in thread
From: Ludovic Courtès @ 2016-09-09 22:38 UTC (permalink / raw)
  To: Arun Isaac; +Cc: 24188-done, guix-devel

Arun Isaac <arunisaac@systemreboot.net> skribis:

>>> To actually fix this package (and some others) we can:
>>>
>>> - Wrap them with shared-mime-info in XDG_DATA_DIRS or propagated it.
>>>
>>> - Make sure 'xdg-mime-database' always run if glib applications are
>>>   there even without shared-mime-info referenced by profile.  
>>>   IIRC, this was suggested by ludo, but I ignored, now patch sent :-)
>>
>> Apparently the 2nd item is what commit
>> 801d316b20b05a4d0687873ad8e438e6238e23ce does.
>>
>> Are we done, or do we need to do item #1 too?
>
> We are done. No need to do item #1. The issue has been fixed.

I like that.  :-)  Thanks!

Ludo’.

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

end of thread, other threads:[~2016-09-09 22:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-08 17:45 bug#24188: gnucash needs gtk+ in propagated-inputs Arun Isaac
2016-08-09 10:00 ` Ricardo Wurmus
2016-08-10  9:03   ` Arun Isaac
2016-08-11 13:22     ` 宋文武
     [not found]     ` <87inv7ignw.fsf@member.fsf.org>
2016-08-13  9:18       ` Arun Isaac
2016-09-09 14:33       ` Ludovic Courtès
     [not found]       ` <87eg4t5eip.fsf@gnu.org>
2016-09-09 15:40         ` Arun Isaac
     [not found]         ` <cu7lgz1xesb.fsf@systemreboot.net>
2016-09-09 22:38           ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).