From 52b0c31ba866948fcfb18c3a3edfe28ca4c57864 Mon Sep 17 00:00:00 2001 From: Andrey Maraev Date: Mon, 10 Sep 2012 22:21:34 -0500 Subject: office/mytetra: Patched to build with gcc47 Signed-off-by: Robby Workman --- office/mytetra/mytetra-gcc4.7.patch | 10 ++++++++++ office/mytetra/mytetra.SlackBuild | 7 +++++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 office/mytetra/mytetra-gcc4.7.patch diff --git a/office/mytetra/mytetra-gcc4.7.patch b/office/mytetra/mytetra-gcc4.7.patch new file mode 100644 index 0000000000..1662bf5053 --- /dev/null +++ b/office/mytetra/mytetra-gcc4.7.patch @@ -0,0 +1,10 @@ +Index: src/qtsingleapplication/qtlocalpeer.cpp +=================================================================== +--- src/qtsingleapplication/qtlocalpeer.cpp.orig ++++ src/qtsingleapplication/qtlocalpeer.cpp +@@ -57,6 +57,7 @@ static PProcessIdToSessionId pProcessIdT + #endif + #if defined(Q_OS_UNIX) + #include ++#include + #endif diff --git a/office/mytetra/mytetra.SlackBuild b/office/mytetra/mytetra.SlackBuild index d1f191a8de..76b0111d55 100644 --- a/office/mytetra/mytetra.SlackBuild +++ b/office/mytetra/mytetra.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=mytetra VERSION=${VERSION:-1.30.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -53,7 +53,10 @@ find . \ -exec chmod 644 {} \; # Correct target path in file mytetra.pro -sed 's/\/usr\/local\/bin/\/usr\/bin/g' -i mytetra.pro +sed "s,/usr/local/bin,/usr/bin,g" -i mytetra.pro + +# Patch fix gcc 4.7 +patch -p0 -i $CWD/mytetra-gcc4.7.patch qmake \ QMAKE_CFLAGS="$SLKCFLAGS" \ -- cgit v1.2.3