Fixed config for sparc's due to a bdb bug
authorMichael Cummings <mcummings@gentoo.org>
Tue, 15 Oct 2002 14:34:33 +0000 (14:34 +0000)
committerMichael Cummings <mcummings@gentoo.org>
Tue, 15 Oct 2002 14:34:33 +0000 (14:34 +0000)
dev-db/mysql/ChangeLog
dev-db/mysql/mysql-3.23.52-r1.ebuild

index ad26dea33dc969cbe64157ffeaa4e07fc0f2c89e..023529bd4f0ceb26b0e597ba189a36c6e1d21a92 100644 (file)
@@ -1,9 +1,14 @@
 # ChangeLog for dev-db/mysql
 # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.16 2002/09/29 22:34:20 rphillips Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/ChangeLog,v 1.17 2002/10/15 14:34:33 mcummings Exp $
 
 *mysql-3.23.52-r1 (29 Sep 2002)
 
+  15 Oct 2002; <mcummings@datanode.net> mysql-3.23.52-r1.ebuild :
+
+  Changed the BDB check due to a bug in BDB on sparc's. See notes in ebuild
+  for reference URL.
+
   29 Sep 2002; Ryan Phillips <rphillips@gentoo.org> mysql-3.23.52-r1.ebuild :
 
   Added thread-safe client support... MyODBC package needs this flag compiled
index 032157dfd15699794b692e7df351d47af764b517..75c3af848b66fc2e62f0cda89d581ccd550b9a17 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-3.23.52-r1.ebuild,v 1.4 2002/10/05 05:39:10 drobbins Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-3.23.52-r1.ebuild,v 1.5 2002/10/15 14:34:33 mcummings Exp $
 
 IUSE="static readline innodb berkdb tcpd"
 
@@ -50,8 +50,14 @@ src_unpack() {
 src_compile() {
        local myconf
        myconf="--with-thread-safe-client"
-       use berkdb && myconf="${myconf} --with-berkeley-db=./bdb"
-       use berkdb || myconf="${myconf} --without-berkeley-db"
+# The following fix is due to a bug with bdb on sparc's. See: 
+# http://www.geocrawler.com/mail/msg.php3?msg_id=4754814&list=8
+       if [ use sparc || use sparc64 ] ; then
+         myconf="${myconf} --without-berkeley-db"
+       else
+         use berkdb && myconf="${myconf} --with-berkeley-db=./bdb" \
+          || myconf="${myconf} --without-berkeley-db"
+       fi
        use readline && myconf="${myconf} --with-readline"
        use readline || myconf="${myconf} --without-readline"
        use static && myconf="${myconf} --with-mysqld-ldflags=-all-static --disable-shared"