guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gobject-introspection .gir search path


From: Ludovic Courtès
Subject: Re: gobject-introspection .gir search path
Date: Tue, 06 May 2014 10:07:33 +0200
User-agent: Gnus/5.130009 (Ma Gnus v0.9) Emacs/24.3 (gnu/linux)

Cyril Roelandt <address@hidden> 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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]