summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Wegener <swegener@gentoo.org>2008-06-09 21:07:50 +0000
committerSven Wegener <swegener@gentoo.org>2008-06-09 21:07:50 +0000
commit86fa993af4aa29b85fb80e1a6319ab89aa97d379 (patch)
tree4210d727a52f50715572301123d93d400ad173d2 /dev-db/mysql-gui-tools
parentstable on sparc, bug #225399 (diff)
downloadgentoo-2-86fa993af4aa29b85fb80e1a6319ab89aa97d379.tar.gz
gentoo-2-86fa993af4aa29b85fb80e1a6319ab89aa97d379.tar.bz2
gentoo-2-86fa993af4aa29b85fb80e1a6319ab89aa97d379.zip
Add compability with gcc-4.3.
(Portage version: 2.1.5.4)
Diffstat (limited to 'dev-db/mysql-gui-tools')
-rw-r--r--dev-db/mysql-gui-tools/ChangeLog7
-rw-r--r--dev-db/mysql-gui-tools/files/mysql-gui-tools-5.0_p12-gcc-4.3.patch36
-rw-r--r--dev-db/mysql-gui-tools/mysql-gui-tools-5.0_p12-r2.ebuild6
3 files changed, 47 insertions, 2 deletions
diff --git a/dev-db/mysql-gui-tools/ChangeLog b/dev-db/mysql-gui-tools/ChangeLog
index 30a4eb7269f1..457357fd8958 100644
--- a/dev-db/mysql-gui-tools/ChangeLog
+++ b/dev-db/mysql-gui-tools/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-db/mysql-gui-tools
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-gui-tools/ChangeLog,v 1.24 2008/04/11 18:38:28 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-gui-tools/ChangeLog,v 1.25 2008/06/09 21:07:49 swegener Exp $
+
+ 09 Jun 2008; Sven Wegener <swegener@gentoo.org>
+ +files/mysql-gui-tools-5.0_p12-gcc-4.3.patch,
+ mysql-gui-tools-5.0_p12-r2.ebuild:
+ Add compability with gcc-4.3.
11 Apr 2008; Sven Wegener <swegener@gentoo.org>
+files/mysql-gui-tools-5.0_p12-libsigc++-2.2.patch,
diff --git a/dev-db/mysql-gui-tools/files/mysql-gui-tools-5.0_p12-gcc-4.3.patch b/dev-db/mysql-gui-tools/files/mysql-gui-tools-5.0_p12-gcc-4.3.patch
new file mode 100644
index 000000000000..fcd7bb352c7d
--- /dev/null
+++ b/dev-db/mysql-gui-tools/files/mysql-gui-tools-5.0_p12-gcc-4.3.patch
@@ -0,0 +1,36 @@
+Index: mysql-gui-common/source/linux/MGFileBrowserList.cc
+===================================================================
+--- mysql-gui-common/source/linux/MGFileBrowserList.cc (revision 2059)
++++ mysql-gui-common/source/linux/MGFileBrowserList.cc (working copy)
+@@ -20,6 +20,7 @@
+ #include <unistd.h>
+ #include <sys/stat.h>
+ #include <errno.h>
++#include <string.h>
+ #include <stdio.h> /* rename() in FreeBSD */
+
+
+Index: mysql-gui-common/source/linux/MGHMeterGraphPlotter.cc
+===================================================================
+--- mysql-gui-common/source/linux/MGHMeterGraphPlotter.cc (revision 2059)
++++ mysql-gui-common/source/linux/MGHMeterGraphPlotter.cc (working copy)
+@@ -16,6 +16,7 @@
+
+
+ #include "MGHMeterGraphPlotter.h"
++#include <string.h>
+
+
+
+Index: mysql-query-browser/source/linux/MGCodeEditor.cc
+===================================================================
+--- mysql-query-browser/source/linux/MGCodeEditor.cc (revision 476)
++++ mysql-query-browser/source/linux/MGCodeEditor.cc (working copy)
+@@ -16,6 +16,7 @@
+
+ #include "MGCodeEditor.h"
+
++#include <string.h>
+ #include <gtksourceview/gtksourcelanguagesmanager.h>
+
+
diff --git a/dev-db/mysql-gui-tools/mysql-gui-tools-5.0_p12-r2.ebuild b/dev-db/mysql-gui-tools/mysql-gui-tools-5.0_p12-r2.ebuild
index c73d908b2be1..dcdc98188219 100644
--- a/dev-db/mysql-gui-tools/mysql-gui-tools-5.0_p12-r2.ebuild
+++ b/dev-db/mysql-gui-tools/mysql-gui-tools-5.0_p12-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-gui-tools/mysql-gui-tools-5.0_p12-r2.ebuild,v 1.3 2008/04/11 18:38:28 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql-gui-tools/mysql-gui-tools-5.0_p12-r2.ebuild,v 1.4 2008/06/09 21:07:49 swegener Exp $
GCONF_DEBUG="no"
@@ -53,6 +53,9 @@ pkg_setup() {
elog "- workbench for MySQL Workbench"
die "Please activate at least one of the following USE flags: administrator, query-browser, workbench"
fi
+
+ # Needed for gcc-4.3
+ append-cppflags -D_GNU_SOURCE
}
src_unpack() {
@@ -64,6 +67,7 @@ src_unpack() {
epatch "${FILESDIR}"/${P}-workbench-lua.patch
epatch "${FILESDIR}"/${P}-query-browser-sps.patch
epatch "${FILESDIR}"/${P}-libsigc++-2.2.patch
+ epatch "${FILESDIR}"/${P}-gcc-4.3.patch
sed -i \
-e "s/\\(^\\|[[:space:]]\\)-ltermcap\\($\\|[[:space:]]\\)/ /g" \