unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Federico Beffa <beffa@ieee.org>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: Guix-devel <guix-devel@gnu.org>
Subject: Re: gobject-introspection typelibs and shared libraries
Date: Sun, 7 Dec 2014 23:11:24 +0100	[thread overview]
Message-ID: <CAKrPhPPmAzQA1o+kUgb=NDex_+1rbTkoYuzC9uO6Q9=d3R4+ag@mail.gmail.com> (raw)
In-Reply-To: <87ppbvkwzj.fsf@gnu.org>

On Sun, Dec 7, 2014 at 9:48 PM, Ludovic Courtès <ludo@gnu.org> wrote:
> Federico Beffa <beffa@ieee.org> skribis:
>
>> currently the typelib files used by gobject-introspection can't find
>> shared libraries and require setting LD_LIBRARY_PATH.
>
> I don’t know much about all this; could you give some context?  What’s a
> typelib files exactly?

gobject-introspection is a tool to create bindings to C libraries for
other languages. To make the system flexible it creates an
intermediate object. typelib files are a binary store on disk of this
intermediate object.

https://developer.gnome.org/gi/stable/overview.html

>
>> I would like to propose to adopt the attached patch from the nix folk
>> which should fix that and refer to shared libraries by absolute path.
>
> Is the output of gir-scanner(?) used on the linker command line?
> Normally, our ld-wrapper handles adding a RUNPATH for any library listed
> as -l on the linker command line.

It is one of the tools used to create the typelib files from the C
libraries, but I do not know all the details. It is one of the tools
used for example by gtk+, pango, atk, gkd-pixbuf to generate the
content of the .../lib/girepository-1.0 directory. Given that it is
written in python, I do not think that it is used on the linker
command line.

The problem I've found is that the typelib files include the name of
required shared libraries (.so), but not the absolute path. Therefore
I was forced to set the LD_LIBRARY_PATH.

I was actually googling to find out how to instruct an application
where to look for the typelib files, when I saw this email

http://lists.science.uu.nl/pipermail/nix-dev/2014-September/014309.html

and thought that we could borrow the approach.

Regards,
Fede

  reply	other threads:[~2014-12-07 22:11 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-07 14:21 gobject-introspection typelibs and shared libraries Federico Beffa
2014-12-07 20:48 ` Ludovic Courtès
2014-12-07 22:11   ` Federico Beffa [this message]
2014-12-08  9:22     ` Ludovic Courtès
2014-12-08 12:21       ` Federico Beffa
2014-12-08 14:51         ` Federico Beffa
2014-12-08 20:37         ` Ludovic Courtès
2014-12-09 19:30           ` Federico Beffa
2014-12-09 20:27             ` Federico Beffa
2014-12-10  4:15               ` Mark H Weaver
2014-12-09 20:58             ` Ludovic Courtès
2014-12-10  4:39             ` Mark H Weaver
2014-12-10  4:54               ` Mark H Weaver
2014-12-10  8:48                 ` Ludovic Courtès
2014-12-10  8:57                   ` Federico Beffa
2014-12-10 12:56                     ` Ludovic Courtès
2014-12-16 19:45                       ` Federico Beffa
2014-12-17  7:20                         ` Mark H Weaver
2014-12-17  8:57                         ` Ludovic Courtès
2015-01-13 17:10                           ` Federico Beffa
2015-01-13 20:22                             ` Ludovic Courtès
2015-01-13 21:40                               ` Federico Beffa
2015-01-14 20:43                                 ` Ludovic Courtès
2015-01-15  8:27                                   ` Federico Beffa
2015-01-15 21:42                                     ` Ludovic Courtès
2015-01-16 17:07                                       ` Federico Beffa
2015-01-16 20:47                                       ` Andreas Enge
  -- strict thread matches above, loose matches on Subject: below --
2015-01-17  9:46 Federico Beffa
2015-01-17 10:15 ` 宋文武
2015-01-17 12:02 ` Andreas Enge
2015-01-18  9:39   ` Federico Beffa
2015-01-18 13:16     ` Andreas Enge

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKrPhPPmAzQA1o+kUgb=NDex_+1rbTkoYuzC9uO6Q9=d3R4+ag@mail.gmail.com' \
    --to=beffa@ieee.org \
    --cc=guix-devel@gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).