From 50d924afa00b6d79d294bf1adc2b18e077afd84b Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Fri, 21 Sep 2012 15:43:42 +0200 Subject: [PATCH] system/pacemaker: Added a fix for glib>=2.31. Signed-off-by: Matteo Bernardini --- system/pacemaker/pacemaker.SlackBuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/system/pacemaker/pacemaker.SlackBuild b/system/pacemaker/pacemaker.SlackBuild index bbff7ad5e6..2dae52ccf9 100644 --- a/system/pacemaker/pacemaker.SlackBuild +++ b/system/pacemaker/pacemaker.SlackBuild @@ -11,7 +11,7 @@ PRGNAM=pacemaker VERSION=${VERSION:-b9b672590e79} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -59,9 +59,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Fix for glib>=2.31 +sed -i "s|/ghash||" lib/ais/plugin.c + ./autogen.sh -CFLAGS="$SLKCFLAGS" \ +CFLAGS="$SLKCFLAGS -Wno-error=unused-but-set-variable -Wno-error=deprecated-declarations" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/usr \