• Emmanuele Bassi's avatar
    Fix the soname versioning for libgnome-desktop · 854cfe77
    Emmanuele Bassi authored
    With Meson, using the `soversion` argument of a library() target means
    setting the explicit soname, e.g.:
    
        soversion: 17.0.2
    
    will be used to generate:
    
        libgnome-desktop-3.so.17.0.2
    
    Unlike libtool, though, Meson will not generate the symbolic links for
    the first component of the soversion:
    
        libgnome-desktop-3.so.17
    
    Which is what the dynamic linker will actually use to resolve the
    library dependency at link time.
    
    In order to get a symbolic link, we need to use the `version` field for
    the soname, and the `soversion` field for the first component:
    
        version: '17.0.2'
        soversion: '17'
    
    To avoid having to manually set two fields, we can generate the
    `soversion` value from the `version` one, so that they will always be in
    sync.
    
    This fixes the build of gnome-shell on Continuous, which has been
    failing since gnome-desktop has been moved to Meson with the error:
    
        ld: warning: libgnome-desktop-3.so.17, needed by /usr/lib/libmutter-3.so,
        not found (try using -rpath or -rpath-link)
    Signed-off-by: 's avatarEmmanuele Bassi <ebassi@gnome.org>
    854cfe77
Name
Last commit
Last update
..
ChangeLog.pre-git Loading commit data...
default-input-sources.h Loading commit data...
gnome-bg-crossfade.c Loading commit data...
gnome-bg-crossfade.h Loading commit data...
gnome-bg-slide-show.c Loading commit data...
gnome-bg-slide-show.h Loading commit data...
gnome-bg.c Loading commit data...
gnome-bg.h Loading commit data...
gnome-datetime-source.c Loading commit data...
gnome-datetime-source.h Loading commit data...
gnome-desktop-3.0-uninstalled.pc.in Loading commit data...
gnome-desktop-3.0.pc.in Loading commit data...
gnome-desktop-thumbnail-script.c Loading commit data...
gnome-desktop-thumbnail-script.h Loading commit data...
gnome-desktop-thumbnail.c Loading commit data...
gnome-desktop-thumbnail.h Loading commit data...
gnome-idle-monitor.c Loading commit data...
gnome-idle-monitor.h Loading commit data...
gnome-languages.c Loading commit data...
gnome-languages.h Loading commit data...
gnome-pnp-ids.c Loading commit data...
gnome-pnp-ids.h Loading commit data...
gnome-rr-config.c Loading commit data...
gnome-rr-config.h Loading commit data...
gnome-rr-debug.c Loading commit data...
gnome-rr-output-info.c Loading commit data...
gnome-rr-private.h Loading commit data...
gnome-rr.c Loading commit data...
gnome-rr.h Loading commit data...
gnome-wall-clock.c Loading commit data...
gnome-wall-clock.h Loading commit data...
gnome-xkb-info.c Loading commit data...
gnome-xkb-info.h Loading commit data...
idle-monitor.xml Loading commit data...
meson.build Loading commit data...
meta-xrandr-shared.h Loading commit data...
test-desktop-thumbnail.c Loading commit data...
test-idle-monitor.c Loading commit data...
test-languages.c Loading commit data...
test-pnp-ids.c Loading commit data...
test-wall-clock.c Loading commit data...
test-xkb-info.c Loading commit data...
xrandr.xml Loading commit data...