From 6d70d239bcdd2422a1117b5d5d55c8d715ce2d79 Mon Sep 17 00:00:00 2001 From: dsomero Date: Fri, 1 Apr 2011 22:15:08 -0400 Subject: [PATCH] multimedia/subtitlecomposer: Patched to build with gcc 4.5. Signed-off-by: dsomero --- .../subtitlecomposer-0.5.3-gcc45.patch | 15 +++++++++++++++ .../subtitlecomposer/subtitlecomposer.SlackBuild | 5 ++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 multimedia/subtitlecomposer/subtitlecomposer-0.5.3-gcc45.patch diff --git a/multimedia/subtitlecomposer/subtitlecomposer-0.5.3-gcc45.patch b/multimedia/subtitlecomposer/subtitlecomposer-0.5.3-gcc45.patch new file mode 100644 index 0000000000..4439071173 --- /dev/null +++ b/multimedia/subtitlecomposer/subtitlecomposer-0.5.3-gcc45.patch @@ -0,0 +1,15 @@ +Fix build with GCC-4.5 + +http://bugs.gentoo.org/show_bug.cgi?id=323055 + +--- src/core/sstring.cpp ++++ src/core/sstring.cpp +@@ -1112,7 +1112,7 @@ + append( str ); + } + +-SStringList::SStringList( const SStringList::SStringList& list ): ++SStringList::SStringList( const SStringList& list ): + QList( list ) + { + } diff --git a/multimedia/subtitlecomposer/subtitlecomposer.SlackBuild b/multimedia/subtitlecomposer/subtitlecomposer.SlackBuild index 4f6acc05e5..0c522eb954 100644 --- a/multimedia/subtitlecomposer/subtitlecomposer.SlackBuild +++ b/multimedia/subtitlecomposer/subtitlecomposer.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=subtitlecomposer VERSION=${VERSION:-0.5.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} # Automatically determine the architecture we're building on: @@ -53,6 +53,9 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Patch to build with gcc 4.5. +patch -p0 < $CWD/subtitlecomposer-0.5.3-gcc45.patch + cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \