summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Alfredsen <loki_val@gentoo.org>2008-12-04 23:47:22 +0000
committerPeter Alfredsen <loki_val@gentoo.org>2008-12-04 23:47:22 +0000
commit49a2684513d7dadcb8de01b0ebc92b2436f86678 (patch)
tree686163310893f219436fd38fdeb36f447602c66b /media-sound/beast
parentAdd networkmanager-0.7.0. Thanks to robert.piasek@member.fsf.org for ebuild. ... (diff)
downloadgentoo-2-49a2684513d7dadcb8de01b0ebc92b2436f86678.tar.gz
gentoo-2-49a2684513d7dadcb8de01b0ebc92b2436f86678.tar.bz2
gentoo-2-49a2684513d7dadcb8de01b0ebc92b2436f86678.zip
Update gcc-4.3 patch to allow compilation with oldish compilers. Bug 249665. Thanks to Debian and their inexhaustable supply of ready-made patches.
(Portage version: 2.2_rc16/cvs/Linux 2.6.28-rc6 x86_64)
Diffstat (limited to 'media-sound/beast')
-rw-r--r--media-sound/beast/ChangeLog8
-rw-r--r--media-sound/beast/files/beast-0.7.1-gcc43.patch250
2 files changed, 134 insertions, 124 deletions
diff --git a/media-sound/beast/ChangeLog b/media-sound/beast/ChangeLog
index d838386572d5..a95ec2aaa3ee 100644
--- a/media-sound/beast/ChangeLog
+++ b/media-sound/beast/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-sound/beast
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/beast/ChangeLog,v 1.38 2008/11/02 14:59:30 loki_val Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/beast/ChangeLog,v 1.39 2008/12/04 23:47:14 loki_val Exp $
+
+ 04 Dec 2008; Peter Alfredsen <loki_val@gentoo.org>
+ files/beast-0.7.1-gcc43.patch:
+ Update gcc-4.3 patch to allow compilation with oldish compilers. Bug
+ 249665. Thanks to Debian and their inexhaustable supply of ready-made
+ patches.
02 Nov 2008; Peter Alfredsen <loki_val@gentoo.org>
+files/beast-0.7.1-gcc43.patch, beast-0.7.1-r1.ebuild:
diff --git a/media-sound/beast/files/beast-0.7.1-gcc43.patch b/media-sound/beast/files/beast-0.7.1-gcc43.patch
index fbe28d7b3fd4..67800060c3ce 100644
--- a/media-sound/beast/files/beast-0.7.1-gcc43.patch
+++ b/media-sound/beast/files/beast-0.7.1-gcc43.patch
@@ -1,5 +1,7 @@
---- beast-0.7.1.orig/bse/tests/resamplehandle.cc
-+++ beast-0.7.1/bse/tests/resamplehandle.cc
+Index: beast-0.7.1/bse/tests/resamplehandle.cc
+===================================================================
+--- beast-0.7.1.orig/bse/tests/resamplehandle.cc 2006-11-29 01:05:01.000000000 +0000
++++ beast-0.7.1/bse/tests/resamplehandle.cc 2008-03-24 14:10:47.000000000 +0000
@@ -24,6 +24,7 @@
#include <bse/gsldatautils.h>
#include <bse/bseblockutils.hh>
@@ -8,10 +10,10 @@
using std::vector;
using std::max;
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/bse/tests/firhandle.cc
-+++ beast-0.7.1/bse/tests/firhandle.cc
+Index: beast-0.7.1/bse/tests/firhandle.cc
+===================================================================
+--- beast-0.7.1.orig/bse/tests/firhandle.cc 2006-12-10 16:55:16.000000000 +0000
++++ beast-0.7.1/bse/tests/firhandle.cc 2008-03-24 14:10:47.000000000 +0000
@@ -26,6 +26,7 @@
#include <math.h>
#include <complex>
@@ -20,10 +22,10 @@ unchanged:
using std::vector;
using std::min;
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/bse/tests/filtertest.cc
-+++ beast-0.7.1/bse/tests/filtertest.cc
+Index: beast-0.7.1/bse/tests/filtertest.cc
+===================================================================
+--- beast-0.7.1.orig/bse/tests/filtertest.cc 2006-12-11 00:19:16.000000000 +0000
++++ beast-0.7.1/bse/tests/filtertest.cc 2008-03-24 14:10:47.000000000 +0000
@@ -26,6 +26,7 @@
#include "topconfig.h"
#include <math.h>
@@ -32,10 +34,10 @@ unchanged:
typedef std::complex<double> Complex;
using namespace Birnet;
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/bse/bseresamplerimpl.hh
-+++ beast-0.7.1/bse/bseresamplerimpl.hh
+Index: beast-0.7.1/bse/bseresamplerimpl.hh
+===================================================================
+--- beast-0.7.1.orig/bse/bseresamplerimpl.hh 2006-11-25 16:04:33.000000000 +0000
++++ beast-0.7.1/bse/bseresamplerimpl.hh 2008-03-24 14:10:47.000000000 +0000
@@ -23,6 +23,8 @@
#include <bse/bseresampler.hh>
#include <birnet/birnet.hh>
@@ -45,10 +47,10 @@ unchanged:
#ifdef __SSE__
#include <xmmintrin.h>
#endif
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/bse/bseprocidl.cc
-+++ beast-0.7.1/bse/bseprocidl.cc
+Index: beast-0.7.1/bse/bseprocidl.cc
+===================================================================
+--- beast-0.7.1.orig/bse/bseprocidl.cc 2006-11-25 16:04:31.000000000 +0000
++++ beast-0.7.1/bse/bseprocidl.cc 2008-03-24 14:10:47.000000000 +0000
@@ -24,6 +24,7 @@
#include <stdio.h>
#include <string>
@@ -57,81 +59,83 @@ unchanged:
std::set<std::string> needTypes;
std::set<std::string> needClasses;
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/bse/bsecxxplugin.hh
-+++ beast-0.7.1/bse/bsecxxplugin.hh
-@@ -56,7 +56,7 @@
+Index: beast-0.7.1/bse/bsecxxplugin.hh
+===================================================================
+--- beast-0.7.1.orig/bse/bsecxxplugin.hh 2006-11-27 00:34:30.000000000 +0000
++++ beast-0.7.1/bse/bsecxxplugin.hh 2008-03-24 14:32:56.000000000 +0000
+@@ -18,6 +18,14 @@
+ #ifndef __BSE_CXX_PLUGIN_H__
+ #define __BSE_CXX_PLUGIN_H__
+
++#define static_template static
++#if defined __GNUC__
++# if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3)
++# undef static_template
++# define static_template
++# endif
++#endif
++
+ #include <bse/bsecxxmodule.hh>
+ #include <bse/bseexports.h>
+ #include <bse/bseparam.h>
+@@ -56,7 +64,7 @@
#define BSE_CXX_REGISTER_STATIC_HOOK(HookType) BSE_CXX_REGISTER_HOOK_NODE (HookType, 1)
#define BSE_CXX_REGISTER_HOOK_NODE(HookType, __static) \
template<class E> static BseExportNode* bse_export_node (); \
- template<> static BseExportNode* \
-+ template<> BseExportNode* \
++ template<> static_template BseExportNode* \
bse_export_node<HookType> () \
{ \
static BseExportNodeHook hnode = { \
-@@ -91,7 +91,7 @@
+@@ -91,7 +99,7 @@
(::NameSpace::bse_type_keeper__3##EnumType.get_type ())
#define BSE_CXX_DECLARE_ENUM(EnumType,EnumName,N,ICode) \
template<class E> static BseExportNode* bse_export_node (); \
- template<> static BseExportNode* \
-+ template<> BseExportNode* \
++ template<> static_template BseExportNode* \
bse_export_node<EnumType> () \
{ \
static BseExportNodeEnum enode = { \
-@@ -145,7 +145,7 @@
+@@ -145,7 +153,7 @@
(::NameSpace::bse_type_keeper__1##RecordType.get_type ())
#define BSE_CXX_DECLARE_RECORD(RecordType) \
template<class E> static BseExportNode* bse_export_node (); \
- template<> static BseExportNode* \
-+ template<> BseExportNode* \
++ template<> static_template BseExportNode* \
bse_export_node<RecordType> () \
{ \
static BseExportNodeBoxed bnode = { \
-@@ -181,7 +181,7 @@
+@@ -181,7 +189,7 @@
(::NameSpace::bse_type_keeper__2##SequenceType.get_type ())
#define BSE_CXX_DECLARE_SEQUENCE(SequenceType) \
template<class E> static BseExportNode* bse_export_node (); \
- template<> static BseExportNode* \
-+ template<> BseExportNode* \
++ template<> static_template BseExportNode* \
bse_export_node<SequenceType> () \
{ \
static BseExportNodeBoxed bnode = { \
-@@ -219,7 +219,7 @@
+@@ -219,7 +227,7 @@
extern ::Bse::ExportTypeKeeper bse_type_keeper__9##ProcType;
#define BSE_CXX_REGISTER_PROCEDURE(ProcType) \
template<class C> static ::BseExportNode* bse_export_node (); \
- template<> static ::BseExportNode* \
-+ template<> ::BseExportNode* \
++ template<> static_template ::BseExportNode* \
bse_export_node<Procedure::ProcType> () \
{ \
static ::BseExportNodeProc pnode = { \
-@@ -259,7 +259,7 @@
+@@ -259,7 +267,7 @@
#define BSE_CXX_REGISTER_EFFECT(Effect) \
BSE_CXX_DEFINE_STATIC_DATA (Effect##Base); \
template<class C> static ::BseExportNode* bse_export_node (); \
- template<> static ::BseExportNode* \
-+ template<> ::BseExportNode* \
++ template<> static_template ::BseExportNode* \
bse_export_node<Effect> () \
{ \
static ::BseExportNodeClass cnode = { \
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/bse/Makefile.in
-+++ beast-0.7.1/bse/Makefile.in
-@@ -422,7 +422,7 @@
- # need -I$(srcdir) for "bseserver.h" in .genprc.c
- # need -I. (builddir) for "bsecore.genidl.hh" in bsecore.cc
- INCLUDES = -I$(top_srcdir) -I$(top_builddir) -I$(srcdir) -I. \
-- $(BSE_CFLAGS) -DG_DISABLE_DEPRECATED -DG_DISABLE_CONST_RETURNS
-+ $(BSE_CFLAGS) -DG_DISABLE_CONST_RETURNS
- EXTRA_HEADERS =
- MAINTAINERCLEANFILES = $(GENERATED) $(am__append_2)
- # -Wl,-Bsymbolic
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/bse/bseloader-guspatch.cc
-+++ beast-0.7.1/bse/bseloader-guspatch.cc
+Index: beast-0.7.1/bse/bseloader-guspatch.cc
+===================================================================
+--- beast-0.7.1.orig/bse/bseloader-guspatch.cc 2006-11-25 16:04:31.000000000 +0000
++++ beast-0.7.1/bse/bseloader-guspatch.cc 2008-03-24 14:10:47.000000000 +0000
@@ -22,6 +22,7 @@
#include <errno.h>
#include <vector>
@@ -140,10 +144,10 @@ unchanged:
#undef WITH_GUSPATCH_XINFOS
static SFI_MSG_TYPE_DEFINE (debug_guspatch, "guspatch", SFI_MSG_DEBUG, NULL);
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/bse/bsesequencer.cc
-+++ beast-0.7.1/bse/bsesequencer.cc
+Index: beast-0.7.1/bse/bsesequencer.cc
+===================================================================
+--- beast-0.7.1.orig/bse/bsesequencer.cc 2006-12-26 21:41:25.000000000 +0000
++++ beast-0.7.1/bse/bsesequencer.cc 2008-03-24 14:10:47.000000000 +0000
@@ -30,6 +30,7 @@
#include <fcntl.h>
#include <errno.h>
@@ -152,10 +156,10 @@ unchanged:
/* due to a linker/compiler bug on SuSE 9.2, we need to
* define extern "C" symbols outside of any C++ namespace,
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/sfi/sfidl-cxxbase.cc
-+++ beast-0.7.1/sfi/sfidl-cxxbase.cc
+Index: beast-0.7.1/sfi/sfidl-cxxbase.cc
+===================================================================
+--- beast-0.7.1.orig/sfi/sfidl-cxxbase.cc 2005-03-07 06:23:55.000000000 +0000
++++ beast-0.7.1/sfi/sfidl-cxxbase.cc 2008-03-24 14:10:47.000000000 +0000
@@ -23,6 +23,7 @@
#include <unistd.h>
#include <errno.h>
@@ -164,10 +168,10 @@ unchanged:
#include "sfidl-namespace.hh"
#include "sfidl-options.hh"
#include "sfidl-parser.hh"
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/sfi/sfidl-namespace.cc
-+++ beast-0.7.1/sfi/sfidl-namespace.cc
+Index: beast-0.7.1/sfi/sfidl-namespace.cc
+===================================================================
+--- beast-0.7.1.orig/sfi/sfidl-namespace.cc 2005-03-07 06:23:55.000000000 +0000
++++ beast-0.7.1/sfi/sfidl-namespace.cc 2008-03-24 14:10:47.000000000 +0000
@@ -21,6 +21,7 @@
#include <list>
#include <string>
@@ -176,10 +180,10 @@ unchanged:
#include "sfidl-namespace.hh"
#include <sfi/glib-extra.h>
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/sfi/sfidl-options.cc
-+++ beast-0.7.1/sfi/sfidl-options.cc
+Index: beast-0.7.1/sfi/sfidl-options.cc
+===================================================================
+--- beast-0.7.1.orig/sfi/sfidl-options.cc 2005-03-07 06:23:55.000000000 +0000
++++ beast-0.7.1/sfi/sfidl-options.cc 2008-03-24 14:10:47.000000000 +0000
@@ -22,6 +22,7 @@
#include "topconfig.h"
#include <sfi/glib-extra.h>
@@ -188,10 +192,10 @@ unchanged:
/* FIXME: should be filled out and written into topconfig.h by configure */
#define SFIDL_VERSION BST_VERSION
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/sfi/sficxx.hh
-+++ beast-0.7.1/sfi/sficxx.hh
+Index: beast-0.7.1/sfi/sficxx.hh
+===================================================================
+--- beast-0.7.1.orig/sfi/sficxx.hh 2006-10-05 10:21:50.000000000 +0000
++++ beast-0.7.1/sfi/sficxx.hh 2008-03-24 14:10:47.000000000 +0000
@@ -23,6 +23,7 @@
#include <sfi/sfi.h>
#include <string>
@@ -200,10 +204,10 @@ unchanged:
namespace Sfi {
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/sfi/sfidl-factory.cc
-+++ beast-0.7.1/sfi/sfidl-factory.cc
+Index: beast-0.7.1/sfi/sfidl-factory.cc
+===================================================================
+--- beast-0.7.1.orig/sfi/sfidl-factory.cc 2005-03-07 06:23:55.000000000 +0000
++++ beast-0.7.1/sfi/sfidl-factory.cc 2008-03-24 14:10:47.000000000 +0000
@@ -18,6 +18,7 @@
*/
#include "sfidl-factory.hh"
@@ -212,10 +216,10 @@ unchanged:
using namespace Sfidl;
using namespace std;
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/sfi/sfidl-parser.cc
-+++ beast-0.7.1/sfi/sfidl-parser.cc
+Index: beast-0.7.1/sfi/sfidl-parser.cc
+===================================================================
+--- beast-0.7.1.orig/sfi/sfidl-parser.cc 2006-11-14 22:51:36.000000000 +0000
++++ beast-0.7.1/sfi/sfidl-parser.cc 2008-03-24 14:10:47.000000000 +0000
@@ -27,6 +27,9 @@
#include <iostream>
#include <set>
@@ -226,10 +230,10 @@ unchanged:
const std::string
Sfidl::string_from_int (long long int lli)
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/tests/bse/filtertest.cc
-+++ beast-0.7.1/tests/bse/filtertest.cc
+Index: beast-0.7.1/tests/bse/filtertest.cc
+===================================================================
+--- beast-0.7.1.orig/tests/bse/filtertest.cc 2006-12-04 00:01:08.000000000 +0000
++++ beast-0.7.1/tests/bse/filtertest.cc 2008-03-24 14:10:47.000000000 +0000
@@ -28,6 +28,7 @@
#include <birnet/birnettests.h>
#include "topconfig.h"
@@ -238,10 +242,10 @@ unchanged:
using std::string;
using std::vector;
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/tools/bsewavetool.cc
-+++ beast-0.7.1/tools/bsewavetool.cc
+Index: beast-0.7.1/tools/bsewavetool.cc
+===================================================================
+--- beast-0.7.1.orig/tools/bsewavetool.cc 2006-12-11 19:00:07.000000000 +0000
++++ beast-0.7.1/tools/bsewavetool.cc 2008-03-24 14:10:47.000000000 +0000
@@ -34,6 +34,7 @@
#include <fcntl.h>
#include <vector>
@@ -250,10 +254,10 @@ unchanged:
namespace BseWaveTool {
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/tools/bsefcompare.cc
-+++ beast-0.7.1/tools/bsefcompare.cc
+Index: beast-0.7.1/tools/bsefcompare.cc
+===================================================================
+--- beast-0.7.1.orig/tools/bsefcompare.cc 2006-12-04 00:01:06.000000000 +0000
++++ beast-0.7.1/tools/bsefcompare.cc 2008-03-24 14:10:47.000000000 +0000
@@ -28,6 +28,7 @@
#include <sys/types.h>
#include <sys/stat.h>
@@ -262,10 +266,10 @@ unchanged:
#include "topconfig.h"
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/tools/bsefextract.cc
-+++ beast-0.7.1/tools/bsefextract.cc
+Index: beast-0.7.1/tools/bsefextract.cc
+===================================================================
+--- beast-0.7.1.orig/tools/bsefextract.cc 2006-11-05 02:21:30.000000000 +0000
++++ beast-0.7.1/tools/bsefextract.cc 2008-03-24 14:10:47.000000000 +0000
@@ -27,6 +27,8 @@
#include <errno.h>
#include <assert.h>
@@ -275,10 +279,10 @@ unchanged:
#include <map>
#include <string>
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/birnet/tests/sorting.cc
-+++ beast-0.7.1/birnet/tests/sorting.cc
+Index: beast-0.7.1/birnet/tests/sorting.cc
+===================================================================
+--- beast-0.7.1.orig/birnet/tests/sorting.cc 2006-10-21 15:13:41.000000000 +0000
++++ beast-0.7.1/birnet/tests/sorting.cc 2008-03-24 14:10:47.000000000 +0000
@@ -19,6 +19,8 @@
// #define TEST_VERBOSE
#include <birnet/birnettests.h>
@@ -288,10 +292,10 @@ unchanged:
namespace {
using namespace Birnet;
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/birnet/tests/strings.cc
-+++ beast-0.7.1/birnet/tests/strings.cc
+Index: beast-0.7.1/birnet/tests/strings.cc
+===================================================================
+--- beast-0.7.1.orig/birnet/tests/strings.cc 2006-12-18 17:58:23.000000000 +0000
++++ beast-0.7.1/birnet/tests/strings.cc 2008-03-24 14:10:47.000000000 +0000
@@ -18,6 +18,7 @@
*/
//#define TEST_VERBOSE
@@ -300,10 +304,10 @@ unchanged:
using namespace Birnet;
namespace {
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/birnet/tests/threads.cc
-+++ beast-0.7.1/birnet/tests/threads.cc
+Index: beast-0.7.1/birnet/tests/threads.cc
+===================================================================
+--- beast-0.7.1.orig/birnet/tests/threads.cc 2006-10-21 15:12:11.000000000 +0000
++++ beast-0.7.1/birnet/tests/threads.cc 2008-03-24 14:10:47.000000000 +0000
@@ -18,6 +18,7 @@
*/
//#define TEST_VERBOSE
@@ -312,10 +316,10 @@ unchanged:
namespace {
using namespace Birnet;
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/birnet/birnetutils.cc
-+++ beast-0.7.1/birnet/birnetutils.cc
+Index: beast-0.7.1/birnet/birnetutils.cc
+===================================================================
+--- beast-0.7.1.orig/birnet/birnetutils.cc 2006-12-18 17:58:24.000000000 +0000
++++ beast-0.7.1/birnet/birnetutils.cc 2008-03-24 14:10:47.000000000 +0000
@@ -31,6 +31,7 @@
#include <algorithm>
#include <cxxabi.h>
@@ -324,10 +328,10 @@ unchanged:
#ifndef _
#define _(s) s
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/birnet/birnetsignal.hh
-+++ beast-0.7.1/birnet/birnetsignal.hh
+Index: beast-0.7.1/birnet/birnetsignal.hh
+===================================================================
+--- beast-0.7.1.orig/birnet/birnetsignal.hh 2006-10-06 21:57:38.000000000 +0000
++++ beast-0.7.1/birnet/birnetsignal.hh 2008-03-24 14:10:47.000000000 +0000
@@ -435,7 +435,7 @@
/* --- predefined signals --- */
template<class Emitter>
@@ -346,10 +350,10 @@ unchanged:
explicit SignalVoid (Emitter &emitter) : Signal0 (emitter) {}
explicit SignalVoid (Emitter &emitter, void (Emitter::*method) (void)) : Signal0 (emitter, method) {}
BIRNET_PRIVATE_CLASS_COPY (SignalVoid);
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/birnet/birnetmsg.cc
-+++ beast-0.7.1/birnet/birnetmsg.cc
+Index: beast-0.7.1/birnet/birnetmsg.cc
+===================================================================
+--- beast-0.7.1.orig/birnet/birnetmsg.cc 2006-11-21 01:31:27.000000000 +0000
++++ beast-0.7.1/birnet/birnetmsg.cc 2008-03-24 14:10:47.000000000 +0000
@@ -21,6 +21,7 @@
#include "birnetthread.hh"
#include <syslog.h>
@@ -358,10 +362,10 @@ unchanged:
#ifndef _ // FIXME
#define _(x) (x)
-only in patch2:
-unchanged:
---- beast-0.7.1.orig/birnet/birnetsignaltemplate.hh
-+++ beast-0.7.1/birnet/birnetsignaltemplate.hh
+Index: beast-0.7.1/birnet/birnetsignaltemplate.hh
+===================================================================
+--- beast-0.7.1.orig/birnet/birnetsignaltemplate.hh 2006-10-03 23:12:43.000000000 +0000
++++ beast-0.7.1/birnet/birnetsignaltemplate.hh 2008-03-24 14:10:47.000000000 +0000
@@ -165,7 +165,7 @@
template<class Emitter, typename R0, typename A1, typename A2, typename A3, class Collector>
struct Signal<Emitter, R0 (A1, A2, A3), Collector> : Signal3<Emitter, R0, A1, A2, A3, Collector>