summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/dvmysql')
-rw-r--r--dev-libs/dvmysql/dvmysql-0.4.7.ebuild9
-rw-r--r--dev-libs/dvmysql/files/gentoo-0.4.7.patch12
2 files changed, 20 insertions, 1 deletions
diff --git a/dev-libs/dvmysql/dvmysql-0.4.7.ebuild b/dev-libs/dvmysql/dvmysql-0.4.7.ebuild
index 122e31c67004..29ce7d1947c8 100644
--- a/dev-libs/dvmysql/dvmysql-0.4.7.ebuild
+++ b/dev-libs/dvmysql/dvmysql-0.4.7.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/dvmysql/dvmysql-0.4.7.ebuild,v 1.2 2003/03/13 10:01:16 pvdabeel Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/dvmysql/dvmysql-0.4.7.ebuild,v 1.3 2003/03/13 22:59:13 pvdabeel Exp $
+
+inherit eutils
A=dvmysql-${PV}.tar.gz
S=${WORKDIR}/dvmysql-${PV}
@@ -17,6 +19,11 @@ DEPEND="virtual/glibc
dev-libs/dvutil"
RDEPEND=${DEPEND}
+src_unpack() {
+ unpack ${A}
+ epatch ${FILESDIR}/gentoo-0.4.7.patch || die
+}
+
src_install() {
make prefix=${D}/usr install
}
diff --git a/dev-libs/dvmysql/files/gentoo-0.4.7.patch b/dev-libs/dvmysql/files/gentoo-0.4.7.patch
new file mode 100644
index 000000000000..db13739cef58
--- /dev/null
+++ b/dev-libs/dvmysql/files/gentoo-0.4.7.patch
@@ -0,0 +1,12 @@
+diff -urN ori/dvmysql/mysqldb.C dvmysql-0.4.7/dvmysql/mysqldb.C
+--- ori/dvmysql/mysqldb.C 2003-03-13 23:52:13.000000000 +0100
++++ dvmysql-0.4.7/dvmysql/mysqldb.C 2003-03-13 23:52:32.000000000 +0100
+@@ -262,7 +262,7 @@
+ Command_::check_error() {
+ static const char* OK = "ok";
+
+-char* errmsg = mysql_error(static_cast<MYSQL*>(db_.mysql_));
++const char* errmsg = mysql_error(static_cast<MYSQL*>(db_.mysql_));
+
+ if (errmsg&&(*errmsg!=0)) {
+ ok(false);