[Pacemaker] small warning when build packages

Andrew Beekhof andrew at beekhof.net
Fri Jun 21 02:00:52 UTC 2013


Just this is also sufficient:

index 930f8b5..483f94d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1010,7 +1010,7 @@ LIBQB_LOG=1
 PCMK_FEATURES="$PCMK_FEATURES libqb-logging libqb-ipc"
 
 if
-   !pkg-config --atleast-version 0.13 libqb
+   ! pkg-config --atleast-version 0.13 libqb
 then
    AC_MSG_FAILURE(Version of libqb is too old: v0.13 or greater requried)
 fi


On 20/06/2013, at 10:21 PM, Andrey Groshev <greenx at yandex.ru> wrote:

> Hi,
> Today, when I tried to recompile the package, I noticed a small warning.
> 
> ./configure: line 31134: !pkg-config: command not found
> 
> As I understand it, the place is a check version libqb.
> And in this case, it is always "true" because Returns the value always NOT zero.
> Maybe fix it right?
> 
> --- configure.ac.old    2013-06-20 15:27:38.907028556 +0400
> +++ configure.ac        2013-06-20 15:48:19.630022575 +0400
> @@ -1008,8 +1008,8 @@
> LIBQB_LOG=1
> PCMK_FEATURES="$PCMK_FEATURES libqb-logging libqb-ipc"
> 
> -if
> -   !pkg-config --atleast-version 0.13 libqb
> +if
> +    $(! pkg-config --atleast-version 0.13 libqb)
> then
>    AC_MSG_FAILURE(Version of libqb is too old: v0.13 or greater requried)
> fi 
> 
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org





More information about the Pacemaker mailing list