The attached patch would make libixml and libthreadutil "convenience"
libraries <https://www.sourceware.org/autobook/autobook/autobook_92.html>.

As those libraries would then be no longer part of libupnp6, this would
break at least vlc, which links agains ixml:
 $ objdump -x /usr/lib/vlc/plugins/services_discovery/libupnp_plugin.so | grep 
NEEDED
...
   NEEDED               libupnp.so.6
   NEEDED               libthreadutil.so.6
   NEEDED               libixml.so.2

Therefore the package name must be updated and all dependent packages be
rebuild.
-- 
Philipp Matthias Hahn <pmh...@debian.org>
 GPG/PGP: 9A540E39 @ keyrings.debian.org
Description: Assimilate ixml and threadutil shared libraries into libupnp itself.
Bug-Debian: https://bugs.debian.org/670562
--- a/ixml/Makefile.am
+++ b/ixml/Makefile.am
@@ -18,7 +18,7 @@ else
     AM_CPPFLAGS		+= -DNDEBUG
 endif
 
-lib_LTLIBRARIES		= libixml.la
+noinst_LTLIBRARIES		= libixml.la
 
 libixml_la_LDFLAGS	= -version-info $(LT_VERSION_IXML) \
 			  -export-symbols-regex '^ixml.*'
--- a/threadutil/Makefile.am
+++ b/threadutil/Makefile.am
@@ -13,7 +13,7 @@ else
 endif
 
 
-lib_LTLIBRARIES		= libthreadutil.la
+noinst_LTLIBRARIES		= libthreadutil.la
 
 libthreadutil_la_LDFLAGS = -version-info $(LT_VERSION_THREADUTIL)
 
--- a/libupnp.pc.in
+++ b/libupnp.pc.in
@@ -6,6 +6,6 @@ includedir=@includedir@
 Name: libupnp
 Description: Linux SDK for UPnP Devices
 Version: @VERSION@
-Libs: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ -L${libdir} -lupnp -lthreadutil -lixml 
+Libs: @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ -L${libdir} -lupnp
 Cflags: @PTHREAD_CFLAGS@ -I${includedir}/upnp
 

Reply via email to