3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
aszlig c83e697aa0
gobject-introspection: Add fallback for libraries
After patching up the shared libraries in c420de6 to use absolute paths,
there are still some libraries left which do not get an absolute paths
assigned.

Those libraries are the ones which have an absolute path outside of the
Nix store, so we assume that they're build products of the current build
and make them absolute by prepending "$out/lib" or "$lib/lib" (depending
on whether it's a multiple output derivation or not) to its basename.

So for my test case, the resulting library paths now look like this:

  /nix/store/...-libblockdev-1.3/lib/libblockdev.so.0
  /nix/store/...-glibc-2.21/lib/libm.so.6
  /nix/store/...-dmraid-1.0.0.rc16/lib/libdmraid.so.1.0.0.rc16
  /nix/store/...-libblockdev-1.3/lib/libbd_utils.so.0

Which is perfectly fine and everything gets resolved correctly after
importing the library using GI.

However, I didn't test it against other libraries and programs, so this
still needs testing, especially for Darwin.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-01-22 22:46:14 +01:00
..
applications emacs-isearch-plus: 20160115.1122 -> 20160118.1030 2016-01-22 15:18:12 -06:00
build-support Merge branch 'staging' 2016-01-22 13:48:35 +01:00
data numix-icon-theme-circle: 20151014 -> 20160121 2016-01-22 14:37:34 +01:00
desktops gnome3.pomodoro: 3.18-624945d -> 3.18-4844fad 2016-01-22 14:29:28 +01:00
development gobject-introspection: Add fallback for libraries 2016-01-22 22:46:14 +01:00
games Merge branch 'staging' 2016-01-22 13:48:35 +01:00
misc vimPlugins: update 2016-01-22 2016-01-22 23:02:39 +03:00
os-specific Merge branch 'staging' 2016-01-22 13:48:35 +01:00
servers Merge pull request #12459 from avnik/fix-var-lib-postfix-permissions 2016-01-22 17:25:07 +01:00
shells fish: fix merge conflict 2016-01-05 23:32:29 +01:00
stdenv Merge branch 'master' into staging 2016-01-18 09:48:49 +01:00
test
tools Merge pull request #12553 from rvl/xcftools 2016-01-22 22:47:59 +03:00
top-level gobject-introspection: Fix patching shared objects 2016-01-22 22:46:02 +01:00