* gobject-introspection .gir search path
@ 2014-05-05 22:36 Ludovic Courtès
2014-05-05 22:59 ` Cyril Roelandt
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2014-05-05 22:36 UTC (permalink / raw)
To: Cyril Roelandt; +Cc: guix-devel
While trying to package librsvg, I stumbled upon this:
--8<---------------cut here---------------start------------->8---
Couldn't find include 'GdkPixbuf-2.0.gir' (search path: ['.', 'gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0', '/usr/share/gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0'])
/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'Rsvg-2.0.gir' failed
make[2]: *** [Rsvg-2.0.gir] Error 1
--8<---------------cut here---------------end--------------->8---
Do you remember if the gobject-introspection “scanner” had a way to
specify a search path, like an env. var.?
Otherwise, how can we make sure that the .girs of inputs are visible?
TIA. :-)
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gobject-introspection .gir search path
2014-05-05 22:36 gobject-introspection .gir search path Ludovic Courtès
@ 2014-05-05 22:59 ` Cyril Roelandt
2014-05-06 8:07 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Cyril Roelandt @ 2014-05-05 22:59 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
On 05/06/2014 12:36 AM, Ludovic Courtès wrote:
> While trying to package librsvg, I stumbled upon this:
>
> --8<---------------cut here---------------start------------->8---
> Couldn't find include 'GdkPixbuf-2.0.gir' (search path: ['.', 'gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0', '/usr/share/gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0'])
> /gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'Rsvg-2.0.gir' failed
> make[2]: *** [Rsvg-2.0.gir] Error 1
> --8<---------------cut here---------------end--------------->8---
>
> Do you remember if the gobject-introspection “scanner” had a way to
> specify a search path, like an env. var.?
>
> Otherwise, how can we make sure that the .girs of inputs are visible?
>
Look at the 'gir-directory' function in guix/build/gnome.scm. It's used
in gnu/packages/{gtk,gnome}.scm and does exactly what you need.
Regards,
Cyril.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gobject-introspection .gir search path
2014-05-05 22:59 ` Cyril Roelandt
@ 2014-05-06 8:07 ` Ludovic Courtès
2014-05-06 18:01 ` Cyril Roelandt
0 siblings, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2014-05-06 8:07 UTC (permalink / raw)
To: Cyril Roelandt; +Cc: guix-devel
Cyril Roelandt <tipecaml@gmail.com> skribis:
> On 05/06/2014 12:36 AM, Ludovic Courtès wrote:
>> While trying to package librsvg, I stumbled upon this:
>>
>> --8<---------------cut here---------------start------------->8---
>> Couldn't find include 'GdkPixbuf-2.0.gir' (search path: ['.', 'gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0', '/usr/share/gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0'])
>> /gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'Rsvg-2.0.gir' failed
>> make[2]: *** [Rsvg-2.0.gir] Error 1
>> --8<---------------cut here---------------end--------------->8---
>>
>> Do you remember if the gobject-introspection “scanner” had a way to
>> specify a search path, like an env. var.?
>>
>> Otherwise, how can we make sure that the .girs of inputs are visible?
>>
>
> Look at the 'gir-directory' function in guix/build/gnome.scm. It's used
> in gnu/packages/{gtk,gnome}.scm and does exactly what you need.
Oh right, thanks, that does the job.
It’d be great to submit a patch upstream so that g-ir-compiler &
co. honor a GIR_PATH environment variable or similar. That seems like
the right thing to do, and definitely helpful for us.
Since it’s written in Python, I thought perhaps you could lend a hand?
:-)
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gobject-introspection .gir search path
2014-05-06 8:07 ` Ludovic Courtès
@ 2014-05-06 18:01 ` Cyril Roelandt
2014-05-06 21:11 ` Ludovic Courtès
0 siblings, 1 reply; 5+ messages in thread
From: Cyril Roelandt @ 2014-05-06 18:01 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
On 05/06/2014 10:07 AM, Ludovic Courtès wrote:
> Cyril Roelandt <tipecaml@gmail.com> skribis:
>
>> On 05/06/2014 12:36 AM, Ludovic Courtès wrote:
>>> While trying to package librsvg, I stumbled upon this:
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> Couldn't find include 'GdkPixbuf-2.0.gir' (search path: ['.', 'gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0', '/usr/share/gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0'])
>>> /gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'Rsvg-2.0.gir' failed
>>> make[2]: *** [Rsvg-2.0.gir] Error 1
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>> Do you remember if the gobject-introspection “scanner” had a way to
>>> specify a search path, like an env. var.?
>>>
>>> Otherwise, how can we make sure that the .girs of inputs are visible?
>>>
>>
>> Look at the 'gir-directory' function in guix/build/gnome.scm. It's used
>> in gnu/packages/{gtk,gnome}.scm and does exactly what you need.
>
> Oh right, thanks, that does the job.
>
> It’d be great to submit a patch upstream so that g-ir-compiler &
> co. honor a GIR_PATH environment variable or similar. That seems like
> the right thing to do, and definitely helpful for us.
>
From 'man g-ir-scanner':
"The g-ir-scanner uses the XDG_DATA_DIRS variable to check for dirs, the
girs are located in XDG_DATA_DIRS/gir-1.0."
I guess you could also use that; would it solve your problem ? I think
we might be able to remove the ugly use of '--add-include-path' in
gnu/packages/{gtk,gnome}.scm if we were to use this variable.
Cyril.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: gobject-introspection .gir search path
2014-05-06 18:01 ` Cyril Roelandt
@ 2014-05-06 21:11 ` Ludovic Courtès
0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2014-05-06 21:11 UTC (permalink / raw)
To: Cyril Roelandt; +Cc: guix-devel
Cyril Roelandt <tipecaml@gmail.com> skribis:
> On 05/06/2014 10:07 AM, Ludovic Courtès wrote:
>> Cyril Roelandt <tipecaml@gmail.com> skribis:
>>
>>> On 05/06/2014 12:36 AM, Ludovic Courtès wrote:
>>>> While trying to package librsvg, I stumbled upon this:
>>>>
>>>> --8<---------------cut here---------------start------------->8---
>>>> Couldn't find include 'GdkPixbuf-2.0.gir' (search path: ['.', 'gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0', '/usr/share/gir-1.0', '/gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gir-1.0'])
>>>> /gnu/store/xdd5ndl01700w23z206nc36nqg96z94v-gobject-introspection-1.38.0/share/gobject-introspection-1.0/Makefile.introspection:153: recipe for target 'Rsvg-2.0.gir' failed
>>>> make[2]: *** [Rsvg-2.0.gir] Error 1
>>>> --8<---------------cut here---------------end--------------->8---
>>>>
>>>> Do you remember if the gobject-introspection “scanner” had a way to
>>>> specify a search path, like an env. var.?
>>>>
>>>> Otherwise, how can we make sure that the .girs of inputs are visible?
>>>>
>>>
>>> Look at the 'gir-directory' function in guix/build/gnome.scm. It's used
>>> in gnu/packages/{gtk,gnome}.scm and does exactly what you need.
>>
>> Oh right, thanks, that does the job.
>>
>> It’d be great to submit a patch upstream so that g-ir-compiler &
>> co. honor a GIR_PATH environment variable or similar. That seems like
>> the right thing to do, and definitely helpful for us.
>>
>
> From 'man g-ir-scanner':
>
> "The g-ir-scanner uses the XDG_DATA_DIRS variable to check for dirs, the
> girs are located in XDG_DATA_DIRS/gir-1.0."
>
> I guess you could also use that; would it solve your problem ? I think
> we might be able to remove the ugly use of '--add-include-path' in
> gnu/packages/{gtk,gnome}.scm if we were to use this variable.
Indeed, adding a search path specification for ‘XDG_DATA_DIRS’ in GLib
solves this problem (I’ll commit shortly.)
Since ‘XDG_DATA_DIRS’ is also used as the search path env. var. for
GLib’s schemas, it seemed best to put it in GLib rather than
gobject-introspection.
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-05-06 21:12 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-05 22:36 gobject-introspection .gir search path Ludovic Courtès
2014-05-05 22:59 ` Cyril Roelandt
2014-05-06 8:07 ` Ludovic Courtès
2014-05-06 18:01 ` Cyril Roelandt
2014-05-06 21:11 ` Ludovic Courtès
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.