Bug#891532: captagent FTBFS with shared libfl

Gianfranco Costamagna locutusofborg at debian.org
Wed Aug 14 09:05:40 BST 2019


and attached.
-------------- next part --------------
diff -Nru captagent-6.1.0.20/debian/changelog captagent-6.1.0.20/debian/changelog
--- captagent-6.1.0.20/debian/changelog	2017-01-15 21:09:31.000000000 +0100
+++ captagent-6.1.0.20/debian/changelog	2019-08-14 09:59:44.000000000 +0200
@@ -1,3 +1,11 @@
+captagent (6.1.0.20-3.1) unstable; urgency=medium
+
+  * Non-maintainer upload
+  * debian/patches/shared-libfl.patch:
+    - find shared libfl (Closes: #891532)
+
+ -- Gianfranco Costamagna <locutusofborg at debian.org>  Wed, 14 Aug 2019 09:59:44 +0200
+
 captagent (6.1.0.20-3) unstable; urgency=high
 
   * Update Build-Deps for default-libmysqlclient-dev. (Closes: #845827)
diff -Nru captagent-6.1.0.20/debian/patches/series captagent-6.1.0.20/debian/patches/series
--- captagent-6.1.0.20/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ captagent-6.1.0.20/debian/patches/series	2019-08-14 09:59:43.000000000 +0200
@@ -0,0 +1 @@
+shared-libfl.patch
diff -Nru captagent-6.1.0.20/debian/patches/shared-libfl.patch captagent-6.1.0.20/debian/patches/shared-libfl.patch
--- captagent-6.1.0.20/debian/patches/shared-libfl.patch	1970-01-01 01:00:00.000000000 +0100
+++ captagent-6.1.0.20/debian/patches/shared-libfl.patch	2019-08-14 09:59:44.000000000 +0200
@@ -0,0 +1,36 @@
+Description: AC_CHECK_LIB(fl, yywrap) doesn't work with shared libfl
+Author: Adrian Bunk <bunk at debian.org>
+Bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891532
+
+--- captagent-6.1.0.20.orig/configure.ac
++++ captagent-6.1.0.20/configure.ac
+@@ -153,6 +153,10 @@ AC_PROG_LEX
+ if test "$LEX" != "flex"; then
+ 	AC_MSG_ERROR([flex not found. Please install flex])
+ fi
++if test "x$LEXLIB" = "x"; then
++	AC_MSG_ERROR([captagent requires but cannot find libfl])
++fi
++
+ 
+ if test -z "`echo %%|$LEX -t|grep yypop_buffer_state`"; then
+ 	AC_MSG_ERROR([flex missing yypop_buffer_state - upgrade to version 2.5.33 or later])
+@@ -181,8 +185,6 @@ echo "        If it is in a different di
+ echo "        the LDFLAGS to set its proper path.";
+ AC_MSG_ERROR([Fatal:  libjson not found.])])])
+ 
+-AC_CHECK_LIB(fl, yywrap, [ FLEX_LIBS="-lfl" ] , [AC_MSG_ERROR([captagent requires but cannot find libfl])])
+-
+ AC_SUBST(PTHREAD_LIBS)
+ AC_SUBST(DL_LIBS)
+ AC_SUBST(EXPAT_LIBS)
+--- captagent-6.1.0.20.orig/src/Makefile.am
++++ captagent-6.1.0.20/src/Makefile.am
+@@ -19,6 +19,6 @@ AM_CPPFLAGS = -DSYSCONFDIR='"$(sysconfdi
+ BUILT_SOURCES = capplan.tab.h
+ noinst_HEADERS = md5.h captagent.h conf_function.h
+ captagent_SOURCES = captagent.c conf_function.c log.c md5.c modules.c xmlread.c capplan.l capplan.tab.y
+-captagent_LDADD = ${PTHREAD_LIBS} ${EXPAT_LIBS} ${DL_LIBS} ${FLEX_LIBS}
++captagent_LDADD = ${PTHREAD_LIBS} ${EXPAT_LIBS} ${DL_LIBS} ${LEXLIB}
+ captagentconfdir = $(sysconfdir)/$(bin_PROGRAMS)
+ captagentconf_DATA = $(top_srcdir)/conf/$(bin_PROGRAMS).xml


More information about the Pkg-voip-maintainers mailing list