Hi all,

I've been working on the Debian packaging of libaacs and I've
encountered the following message while test-building it:

dpkg-shlibdeps: warning: symbol gpg_strerror_r used by
debian/libaacs0/usr/lib/libaacs.so.0.0.0 found in none of the
libraries.

I'm attaching a patch to solve that issue.
Regards,

-- 
Alessio Treglia          | www.alessiotreglia.com
Debian Developer         | ales...@debian.org
Ubuntu Core Developer    | quadris...@ubuntu.com
0FEC 59A5 E18E E04F 6D40 593B 45D4 8C7C DCFC 3FD0
Author: Alessio Treglia <ales...@debian.org>
Description: Link against gpg-error to make it find the gpg_strerror_r function.
Forwarded: libaacs-devel@videolan.org
---
 configure.ac    |   15 +++++++++++++++
 src/Makefile.am |    4 ++--
 2 files changed, 17 insertions(+), 2 deletions(-)

--- libaacs-0~20110623.git964342f.orig/configure.ac
+++ libaacs-0~20110623.git964342f/configure.ac
@@ -101,6 +101,21 @@ else
 fi
 AC_FUNC_STRERROR_R
 
+# gpg-error check
+AC_PATH_PROG(GPG_ERROR_CONFIG, gpg-error-config, no)
+if test x"$GPG_ERROR_CONFIG" = xno; then
+  AC_MSG_ERROR([gpg-error not found on system])
+else
+  GPG_ERROR_CFLAGS=`$GPG_ERROR_CONFIG --cflags`
+  GPG_ERROR_LIBS=`$GPG_ERROR_CONFIG --libs`
+  AC_SUBST(GPG_ERROR_CFLAGS)
+  AC_SUBST(GPG_ERROR_LIBS)
+fi
+AC_FUNC_STRERROR_R
+
+
+libgpg-error-decv
+
 # function testing for supported compiler options
 check_cc_options()
 {
--- libaacs-0~20110623.git964342f.orig/src/Makefile.am
+++ libaacs-0~20110623.git964342f/src/Makefile.am
@@ -14,7 +14,7 @@ SET_DEBUG_OPTS = @SET_DEBUG_OPTS@
 SET_INCLUDES = -I$(top_srcdir) -Ifile
 
 AM_CFLAGS = -std=c99 $(SET_FEATURES) $(SET_WARNINGS) $(SET_OPTIMIZATIONS) \
-	$(SET_DEBUG_OPTS) $(SET_INCLUDES) $(LIBGCRYPT_CFLAGS)
+	$(SET_DEBUG_OPTS) $(SET_INCLUDES) $(LIBGCRYPT_CFLAGS) $(GPG_ERROR_CFLAGS)
 AM_YFLAGS = -d -p libaacs_yy
 CFLAGS=$(shell test -z "$$CFLAGS" || echo "$$CFLAGS")
 
@@ -53,7 +53,7 @@ endif
 
 libaacs_ladir= $(includedir)/libaacs
 libaacs_la_HEADERS= libaacs/aacs.h file/filesystem.h
-libaacs_la_LDFLAGS= $(LIBGCRYPT_LIBS) -version-info $(LIB_VERSION_INFO)
+libaacs_la_LDFLAGS= $(LIBGCRYPT_LIBS) $(GPG_ERROR_LIBS) -version-info $(LIB_VERSION_INFO)
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libaacs.pc
 
_______________________________________________
libaacs-devel mailing list
libaacs-devel@videolan.org
http://mailman.videolan.org/listinfo/libaacs-devel

Reply via email to