nixpkgs/pkgs/development/libraries/gobject-introspection
Jan Tojnar e468c04383
gobjectIntrospection: fix incorrect GIR shared library paths
When a library path contained the library name it was eagerly matched

    libfwupd.so.2 => /build/fwupd-1.0.5/build/libfwupd/libfwupd.so.2 (0x00007ffff7bbd000)
                                              ^^^^^^^^^^^^^^^^^^^^^^
    libgweather-3.so.15 => /build/libgweather-3.28.0/build/libgweather/libgweather-3.so.15 (0x00007ffff7bae000)
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

which lead to a broken shared library path in the generated GIR file.

This patch allows the soname on the left-hand side of the arrow to
be matched to avoid the trap of the right-hand side. A negative
lookahead had to be added to select the store path, since only
the first match is taken into account.

    libglib-2.0.so.0 => /nix/store/dqlc8y4phlg1hmdbwkhqfwhnxcac88d1-glib-2.56.0/lib/libglib-2.0.so.0 (0x00007ffff6400000)

This will not fix non-GNU platforms, where the soname is not printed
first, but we cannot do much without structured ldd output.

Closes: https://github.com/NixOS/nixpkgs/issues/34988
2018-03-22 07:46:00 +01:00
..
absolute_gir_path.patch gobjectIntrospection: use absolute path for cairo GIR 2018-01-20 15:58:20 +01:00
absolute_shlib_path.patch gobjectIntrospection: fix incorrect GIR shared library paths 2018-03-22 07:46:00 +01:00
default.nix Merge branch 'master' into staging 2018-03-10 20:38:13 +00:00
setup-hook.sh Merge pull request #31094 from yegortimoshenko/ibus/update 2017-12-31 21:23:05 +03:00