[Mesa-dev] [PATCH] osmesa: Create a symlinked .so.8
Matt Turner
mattst88 at gmail.com
Sat Sep 1 15:03:20 PDT 2012
On Sat, Sep 1, 2012 at 2:44 PM, Johannes Obermayr
<johannesobermayr at gmx.de> wrote:
> ---
> src/mesa/drivers/osmesa/Makefile.am | 8 ++++++++
> 1 Datei geändert, 8 Zeilen hinzugefügt(+)
>
> diff --git a/src/mesa/drivers/osmesa/Makefile.am b/src/mesa/drivers/osmesa/Makefile.am
> index db1d14f..0696036 100644
> --- a/src/mesa/drivers/osmesa/Makefile.am
> +++ b/src/mesa/drivers/osmesa/Makefile.am
> @@ -47,6 +47,14 @@ all-local: lib at OSMESA_LIB@.la
> $(MKDIR_P) $(top_builddir)/$(LIB_DIR);
> ln -f .libs/lib at OSMESA_LIB@.so $(top_builddir)/$(LIB_DIR)/lib at OSMESA_LIB@.so;
> ln -f .libs/lib at OSMESA_LIB@.so. at VERSION@ $(top_builddir)/$(LIB_DIR)/lib at OSMESA_LIB@.so. at VERSION@;
> +
> +# The version bump from 8.0.x to 9.0.0 can make the need of massive rebuilds on
> +# current distributions when shipping an updated Mesa stack.
> +# Because the soversion bump for OSMesa is not caused by a changed API we can
> +# also symlink and ship a .so.8 to avoid such rebuilds.
> +install-exec-hook:
> + cd $(DESTDIR)$(libdir) && \
> + ln -s lib at OSMESA_LIB@.so. at VERSION@ lib at OSMESA_LIB@.so.8;
> endif
>
> pkgconfigdir = $(libdir)/pkgconfig
> --
> 1.7.10.4
Can't we just stop using @VERSION@ as the so-version? Adding a .8 so
link is a disgusting hack.
More information about the mesa-dev
mailing list