From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: Re: gobject-introspection .gir search path Date: Tue, 06 May 2014 00:59:28 +0200 Message-ID: <536817D0.9020600@gmail.com> References: <87vbtjn98r.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WhS0y-0006Ul-Rz for guix-devel@gnu.org; Mon, 05 May 2014 19:09:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WhS0p-0004ZT-RA for guix-devel@gnu.org; Mon, 05 May 2014 19:09:40 -0400 In-Reply-To: <87vbtjn98r.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?UTF-8?B?THVkb3ZpYyBDb3VydMOocw==?= 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.