mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
office/mytetra: Patched to build with gcc47
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
4c080ce397
commit
52b0c31ba8
2 changed files with 15 additions and 2 deletions
10
office/mytetra/mytetra-gcc4.7.patch
Normal file
10
office/mytetra/mytetra-gcc4.7.patch
Normal file
|
@ -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 <time.h>
|
||||
+#include <unistd.h>
|
||||
#endif
|
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue