From c9be4913c88c749f8f407fba31e3d2f30688c888 Mon Sep 17 00:00:00 2001 From: Артур Курков Date: Fri, 10 Aug 2012 22:35:27 -0500 Subject: office/keepassx: Fix build with gcc47 Signed-off-by: Robby Workman --- office/keepassx/keepassx-0.4.3-gcc47.patch | 12 ++++++++++++ office/keepassx/keepassx.SlackBuild | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 office/keepassx/keepassx-0.4.3-gcc47.patch (limited to 'office/keepassx') diff --git a/office/keepassx/keepassx-0.4.3-gcc47.patch b/office/keepassx/keepassx-0.4.3-gcc47.patch new file mode 100644 index 0000000000..9e26e5a0a5 --- /dev/null +++ b/office/keepassx/keepassx-0.4.3-gcc47.patch @@ -0,0 +1,12 @@ +diff --git a/src/lib/random.cpp b/src/lib/random.cpp +index 1007172..f12dd1c 100644 +--- a/src/lib/random.cpp ++++ b/src/lib/random.cpp +@@ -19,6 +19,7 @@ + ***************************************************************************/ + + #include "random.h" ++#include + + + #if defined(Q_WS_X11) || defined(Q_WS_MAC) diff --git a/office/keepassx/keepassx.SlackBuild b/office/keepassx/keepassx.SlackBuild index 8313443c11..313c7943fa 100644 --- a/office/keepassx/keepassx.SlackBuild +++ b/office/keepassx/keepassx.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=keepassx VERSION=0.4.3 -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -71,6 +71,8 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +patch -p1 < $CWD/keepassx-0.4.3-gcc47.patch + qmake \ QMAKE_CFLAGS="$SLKCFLAGS" \ QMAKE_CXXFLAGS="$SLKCFLAGS" -- cgit v1.2.3