nixpkgs/pkgs
Uli Schlachter f6a48c21d2 lgi: Fix cairo bindings search path
Since commit e44038bcca, cairo-1.0.typelib contains an absolute
path to cairo in the nix store so that no $LD_LIBRARY_PATH hacks are
needed. However, this did not yet work for lgi, because lgi does
dlopen("libcairo.so.2") without a full path, too.

To make this work, this commit ensures that lgi first uses
gobject-introspection to load libcairo. This uses the full path provided
by the typelib. Afterwards, dlopen("libcairo.so.2") does not hit the
filesystem anymore since the library is already loaded.

This commit adds a patch that reorders some code in lgi's cairo
initialisation. Previously, this started with core.module('cairo', 2),
which is where the dlopen happens. Now, this code is moved down and
instead core.gi.cairo.resolve is used to load the definitions of some
enums first. This part of the code goes through gobject-introspection
and causes libcairo to be loaded.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2018-02-04 10:13:06 +01:00
..
applications qgit: 2.6 -> 2.7 (#34536) 2018-02-03 23:58:39 +00:00
build-support rust: fix evaluation 2018-02-04 00:09:00 +00:00
common-updater update-source-version: Name part of name can contain dashes 2017-12-26 20:02:01 +02:00
data Merge remote-tracking branch 'upstream/master' into staging 2018-02-03 02:50:21 +02:00
desktops Merge remote-tracking branch 'upstream/master' into staging 2018-02-03 02:50:21 +02:00
development wp-cli: 1.4.1 -> 1.5.0 2018-02-04 11:51:03 +08:00
games minetest: 0.4.15 -> 0.4.16 2018-01-28 18:52:25 +01:00
misc cups-filters: 1.16.0 -> 1.20.0 2018-02-03 00:07:11 +01:00
os-specific linux: 4.15 -> 4.15.1 2018-02-03 20:38:25 -05:00
servers Merge remote-tracking branch 'upstream/master' into HEAD 2018-02-03 09:48:42 +01:00
shells elvish: 0.10 -> 0.11 2018-01-31 23:32:49 +01:00
stdenv unpackPhase: Handle sources starting with a hyphen 2018-01-24 21:58:57 -08:00
test sierra-shared-test: fix build 2018-01-05 23:20:55 +01:00
tools grobi: init at 0.3.0 2018-02-03 22:54:18 +01:00
top-level lgi: Fix cairo bindings search path 2018-02-04 10:13:06 +01:00