diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2012-12-03 18:42:14 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2012-12-03 18:42:14 -0500 |
commit | e5ec91bd8051afc41414938217ee09c65aa6c7a2 (patch) | |
tree | 5dab73f432b16383e7e5f8e1c7f53835ffc54644 /community | |
parent | 452f894d76f09c6a07ada3c3a0c182ca19e296f5 (diff) |
Add goldendict-1.0.1-gcc-4.7.patch
Diffstat (limited to 'community')
-rw-r--r-- | community/goldendict/PKGBUILD | 8 | ||||
-rw-r--r-- | community/goldendict/goldendict-1.0.1-gcc-4.7.patch | 40 |
2 files changed, 45 insertions, 3 deletions
diff --git a/community/goldendict/PKGBUILD b/community/goldendict/PKGBUILD index 5ff50b09a..728d5407c 100644 --- a/community/goldendict/PKGBUILD +++ b/community/goldendict/PKGBUILD @@ -14,15 +14,17 @@ makedepds=('patch') provides=('stardict') changelog=$pkgname.changelog source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.bz2 - $pkgname-paths.diff) + $pkgname-paths.diff + goldendict-1.0.1-gcc-4.7.patch) sha256sums=('b3fb0405a5edb38f02ef881b48c36e46e2eacf641b0caf8d99403f595a4be9a6' - '1dacae7b7a7d7c20a22b4595c07dbd65fdad134a0d4cf283312ea3bdb5f42589') + '1dacae7b7a7d7c20a22b4595c07dbd65fdad134a0d4cf283312ea3bdb5f42589' + 'd61d95f464e82ed83493cbb5ded3ecc59a34eb879eb9c7140d801ee6e0c4454e') build(){ cd ${srcdir} patch -Np0 -i ${srcdir}/$pkgname-paths.diff - + patch -Np1 -i ${srcdir}/goldendict-1.0.1-gcc-4.7.patch qmake make qmake diff --git a/community/goldendict/goldendict-1.0.1-gcc-4.7.patch b/community/goldendict/goldendict-1.0.1-gcc-4.7.patch new file mode 100644 index 000000000..24995a221 --- /dev/null +++ b/community/goldendict/goldendict-1.0.1-gcc-4.7.patch @@ -0,0 +1,40 @@ +From b00d081da20b9a6b257573c6b23a6bc640c4dab1 Mon Sep 17 00:00:00 2001 +From: Michael Palimaka <kensington@gentoo.org> +Date: Fri, 20 Jul 2012 03:27:38 +1000 +Subject: [PATCH] Fix build with GCC 4.7 by adding missing includes. + +--- + processwrapper.cc | 4 ++++ + qtsingleapplication/src/qtlocalpeer.cpp | 1 + + 2 files changed, 5 insertions(+) + +diff --git a/processwrapper.cc b/processwrapper.cc +index f7f3f19..86b985d 100644 +--- a/processwrapper.cc ++++ b/processwrapper.cc +@@ -2,6 +2,10 @@ +
+ #include <QtCore>
+
++#if defined(Q_OS_UNIX)
++#include <unistd.h>
++#endif
++
+ #ifdef Q_OS_WIN32
+
+ #include <windows.h>
+diff --git a/qtsingleapplication/src/qtlocalpeer.cpp b/qtsingleapplication/src/qtlocalpeer.cpp +index 382d182..506c142 100644 +--- a/qtsingleapplication/src/qtlocalpeer.cpp ++++ b/qtsingleapplication/src/qtlocalpeer.cpp +@@ -50,6 +50,7 @@ static PProcessIdToSessionId pProcessIdToSessionId = 0; + #endif + #if defined(Q_OS_UNIX) + #include <time.h> ++#include <unistd.h> + #endif + + namespace QtLP_Private { +-- +1.7.11.1 + |