[SCM] gpac/master: Add patch to fix SONAME field in library.

ceros-guest at users.alioth.debian.org ceros-guest at users.alioth.debian.org
Fri Oct 29 20:13:10 UTC 2010


The following commit has been merged in the master branch:
commit 1faad6924f46d44d59db4a0a65a5145797ec8360
Author: Andres Mejia <mcitadel at gmail.com>
Date:   Fri Oct 29 16:03:52 2010 -0400

    Add patch to fix SONAME field in library.

diff --git a/debian/patches/series b/debian/patches/series
index bc3d500..ff717af 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 amd64.patch
 glx-func-def.patch
+soname-fix.patch
diff --git a/debian/patches/soname-fix.patch b/debian/patches/soname-fix.patch
new file mode 100644
index 0000000..103dd42
--- /dev/null
+++ b/debian/patches/soname-fix.patch
@@ -0,0 +1,46 @@
+Patch to fix SONAME field in library.
+==========================================================================
+--- a/configure
++++ b/configure
+@@ -2085,6 +2085,7 @@
+ fi
+ 
+ if test "$win32" = "no" ; then
++	DYN_LIB_SUFFIX="${DYN_LIB_SUFFIX}.${version}"
+ 	echo "GPAC_SH_FLAGS=$GPAC_SH_FLAGS" >> config.mak
+ 	echo "DYN_LIB_SUFFIX=$DYN_LIB_SUFFIX" >> config.mak
+ else
+--- a/Makefile
++++ b/Makefile
+@@ -92,8 +92,8 @@
+ 	$(INSTALL) -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) $(DESTDIR)$(prefix)/$(libdir)/libgpac.$(VERSION).$(DYN_LIB_SUFFIX)
+ 	ln -sf libgpac.$(VERSION).$(DYN_LIB_SUFFIX) $(DESTDIR)$(prefix)/$(libdir)/libgpac.$(DYN_LIB_SUFFIX)
+ else
+-	$(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) $(DESTDIR)$(prefix)/$(libdir)/libgpac.$(DYN_LIB_SUFFIX).$(VERSION)
+-	ln -sf libgpac.$(DYN_LIB_SUFFIX).$(VERSION) $(DESTDIR)$(prefix)/$(libdir)/libgpac.$(DYN_LIB_SUFFIX)
++	$(INSTALL) $(INSTFLAGS) -m 755 bin/gcc/libgpac.$(DYN_LIB_SUFFIX) $(DESTDIR)$(prefix)/$(libdir)/libgpac.$(DYN_LIB_SUFFIX)
++	ln -sf libgpac.$(DYN_LIB_SUFFIX) $(DESTDIR)$(prefix)/$(libdir)/libgpac.so
+ ifeq ($(DESTDIR)$(prefix),$(prefix))
+ 	ldconfig || true
+ endif
+--- a/src/Makefile
++++ b/src/Makefile
+@@ -209,6 +209,9 @@
+ 	ar cr ../bin/gcc/libgpac_static.a $(OBJS)
+ 	ranlib ../bin/gcc/libgpac_static.a
+ 	$(CC) $(SHFLAGS) $(LD_SONAME) $(LDFLAGS) -o ../bin/gcc/$@ $(OBJS) $(EXTRALIBS)
++ifeq (,$(findstring yes, $(CONFIG_DARWIN) $(CONFIG_WIN32)))
++	ln -sf $@ ../bin/gcc/libgpac.so
++endif
+ endif
+ 
+ dep: depend
+@@ -219,7 +222,7 @@
+ 
+ clean: 
+ 	rm -f $(OBJS) ../bin/gcc/$(LIB)
+-	rm -rf ../bin/gcc/libgpac_static.a
++	rm -rf ../bin/gcc/libgpac_static.a ../bin/gcc/libgpac.so
+ 
+ distclean: clean
+ 	rm -f Makefile.bak .depend

-- 
gpac packaging



More information about the pkg-multimedia-commits mailing list