[sheepdog] [PATCH v3] add libcorosync_common depen

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Jul 6 14:50:42 CEST 2015


At Fri, 3 Jul 2015 17:38:15 +0300,
Vasiliy Tolstov wrote:
> 
> 2015-07-03 17:37 GMT+03:00 Vasiliy Tolstov <v.tolstov at selfip.ru>:
> > when build with corosync 2.x libcorosync_common needs to be linked
> 
> 
> This version does not have bug with [] simbols in PKG_CHECK_MODULES

Thanks for your patch, but I couldn't apply it to the master
branch. Below is a content of configure.ac.rej:

--- configure.ac
+++ configure.ac
@@ -348,12 +348,16 @@
 fi
 
 if test "x${enable_corosync}" = xyes; then
-       PKG_CHECK_MODULES([corosync],[corosync])
        PKG_CHECK_MODULES([libcpg],[libcpg])
        PKG_CHECK_MODULES([libcfg],[libcfg])
-       PKG_CHECK_MODULES([libqb],[libqb])
+       PKG_CHECK_MODULES([libcorosync],[corosync])
        AC_DEFINE_UNQUOTED([HAVE_COROSYNC], 1, [have corosync])
        PACKAGE_FEATURES="$PACKAGE_FEATURES corosync"
+       libcorosync_LIBS+="$(libcpg_LIBS) $(libcfg_LIBS)"
+       PKG_CHECK_MODULES([corosync2],[corosync >= 2],
+               [PKG_CHECK_MODULES([libqb],[libqb])
+
PKG_CHECK_MODULES([libcorosync_common],[libcorosync_common])
+               libcorosync_LIBS+="$(libqb_LIBS)
$(libcorosync_common_LIBS)"],)
 fi
 
 if test "x${enable_zookeeper}" = xyes; then

Thanks,
Hitoshi

> 
> -- 
> Vasiliy Tolstov,
> e-mail: v.tolstov at selfip.ru
> -- 
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/sheepdog


More information about the sheepdog mailing list