mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-25 10:03:03 +01:00
multimedia/gnash: Patched for gcc 4.7
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
22d19b2fdb
commit
c3cfc78762
2 changed files with 15 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
|
||||
PRGNAM=gnash
|
||||
VERSION=${VERSION:-0.8.10}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -67,6 +67,9 @@ cd $PRGNAM-$VERSION
|
|||
chown -R root:root .
|
||||
chmod -R u+w,go+r-w,a-st .
|
||||
|
||||
# Fix compilation with GCC 4.7.
|
||||
patch -p1 < $CWD/patch/gcc47.patch
|
||||
|
||||
# Fix paths for kde plugin and a cve patch.
|
||||
# Ripped from gentoo
|
||||
patch -p1 < $CWD/patch/gnash-0.8.10-klash.patch
|
||||
|
|
11
multimedia/gnash/patch/gcc47.patch
Normal file
11
multimedia/gnash/patch/gcc47.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
diff --git a/plugin/klash4/klash_part.cpp b/plugin/klash4/klash_part.cpp
|
||||
--- a/plugin/klash4/klash_part.cpp
|
||||
+++ b/plugin/klash4/klash_part.cpp
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <QByteArray>
|
||||
#include <QMenu>
|
||||
#include <QTimer>
|
||||
+#include <unistd.h>
|
||||
|
||||
#include <klibloader.h>
|
||||
#include <kdebug.h>
|
Loading…
Reference in a new issue