From 3c1cbc2705a59893ce8566d4da4219dcb574aba8 Mon Sep 17 00:00:00 2001 From: Christoph Willing Date: Sat, 16 Dec 2017 08:30:53 +1000 Subject: network/uTox: Disable ASAN for Release builds Signed-off-by: Christoph Willing --- network/uTox/asan_off.diff | 14 ++++++++++++++ network/uTox/uTox.SlackBuild | 5 +++-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 network/uTox/asan_off.diff (limited to 'network/uTox') diff --git a/network/uTox/asan_off.diff b/network/uTox/asan_off.diff new file mode 100644 index 000000000000..f6c3ff662aa0 --- /dev/null +++ b/network/uTox/asan_off.diff @@ -0,0 +1,14 @@ +--- CMakeLists.txt.orig 2017-08-23 06:19:33.000000000 +1000 ++++ CMakeLists.txt 2017-12-15 16:07:38.446002260 +1000 +@@ -73,6 +73,11 @@ + set(ASAN_DEFAULT ON) + endif() + ++# ASAN causes uTox to be slower so do no use it for release builds ++if (CMAKE_BUILD_TYPE MATCHES "Release") ++ set(ASAN_DEFAULT OFF) ++endif() ++ + ########### + # Options # + ########### diff --git a/network/uTox/uTox.SlackBuild b/network/uTox/uTox.SlackBuild index 927ca78b6c9b..355412680010 100644 --- a/network/uTox/uTox.SlackBuild +++ b/network/uTox/uTox.SlackBuild @@ -20,7 +20,7 @@ PRGNAM=uTox VERSION=${VERSION:-0.16.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -58,6 +58,7 @@ cd $TMP rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/v$VERSION.tar.gz cd $PRGNAM-$VERSION +patch -p0 < $CWD/asan_off.diff chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -66,7 +67,7 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; # Use GTK2 as default -[ GTK3=${GTK3:-no} != "yes" ] && patch -p0 < $CWD/gtk2.diff +[ "${GTK3:-no}" != "yes" ] && patch -p0 < $CWD/gtk2.diff mkdir -p build cd build -- cgit v1.2.3