nixpkgs/pkgs
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
..
applications deja-dup: remove unneeded rpath fixup 2018-03-22 07:30:58 +01:00
build-support Merge pull request #36906 from nlewo/pr/docker-reproducible 2018-03-21 08:13:26 +01:00
common-updater common-updater: support updating source URL 2018-03-16 23:17:07 +09:00
data Merge pull request #37158 from oxij/pkgs/tor-browsers 2018-03-16 18:06:50 +00:00
desktops gnome3.gnome-shell: remove unneeded rpath fixup 2018-03-22 07:30:59 +01:00
development gobjectIntrospection: fix incorrect GIR shared library paths 2018-03-22 07:46:00 +01:00
games openrct2: 0.1.1 -> 0.1.2 2018-03-21 22:51:21 +00:00
misc Merge pull request #37491 from dtzWill/update/vim-plugins-many-2018-03-20 2018-03-21 15:56:37 -05:00
os-specific systemd: remove unneeded rpath fixup 2018-03-22 07:30:59 +01:00
servers squid4: 4.0.23 -> 4.0.24 2018-03-22 01:05:31 +01:00
shells bash-completion: 2.7 -> 2.8 2018-03-19 22:12:04 -07:00
stdenv cross stdenv: Make depsBuildBuild overrideable by config too. 2018-03-20 15:58:09 -04:00
test tree-wide: autorename gnome packages to use dashes 2018-02-25 17:41:16 +01:00
tools nmap: 7.60 -> 7.70 2018-03-22 01:05:31 +01:00
top-level nullmailer: fix darwin build 2018-03-22 00:11:24 +01:00