add multilib aware ebuilds
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@2784 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
225
dev-db/libdbi-drivers/ChangeLog
Normal file
225
dev-db/libdbi-drivers/ChangeLog
Normal file
@@ -0,0 +1,225 @@
|
||||
# ChangeLog for dev-db/libdbi-drivers
|
||||
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/ChangeLog,v 1.51 2010/09/28 17:22:52 robbat2 Exp $
|
||||
|
||||
*libdbi-drivers-0.8.3-r2 (28 Sep 2010)
|
||||
|
||||
28 Sep 2010; Robin H. Johnson <robbat2@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r1.ebuild, libdbi-drivers-0.8.1-r2.ebuild,
|
||||
libdbi-drivers-0.8.3.ebuild, libdbi-drivers-0.8.3-r1.ebuild,
|
||||
+libdbi-drivers-0.8.3-r2.ebuild:
|
||||
Bug #329033: postgres virtual migration converted this to depending on
|
||||
-server instead of -base. Fix up, with a revbump also redoing RDEPEND vs
|
||||
DEPEND.
|
||||
|
||||
17 Jun 2010; Patrick Lauer <patrick@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r1.ebuild, libdbi-drivers-0.8.1-r2.ebuild,
|
||||
libdbi-drivers-0.8.3.ebuild, libdbi-drivers-0.8.3-r1.ebuild:
|
||||
Migrating away from deprecated postgres virtuals
|
||||
|
||||
*libdbi-drivers-0.8.3-r1 (26 Oct 2009)
|
||||
|
||||
26 Oct 2009; Robin H. Johnson <robbat2@gentoo.org>
|
||||
libdbi-drivers-0.8.3.ebuild, +libdbi-drivers-0.8.3-r1.ebuild,
|
||||
+files/libdbi-drivers-0.8.3-firebird-fix.patch,
|
||||
+files/libdbi-drivers-0.8.3-oracle-build-fix.patch:
|
||||
Bug #289519: Fixup for Firebird compile. Bug #256411: Fix for Oracle
|
||||
compile. Bug #254851: USE-default for tinderbox build.
|
||||
|
||||
24 Feb 2009; Raúl Porcel <armin76@gentoo.org>
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
arm/s390/sh stable
|
||||
|
||||
07 Feb 2009; Raúl Porcel <armin76@gentoo.org>
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
Add ~arm/~s390/~sh
|
||||
|
||||
25 Jan 2009; Markus Meier <maekke@gentoo.org> libdbi-drivers-0.8.3.ebuild:
|
||||
amd64 stable, bug #253663
|
||||
|
||||
25 Jan 2009; Ferris McCormick <fmccor@gentoo.org>
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
Sparc stable, related to Bug #256132.
|
||||
|
||||
25 Jan 2009; Brent Baude <ranger@gentoo.org> libdbi-drivers-0.8.3.ebuild:
|
||||
Marking libdbi-drivers-0.8.3 ppc64 for bug 256132
|
||||
|
||||
20 Jan 2009; Alexis Ballier <aballier@gentoo.org>
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
keyword ~x86-fbsd
|
||||
|
||||
11 Jan 2009; Markus Meier <maekke@gentoo.org> libdbi-drivers-0.8.3.ebuild:
|
||||
x86 stable, bug #253663
|
||||
|
||||
09 Jan 2009; Brent Baude <ranger@gentoo.org> libdbi-drivers-0.8.3.ebuild:
|
||||
Marking libdbi-drivers-0.8.3 ppc for bug 253663
|
||||
|
||||
05 Jan 2009; Jeroen Roovers <jer@gentoo.org> libdbi-drivers-0.8.3.ebuild:
|
||||
Stable for HPPA (bug #253663).
|
||||
|
||||
16 Dec 2008; Peter Volkov <pva@gentoo.org> libdbi-drivers-0.8.3.ebuild:
|
||||
~mips keyworded for dictd, bug #245413
|
||||
|
||||
01 Dec 2008; Brent Baude <ranger@gentoo.org> libdbi-drivers-0.8.3.ebuild:
|
||||
Marking libdbi-drivers-0.8.3 ~ppc64 for bug 244246
|
||||
|
||||
14 Nov 2008; Raúl Porcel <armin76@gentoo.org>
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
ia64 stable wrt #244246
|
||||
|
||||
09 Nov 2008; Tobias Klausmann <klausman@gentoo.org>
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
Stable on alpha, bug #244246
|
||||
|
||||
09 Nov 2008; Raúl Porcel <armin76@gentoo.org>
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
Add ~alpha/~ia64 wrt #245413
|
||||
|
||||
03 Nov 2008; Ferris McCormick <fmccor@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r2.ebuild:
|
||||
Sparc stable, related to Bug #245413 and to Bug #244246.
|
||||
|
||||
28 Oct 2008; Jeroen Roovers <jer@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r2.ebuild:
|
||||
Stable for HPPA (bug #240974).
|
||||
|
||||
16 Oct 2008; Markus Meier <maekke@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r2.ebuild:
|
||||
amd64/x86 stable, bug #240974
|
||||
|
||||
14 Oct 2008; Robin H. Johnson <robbat2@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r1.ebuild, libdbi-drivers-0.8.1-r2.ebuild,
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
Disable interactive tests better.
|
||||
|
||||
12 Oct 2008; nixnut <nixnut@gentoo.org> libdbi-drivers-0.8.1-r2.ebuild:
|
||||
Stable on ppc wrt bug 240974
|
||||
|
||||
10 Oct 2008; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+files/libdbi-drivers-0.8.3-doc-build-fix.patch,
|
||||
libdbi-drivers-0.8.3.ebuild:
|
||||
Make documentation build properly optional instead of dependant on system
|
||||
contents.
|
||||
|
||||
29 Sep 2008; Robin H. Johnson <robbat2@gentoo.org>
|
||||
-libdbi-drivers-0.7.1.ebuild, -libdbi-drivers-0.7.1-r1.ebuild,
|
||||
-libdbi-drivers-0.8.0.ebuild, -libdbi-drivers-0.8.1.ebuild,
|
||||
libdbi-drivers-0.8.1-r1.ebuild:
|
||||
Cleanup old ebuilds and repoman warnings.
|
||||
|
||||
*libdbi-drivers-0.8.3 (29 Sep 2008)
|
||||
|
||||
29 Sep 2008; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+libdbi-drivers-0.8.3.ebuild:
|
||||
Version bump per bug #237993.
|
||||
|
||||
21 May 2008; Tiziano Müller <dev-zero@gentoo.org>
|
||||
libdbi-drivers-0.7.1-r1.ebuild, libdbi-drivers-0.8.0.ebuild,
|
||||
libdbi-drivers-0.8.1.ebuild, libdbi-drivers-0.8.1-r1.ebuild,
|
||||
libdbi-drivers-0.8.1-r2.ebuild:
|
||||
Changed dependency for postgresql from dev-db/postgresql to
|
||||
virtual/postgresql-server
|
||||
|
||||
*libdbi-drivers-0.8.1-r2 (26 Nov 2007)
|
||||
|
||||
26 Nov 2007; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+libdbi-drivers-0.8.1-r2.ebuild:
|
||||
Block USE=firebird when USE=bindist is in play, per bug #200284 for license
|
||||
conflicts.
|
||||
|
||||
20 Jun 2007; Christian Faulhammer <opfer@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r1.ebuild:
|
||||
stable x86, bug 181579
|
||||
|
||||
15 Jun 2007; Christoph Mende <angelos@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r1.ebuild:
|
||||
Stable on amd64 wrt bug 181579
|
||||
|
||||
23 Nov 2006; Francesco Riosa <vivo@gentoo.org>
|
||||
libdbi-drivers-0.7.1-r1.ebuild, libdbi-drivers-0.8.0.ebuild,
|
||||
libdbi-drivers-0.8.1.ebuild, libdbi-drivers-0.8.1-r1.ebuild:
|
||||
dev-db/mysql => virtual/mysql
|
||||
|
||||
17 Sep 2006; Tobias Scherbaum <dertobi123@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r1.ebuild:
|
||||
ppc stable
|
||||
|
||||
16 Sep 2006; Robin H. Johnson <robbat2@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r1.ebuild:
|
||||
Bug #147808, inherit eutils.
|
||||
|
||||
11 Jun 2006; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+files/libdbi-drivers-0.8.1-oci8.diff, libdbi-drivers-0.8.1-r1.ebuild:
|
||||
Bug #134918 - Compile fix for oci8 driver.
|
||||
|
||||
24 Mar 2006; Joseph Jezak <josejx@gentoo.org>
|
||||
libdbi-drivers-0.7.1-r1.ebuild:
|
||||
Marked ppc stable.
|
||||
|
||||
07 Mar 2006; Jeroen Roovers <jer@gentoo.org>
|
||||
libdbi-drivers-0.8.1-r1.ebuild:
|
||||
Stable on hppa.
|
||||
|
||||
*libdbi-drivers-0.8.1-r1 (25 Feb 2006)
|
||||
|
||||
25 Feb 2006; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+libdbi-drivers-0.8.1-r1.ebuild:
|
||||
Bug #104601, sqlite3 support is now controlled by a seperate use flag.
|
||||
|
||||
25 Feb 2006; Robin H. Johnson <robbat2@gentoo.org>
|
||||
libdbi-drivers-0.8.0.ebuild, libdbi-drivers-0.8.1.ebuild:
|
||||
Bug 123943, IUSE cleanup.
|
||||
|
||||
*libdbi-drivers-0.8.1 (16 Feb 2006)
|
||||
|
||||
16 Feb 2006; Karol Wojtaszek <sekretarz@gentoo.org>
|
||||
+libdbi-drivers-0.8.1.ebuild:
|
||||
Version bump
|
||||
|
||||
26 Jan 2006; Patrick McLean <chutzpah@gentoo.org>
|
||||
libdbi-drivers-0.7.1-r1.ebuild:
|
||||
Stable on amd64.
|
||||
|
||||
04 Jan 2006; Jeroen Roovers <jer@gentoo.org> libdbi-drivers-0.8.0.ebuild:
|
||||
Marked ~hppa (bug #105447).
|
||||
|
||||
13 Nov 2005; Jason Wever <weeve@gentoo.org> libdbi-drivers-0.8.0.ebuild:
|
||||
Added ~sparc keyword wrt bug #105447.
|
||||
|
||||
04 Sep 2005; Robin H. Johnson <robbat2@gentoo.org>
|
||||
libdbi-drivers-0.8.0.ebuild:
|
||||
Bug #104601 again. Make libdbi-drivers bring in both slots of sqlite.
|
||||
|
||||
*libdbi-drivers-0.8.0 (03 Sep 2005)
|
||||
|
||||
03 Sep 2005; Robin H. Johnson <robbat2@gentoo.org>
|
||||
+libdbi-drivers-0.8.0.ebuild:
|
||||
Version bump, bug #104601.
|
||||
|
||||
30 Aug 2005; Robin H. Johnson <robbat2@gentoo.org>
|
||||
libdbi-drivers-0.7.1-r1.ebuild:
|
||||
Stable on x86.
|
||||
|
||||
*libdbi-drivers-0.7.1-r1 (27 Mar 2005)
|
||||
|
||||
27 Mar 2005; Robin H. Johnson <robbat2@gentoo.org> +metadata.xml,
|
||||
+libdbi-drivers-0.7.1-r1.ebuild:
|
||||
Bug #86514, fix DEPEND. Also add metadata.
|
||||
|
||||
28 Feb 2005; Christian Parpart <trapni@gentoo.org>
|
||||
libdbi-drivers-0.7.1.ebuild:
|
||||
adding to ~amd64
|
||||
|
||||
26 Apr 2004; Aron Griffis <agriffis@gentoo.org> libdbi-drivers-0.7.1.ebuild:
|
||||
Add die following econf for bug 48950
|
||||
|
||||
25 Mar 2004; David Holm <dholm@gentoo.org> libdbi-drivers-0.7.1.ebuild:
|
||||
Added to ~ppc.
|
||||
|
||||
*libdbi-drivers-0.7.1 (24 Mar 2004)
|
||||
|
||||
24 Mar 2004; Robin H. Johnson <robbat2@gentoo.org>
|
||||
libdbi-drivers-0.7.1.ebuild:
|
||||
Initial commit. Original ebuild submitted by Max <m.e.bruche@lse.ac.uk>. Bug
|
||||
#45153.
|
||||
|
||||
8
dev-db/libdbi-drivers/Manifest
Normal file
8
dev-db/libdbi-drivers/Manifest
Normal file
@@ -0,0 +1,8 @@
|
||||
AUX libdbi-drivers-0.8.1-oci8.diff 695 RMD160 5431c6888dc5b703d91343f4f3d3be6f4e6e1c9d SHA1 68599f1c5d3c9e0c2c970f40574a2f9055dac9dc SHA256 23a2c8819f9f80548f2c933278c844d03dec35e8500883f25ab4b7d5f4b7c523
|
||||
AUX libdbi-drivers-0.8.3-doc-build-fix.patch 566 RMD160 42a6e40d92dd878e66cb2f5087af463d463ab09d SHA1 c3a62be19e77d9bdd253eefb9ee7f8d69f375d95 SHA256 ef18cdb0e5338d29bcdbbf9839bd64283d067bfe3eed3d4af3eb58fa29a316ec
|
||||
AUX libdbi-drivers-0.8.3-firebird-fix.patch 1374 RMD160 d1f668148ef988f48d80d6d25dd7f84b3698d62f SHA1 15c80dd2e6e87dd43e53d20d7939026c0be8c7a2 SHA256 8e94e8dcc9445c887c7f3defdc3ed049d683f539c01d5a5007b158c3c8e0f97c
|
||||
AUX libdbi-drivers-0.8.3-oracle-build-fix.patch 485 RMD160 c8d9e941318a4cbdbcc9ddc5c5f52be5e566b114 SHA1 4c6af4561041e10c5fdb00e21ded55d923cbb84e SHA256 67d088a16f91f77a377eeae1fe8d1fa30540fcf5beb0566d1146fe56cbbd3dec
|
||||
DIST libdbi-drivers-0.8.3-1.tar.gz 1534420 RMD160 e0aa9e67f6560fb44018b1d35d90d4ac21b48597 SHA1 599fbab115419e8fc88b3b31a38031584ee213b5 SHA256 4ab9944398ce769c0deeb64d2f73555c67bc25ccd2ade1ccf552226c7b2acf72
|
||||
EBUILD libdbi-drivers-0.8.3-r2.ebuild 3078 RMD160 eb98283dab0f98a79449f552c8e662b90c18c919 SHA1 6ffa291711389becad53ee5a73d0cd29c3ab5a91 SHA256 ff5db91202a96679aee2e156edcb5a2162144d995f8ba7e7befb6e565178c5fc
|
||||
MISC ChangeLog 7659 RMD160 14f26506e2f94e125c3fc293e9ae165851af864e SHA1 a037a6600ee7c7f6aae3496a2b3cae172c0e7ae8 SHA256 9a4fc9afccc965f6d7831cf640f4c588566ffb0428fd43dd6949aaa668ac98ca
|
||||
MISC metadata.xml 223 RMD160 ffa99612cf27469c417944deed0e0c9155e64331 SHA1 607c637402dd253406aa6ee684471a702c5d1a99 SHA256 d6bb9ba68629616062b4433ab3b8fb01dfcafae5bb47804d9e06cdd6c66daa44
|
||||
20
dev-db/libdbi-drivers/files/libdbi-drivers-0.8.1-oci8.diff
Normal file
20
dev-db/libdbi-drivers/files/libdbi-drivers-0.8.1-oci8.diff
Normal file
@@ -0,0 +1,20 @@
|
||||
--- libdbi-drivers-0.8.1/drivers/oracle/dbd_oracle.c.orig 2005-08-31 23:44:53.000000000 +0200
|
||||
+++ libdbi-drivers-0.8.1/drivers/oracle/dbd_oracle.c 2006-05-30 13:10:48.000000000 +0200
|
||||
@@ -523,7 +523,7 @@
|
||||
unsigned int sizeattrib;
|
||||
dbi_data_t *data;
|
||||
char *ptr, *cols[result->numfields];
|
||||
- dword status;
|
||||
+ sword status;
|
||||
|
||||
/*
|
||||
* Prefetch all cols as char *'s
|
||||
@@ -700,7 +700,7 @@
|
||||
}
|
||||
|
||||
/* taken from sqlite3 driver */
|
||||
-size_t dbd_quote_binary (dbi_conn_t *conn, const unsigned char *orig, size_t from_length, char **ptr_dest ) {
|
||||
+size_t dbd_quote_binary (dbi_conn_t *conn, const unsigned char *orig, size_t from_length, unsigned char **ptr_dest ) {
|
||||
unsigned char *temp;
|
||||
size_t len;
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
diff -Nuar libdbi-drivers-0.8.3-1.orig/configure.in libdbi-drivers-0.8.3-1/configure.in
|
||||
--- libdbi-drivers-0.8.3-1.orig/configure.in 2008-10-09 17:09:09.303141877 -0700
|
||||
+++ libdbi-drivers-0.8.3-1/configure.in 2008-10-09 17:10:48.100635797 -0700
|
||||
@@ -149,7 +149,8 @@
|
||||
-ac_docs="YES"
|
||||
+ac_docs="no"
|
||||
AC_ARG_ENABLE(docs,
|
||||
[ --disable-docs do not build and install the documentation.],
|
||||
- [ ac_docs="NO" ])
|
||||
+ [ ac_docs="$enableval" ],
|
||||
+ [ ac_docs="no" ])
|
||||
|
||||
-if test "$ac_docs" = "YES"; then
|
||||
+if test "$ac_docs" = "yes"; then
|
||||
dnl AC_PATH_PROGS(myjade, openjade jade)
|
||||
@@ -0,0 +1,25 @@
|
||||
diff -Nuar libdbi-drivers-0.8.3-1.orig/acinclude.m4 libdbi-drivers-0.8.3-1/acinclude.m4
|
||||
--- libdbi-drivers-0.8.3-1.orig/acinclude.m4 2007-12-30 11:05:40.000000000 +0000
|
||||
+++ libdbi-drivers-0.8.3-1/acinclude.m4 2009-10-26 06:50:49.823477194 +0000
|
||||
@@ -450,8 +450,8 @@
|
||||
firebird_incdirs="/opt/firebird/include /usr/include /usr/local/include /usr/include/firebird /usr/local/include/firebird /usr/local/firebird/include /opt/firebird/include"
|
||||
AC_FIND_FILE(ibase.h, $firebird_incdirs, ac_firebird_incdir)
|
||||
firebird_libdirs="/opt/firebird/lib /usr/lib /usr/local/lib /usr/lib/firebird /usr/local/lib/firebird /usr/local/firebird/lib /opt/firebird/lib"
|
||||
-dnl AC_FIND_FILE(libfbclient.so, $firebird_libdirs, ac_firebird_libdir)
|
||||
- AC_FIND_FILE(libfbembed.so, $firebird_libdirs, ac_firebird_libdir)
|
||||
+ AC_FIND_FILE(libfbclient.so, $firebird_libdirs, ac_firebird_libdir)
|
||||
+dnl AC_FIND_FILE(libfbembed.so, $firebird_libdirs, ac_firebird_libdir)
|
||||
if test "$ac_firebird_incdir" = "no"; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([Invalid Firebird/Interbase directory - include files not found.])
|
||||
@@ -479,8 +479,8 @@
|
||||
[SCHAR_MSG="no"])
|
||||
AC_MSG_RESULT([$SCHAR_MSG])
|
||||
|
||||
-dnl FIREBIRD_LIBS="-lfbclient"
|
||||
- FIREBIRD_LIBS="-lfbembed"
|
||||
+ FIREBIRD_LIBS="-lfbclient"
|
||||
+dnl FIREBIRD_LIBS="-lfbembed"
|
||||
FIREBIRD_INCLUDE="-I$ac_firebird_incdir"
|
||||
FIREBIRD_LDFLAGS="-L$ac_firebird_libdir"
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
diff -urN libdbi-drivers-0.8.3-1.orig/drivers/oracle/dbd_oracle.c libdbi-drivers-0.8.3-1/drivers/oracle/dbd_oracle.c
|
||||
--- libdbi-drivers-0.8.3-1.orig/drivers/oracle/dbd_oracle.c 2009-01-26 16:31:42.000000000 +0300
|
||||
+++ libdbi-drivers-0.8.3-1/drivers/oracle/dbd_oracle.c 2009-01-26 16:32:38.000000000 +0300
|
||||
@@ -841,7 +841,7 @@
|
||||
{
|
||||
struct tm tmt;
|
||||
/* char stime[101], *cp = NULL; */
|
||||
-/* time_t loct = 0L; */
|
||||
+ time_t loct = 0L;
|
||||
|
||||
/* memset(stime, 0, sizeof(stime)); */
|
||||
|
||||
99
dev-db/libdbi-drivers/libdbi-drivers-0.8.3-r2.ebuild
Normal file
99
dev-db/libdbi-drivers/libdbi-drivers-0.8.3-r2.ebuild
Normal file
@@ -0,0 +1,99 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/libdbi-drivers/libdbi-drivers-0.8.3-r2.ebuild,v 1.1 2010/09/28 17:22:52 robbat2 Exp $
|
||||
|
||||
EAPI=1
|
||||
inherit eutils autotools
|
||||
|
||||
MY_PV="${PV}-1"
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
|
||||
DESCRIPTION="The libdbi-drivers project maintains drivers for libdbi."
|
||||
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
|
||||
HOMEPAGE="http://libdbi-drivers.sourceforge.net/"
|
||||
LICENSE="LGPL-2.1"
|
||||
RDEPEND=">=dev-db/libdbi-0.8.3
|
||||
mysql? ( virtual/mysql )
|
||||
postgres? ( dev-db/postgresql-base )
|
||||
sqlite? ( <dev-db/sqlite-3 )
|
||||
sqlite3? ( >=dev-db/sqlite-3 )
|
||||
!bindist? ( firebird? ( dev-db/firebird ) )"
|
||||
DEPEND="${RDEPEND}
|
||||
doc? ( app-text/openjade )"
|
||||
|
||||
IUSE="mysql postgres sqlite oci8 firebird +sqlite3 bindist doc"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
|
||||
SLOT=0
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_unpack() {
|
||||
unpack ${A}
|
||||
epatch "${FILESDIR}"/${PN}-0.8.3-doc-build-fix.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.8.3-oracle-build-fix.patch
|
||||
epatch "${FILESDIR}"/${PN}-0.8.3-firebird-fix.patch
|
||||
cd "${S}"
|
||||
sed -e "s!/usr/lib!/usr/$(get_libdir)!g" -i configure.in -i acinclude.m4
|
||||
sed -e 's!CFLAGS=.*!CFLAGS="\${CFLAGS}"!g' -i configure.in
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
local drivers=""
|
||||
use mysql && drivers="${drivers} mysql"
|
||||
use postgres && drivers="${drivers} pgsql"
|
||||
use sqlite && drivers="${drivers} sqlite"
|
||||
use sqlite3 && drivers="${drivers} sqlite3"
|
||||
if use firebird; then
|
||||
if use bindist; then
|
||||
eerror "The Interbase Public License is incompatible with LGPL, see bug #200284."
|
||||
eerror "Disabling firebird in the build"
|
||||
else
|
||||
drivers="${drivers} firebird"
|
||||
fi
|
||||
fi
|
||||
if use oci8; then
|
||||
if [ -z "${ORACLE_HOME}" ]; then
|
||||
die "\$ORACLE_HOME is not set!"
|
||||
fi
|
||||
drivers="${drivers} oracle"
|
||||
fi
|
||||
# safety check
|
||||
if [ -z "${drivers// /}" ]; then
|
||||
die "No supported databases in your USE flags! (mysql, postgres, sqlite, sqlite3, oracle, firebird)"
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
local myconf=""
|
||||
# WARNING: the configure script does NOT work correctly
|
||||
# --without-$driver does NOT work
|
||||
# so do NOT use `use_with...`
|
||||
use mysql && myconf="${myconf} --with-mysql"
|
||||
use postgres && myconf="${myconf} --with-pgsql"
|
||||
use sqlite && myconf="${myconf} --with-sqlite"
|
||||
use sqlite3 && myconf="${myconf} --with-sqlite3"
|
||||
use !bindist && use firebird && myconf="${myconf} --with-firebird"
|
||||
if use oci8; then
|
||||
if [ -z "${ORACLE_HOME}" ]; then
|
||||
die "\$ORACLE_HOME is not set!"
|
||||
fi
|
||||
myconf="${myconf} --with-oracle-dir=${ORACLE_HOME} --with-oracle"
|
||||
fi
|
||||
|
||||
econf $(use_enable doc docs) ${myconf} || die "econf failed"
|
||||
emake || die "emake failed"
|
||||
}
|
||||
|
||||
src_install () {
|
||||
emake install DESTDIR="${D}" || die "make install failed"
|
||||
dodoc AUTHORS ChangeLog NEWS README README.osx TODO
|
||||
}
|
||||
src_test() {
|
||||
if [ -z "${WANT_INTERACTIVE_TESTS}" ]; then
|
||||
ewarn "Tests disabled due to interactivity."
|
||||
ewarn "Run with WANT_INTERACTIVE_TESTS=1 if you want them."
|
||||
return 0
|
||||
fi
|
||||
einfo "Running interactive tests"
|
||||
emake check || die "Tests failed"
|
||||
}
|
||||
8
dev-db/libdbi-drivers/metadata.xml
Normal file
8
dev-db/libdbi-drivers/metadata.xml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>no-herd</herd>
|
||||
<maintainer>
|
||||
<email>robbat2@gentoo.org</email>
|
||||
</maintainer>
|
||||
</pkgmetadata>
|
||||
2715
dev-db/mysql/ChangeLog
Normal file
2715
dev-db/mysql/ChangeLog
Normal file
File diff suppressed because it is too large
Load Diff
13
dev-db/mysql/Manifest
Normal file
13
dev-db/mysql/Manifest
Normal file
@@ -0,0 +1,13 @@
|
||||
AUX my.cnf 1249 RMD160 680752c5c5f1e18e02f5c3286aaade406f271b95 SHA1 f5592c43e52d23902a23d4f824d4dddccd7cdd0c SHA256 29c07ce113496ec62bf9427609f2291861e3e165200d6e98a69bd312c6c101ec
|
||||
AUX my.cnf-4.0 4316 RMD160 e2a9f3f1a13b1aa13151dc5dbeba1dad888337e3 SHA1 40d6f252fd103548bc422e86659ef644fbce1ac6 SHA256 f4616a38d7c1b5cc2bf6b4e5b175ffcc12a52e38772dd86274a8991ef50015af
|
||||
AUX my.cnf-4.1 4235 RMD160 ca04e2e667322e99c29be59064c7a6ecaa4e1e4c SHA1 babc79984b2e2d3def93ac0c13cd2fc5c690212a SHA256 908a4883116e4f323510c468fd22c5765f8a2adce0344859fc212b7209a3a6c7
|
||||
AUX my.cnf-5.1 4199 RMD160 c12797534dd8273d1640844b4813ec7307911cef SHA1 5845dcaf469bd95d918cc07b1ffc80e2bd4c5a68 SHA256 c50e38004c901d4921d00a5f458bcd191852262a93f3d9fbfb6b040186b1ec45
|
||||
AUX mysql.init 886 RMD160 26b8aa45af3f930db01f0db731865b9293626fb1 SHA1 d7d99a3f45fa807d1fb57ab04b35800a69cae430 SHA256 2d7faf6d88fd13e5c10368a20074fdb59554635f8b1fd17e088d82208e611c12
|
||||
AUX mysql_config.in.patch 699 RMD160 2a03e25cfbe46c2bc943167fe500dbd61032cbe9 SHA1 4be5e523ca154d7605a8789ed30aa38e4c9f4a38 SHA256 8d382683391e44e187f2822fd297877194caf68241ecb4600b677f2eda390787
|
||||
DIST mysql-5.1.53.tar.gz 23871815 RMD160 e8fd69450dda85cf3f41269e6e3fca05caccc76d SHA1 24064a4c0f8b88b30acb6ddb03f32e897ef061f3 SHA256 d68c0db580bb514bb1759d4c69dc71ceb0e3573ac88a1025111bdd8f89e234a4
|
||||
DIST mysql-extras-20101128-2122Z.tar.bz2 1237793 RMD160 43b536c060d3a1bafa993ec4c55c1b13a78926cc SHA1 409b47603948bceea3531414af42b74915e698b8 SHA256 a804e4418fff742a72fc4cc8c83f1107a86f95b2fafde96002436905a9b5f729
|
||||
DIST pbxt-1.0.11-6-pre-ga.tar.gz 3156307 RMD160 835c401b8503f1c1bef4b50f7a7815493f95acc1 SHA1 22eeffe0e38e0a0c2731a2c97fe00ce7d1ab2dfc SHA256 71ff3d86e9e5691f3efe541bf31f55a7ec2a88af27df6ad853b65902e00e6d12
|
||||
DIST percona-xtradb-1.0.6-10.tar.gz 1676716 RMD160 772947fe67725c55751f3ec349711c05ba23c39b SHA1 07de0fd126e684aa045a8b941002f7634cd9a604 SHA256 e3aa818f13cf669412e59ad194eae8eada7a857bf7a4260e4bb41cab4d7ae39c
|
||||
EBUILD mysql-5.1.53.ebuild 8679 RMD160 e9936f1054fab156240c8d8efe0f7a659eb1f490 SHA1 2112e8d0306f38bb17d4bf0a0c675ee4caa21727 SHA256 d59e7cc89ebb02177b399bbcdd3b04da234b9f31905575a34b2001b6a44828f2
|
||||
MISC ChangeLog 108399 RMD160 abf7a6ee1ba46f8fb442f2ea686ec0a0667459b5 SHA1 c71e197f55e649af0e3d16638261178545fea857 SHA256 b6d413cb9f56557fbead08cf54de56856c51f7b96fb42d1faeeb53272dd9b6d8
|
||||
MISC metadata.xml 1389 RMD160 711fe2927a95bff06abbba5209a1e03fd99ba7b5 SHA1 adaf717edeadad3ebe8e7b486d75477b2ec5433b SHA256 562726facccb1c1808b74c0e17f052ca03c92c0ada689375e527b2a5405a5a0a
|
||||
48
dev-db/mysql/files/my.cnf
Normal file
48
dev-db/mysql/files/my.cnf
Normal file
@@ -0,0 +1,48 @@
|
||||
# /etc/mysql/my.cnf: The global mysql configuration file.
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf,v 1.5 2008/11/14 01:49:37 robbat2 Exp $
|
||||
#
|
||||
# This file can be simultaneously placed in three places:
|
||||
# 1. /etc/mysql/my.cnf to set global options.
|
||||
# 2. /var/lib/mysql/my.cnf to set server-specific options.
|
||||
# 3. ~/.my.cnf to set user-specific options.
|
||||
#
|
||||
# One can use all long options that the program supports.
|
||||
# Run the program with --help to get a list of them.
|
||||
#
|
||||
# The following values assume you have at least 32M RAM!
|
||||
|
||||
[client]
|
||||
#password = my_password
|
||||
port = 3306
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
|
||||
[safe_mysqld]
|
||||
err-log = /var/log/mysql/mysql.err
|
||||
|
||||
[mysqld]
|
||||
#skip-networking
|
||||
skip-innodb
|
||||
innodb_file_per_table
|
||||
user = mysql
|
||||
pid-file = /var/run/mysqld/mysqld.pid
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
port = 3306
|
||||
log = /var/log/mysql/mysql.log
|
||||
basedir = /usr
|
||||
datadir = /var/lib/mysql
|
||||
tmpdir = /tmp
|
||||
language = /usr/share/mysql/english
|
||||
skip-locking
|
||||
set-variable = key_buffer=16M
|
||||
set-variable = max_allowed_packet=1M
|
||||
set-variable = thread_stack=128K
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
set-variable = max_allowed_packet=1M
|
||||
|
||||
[mysql]
|
||||
#no-auto-rehash # faster start of mysql but no tab completition
|
||||
|
||||
[isamchk]
|
||||
set-variable = key_buffer=16M
|
||||
113
dev-db/mysql/files/my.cnf-4.0
Normal file
113
dev-db/mysql/files/my.cnf-4.0
Normal file
@@ -0,0 +1,113 @@
|
||||
# /etc/mysql/my.cnf: The global mysql configuration file.
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-4.0,v 1.2 2008/11/14 02:16:25 robbat2 Exp $
|
||||
#
|
||||
# This file can be simultaneously placed in three places:
|
||||
# 1. /etc/mysql/my.cnf to set global options.
|
||||
# 2. /var/lib/mysql/my.cnf to set server-specific options.
|
||||
# 3. ~/.my.cnf to set user-specific options.
|
||||
#
|
||||
# One can use all long options that the program supports.
|
||||
# Run the program with --help to get a list of them.
|
||||
#
|
||||
# The following values assume you have at least 64M RAM!
|
||||
|
||||
[client]
|
||||
#password = my_password
|
||||
port = 3306
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
|
||||
[safe_mysqld]
|
||||
err-log = /var/log/mysql/mysql.err
|
||||
|
||||
[mysqld]
|
||||
user = mysql
|
||||
pid-file = /var/run/mysqld/mysqld.pid
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
log-error = /var/log/mysql/mysqld.err
|
||||
# If set, mysql logs all queries (general query log). This will be deprecated in
|
||||
# MySQL 5.0. This logs all queries, even error queries and is slow.
|
||||
# log = /var/log/mysql/mysql.log
|
||||
#
|
||||
# If you really need logging, you'd rather use binary logging. Especially when doing
|
||||
# replication. Read file:/usr/share/doc/mysql-*/manual.html.gz#Replication for info.
|
||||
# You can use PURGE MASTER LOGS TO '$hostname-bin.010' to get rid of old logs
|
||||
# from $hostname-bin.01 up to $hostname-bin.09 while the slave server is
|
||||
# running.
|
||||
# Before doing that, check which logfile slave curently uses by running
|
||||
# mysql> SHOW SLAVE STATUS
|
||||
# To list logfiles on master do:
|
||||
# mysql> SHOW MASTER LOGS
|
||||
# Then use PURGE for those not needed anymore only! Never remove the files
|
||||
# manually!
|
||||
#
|
||||
# Also consult RESET MASTER and RESET SLAVE commands before doing any changes
|
||||
# mysql> RESET MASTER - Deletes all binary logs listed in the index
|
||||
# file, resetting the binlog index file to be empty.
|
||||
# mysql> RESET SLAVE - Makes the slave forget its replication position in
|
||||
# the master logs.
|
||||
# mysql> SET SQL_LOG_BIN=0 - this turns off logging (execute on MASTER only)
|
||||
# mysql> SET SQL_LOG_BIN=1 - this turns on logging (execute on MASTER only)
|
||||
#
|
||||
# log-bin
|
||||
# set-variable = binlog-do-db=non_existant
|
||||
# set-variable = binlog-ignore-db=database_name
|
||||
#
|
||||
# server-id has to unique for each master or slave in your network,
|
||||
# lets use the last number from IP address
|
||||
# server-id = 207
|
||||
basedir = /usr
|
||||
datadir = /var/lib/mysql
|
||||
tmpdir = /tmp
|
||||
language = /usr/share/mysql/english
|
||||
skip-locking
|
||||
set-variable = key_buffer=16M
|
||||
set-variable = max_allowed_packet=1M
|
||||
set-variable = thread_stack=128K
|
||||
# be secure by default!
|
||||
bind-address = 127.0.0.1
|
||||
port = 3306
|
||||
# this can make it even more secure:
|
||||
#skip-networking
|
||||
#
|
||||
# the following is the InnoDB configuration
|
||||
# if you wish to disable innodb instead
|
||||
# uncomment just the next line
|
||||
#skip-innodb
|
||||
#
|
||||
# the rest of the innodb config follows:
|
||||
# don't eat too much memory, we're trying to be safe on 64Mb boxes
|
||||
# you might want to bump this up a bit on boxes with more RAM
|
||||
set-variable = innodb_buffer_pool_size=32M
|
||||
# this is the default, increase it if you have lots of tables
|
||||
set-variable = innodb_additional_mem_pool_size=1M
|
||||
#
|
||||
# i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
|
||||
# and upstream wants things to be under /var/lib/mysql/, so that's the route
|
||||
# we have to take for the moment
|
||||
innodb_data_home_dir = /var/lib/mysql/
|
||||
innodb_log_arch_dir = /var/lib/mysql/
|
||||
innodb_log_group_home_dir = /var/lib/mysql/
|
||||
# you may wish to change this size to be more suitable for your system
|
||||
# the max is there to avoid run-away growth on your machine
|
||||
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
|
||||
# we keep this at around 25% of of innodb_buffer_pool_size
|
||||
# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
|
||||
set-variable = innodb_log_file_size=8M
|
||||
# this is the default, increase it if you have very large transactions going on
|
||||
set-variable = innodb_log_buffer_size=1M
|
||||
# this is the default and won't hurt you
|
||||
# you shouldn't need to tweak it
|
||||
set-variable = innodb_log_files_in_group=2
|
||||
# see the innodb config docs, the other options are not always safe
|
||||
innodb_flush_log_at_trx_commit = 1
|
||||
innodb_file_per_table
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
set-variable = max_allowed_packet=16M
|
||||
|
||||
[mysql]
|
||||
#no-auto-rehash # faster start of mysql but no tab completion
|
||||
|
||||
[isamchk]
|
||||
set-variable = key_buffer=16M
|
||||
147
dev-db/mysql/files/my.cnf-4.1
Normal file
147
dev-db/mysql/files/my.cnf-4.1
Normal file
@@ -0,0 +1,147 @@
|
||||
# /etc/mysql/my.cnf: The global mysql configuration file.
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-4.1,v 1.4 2008/11/14 02:16:25 robbat2 Exp $
|
||||
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
#password = your_password
|
||||
port = 3306
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
|
||||
[mysql]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqladmin]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqlcheck]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqldump]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqlimport]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqlshow]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[myisamchk]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
|
||||
[myisampack]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
|
||||
# use [safe_mysqld] with mysql-3
|
||||
[mysqld_safe]
|
||||
err-log = /var/log/mysql/mysql.err
|
||||
|
||||
# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations
|
||||
[mysqld]
|
||||
character-set-server = utf8
|
||||
default-character-set = utf8
|
||||
user = mysql
|
||||
port = 3306
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
pid-file = /var/run/mysqld/mysqld.pid
|
||||
log-error = /var/log/mysql/mysqld.err
|
||||
basedir = /usr
|
||||
datadir = @DATADIR@
|
||||
skip-locking
|
||||
key_buffer = 16M
|
||||
max_allowed_packet = 1M
|
||||
table_cache = 64
|
||||
sort_buffer_size = 512K
|
||||
net_buffer_length = 8K
|
||||
read_buffer_size = 256K
|
||||
read_rnd_buffer_size = 512K
|
||||
myisam_sort_buffer_size = 8M
|
||||
language = /usr/share/mysql/english
|
||||
|
||||
# security:
|
||||
# using "localhost" in connects uses sockets by default
|
||||
# skip-networking
|
||||
bind-address = 127.0.0.1
|
||||
|
||||
log-bin
|
||||
server-id = 1
|
||||
|
||||
# point the following paths to different dedicated disks
|
||||
tmpdir = /tmp/
|
||||
#log-update = /path-to-dedicated-directory/hostname
|
||||
|
||||
# you need the debug USE flag enabled to use the following directives,
|
||||
# if needed, uncomment them, start the server and issue
|
||||
# #tail -f /tmp/mysqld.sql /tmp/mysqld.trace
|
||||
# this will show you *exactly* what's happening in your server ;)
|
||||
|
||||
#log = /tmp/mysqld.sql
|
||||
#gdb
|
||||
#debug = d:t:i:o,/tmp/mysqld.trace
|
||||
#one-thread
|
||||
|
||||
# uncomment the following directives if you are using BDB tables
|
||||
#bdb_cache_size = 4M
|
||||
#bdb_max_lock = 10000
|
||||
|
||||
# the following is the InnoDB configuration
|
||||
# if you wish to disable innodb instead
|
||||
# uncomment just the next line
|
||||
#skip-innodb
|
||||
#
|
||||
# the rest of the innodb config follows:
|
||||
# don't eat too much memory, we're trying to be safe on 64Mb boxes
|
||||
# you might want to bump this up a bit on boxes with more RAM
|
||||
innodb_buffer_pool_size = 16M
|
||||
# this is the default, increase it if you have lots of tables
|
||||
innodb_additional_mem_pool_size = 2M
|
||||
#
|
||||
# i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
|
||||
# and upstream wants things to be under /var/lib/mysql/, so that's the route
|
||||
# we have to take for the moment
|
||||
#innodb_data_home_dir = /var/lib/mysql/
|
||||
#innodb_log_arch_dir = /var/lib/mysql/
|
||||
#innodb_log_group_home_dir = /var/lib/mysql/
|
||||
# you may wish to change this size to be more suitable for your system
|
||||
# the max is there to avoid run-away growth on your machine
|
||||
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
|
||||
# we keep this at around 25% of of innodb_buffer_pool_size
|
||||
# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
|
||||
innodb_log_file_size = 5M
|
||||
# this is the default, increase it if you have very large transactions going on
|
||||
innodb_log_buffer_size = 8M
|
||||
# this is the default and won't hurt you
|
||||
# you shouldn't need to tweak it
|
||||
set-variable = innodb_log_files_in_group=2
|
||||
# see the innodb config docs, the other options are not always safe
|
||||
innodb_flush_log_at_trx_commit = 1
|
||||
innodb_lock_wait_timeout = 50
|
||||
innodb_file_per_table
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
max_allowed_packet = 16M
|
||||
|
||||
[mysql]
|
||||
# uncomment the next directive if you are not familiar with SQL
|
||||
#safe-updates
|
||||
|
||||
[isamchk]
|
||||
key_buffer = 20M
|
||||
sort_buffer_size = 20M
|
||||
read_buffer = 2M
|
||||
write_buffer = 2M
|
||||
|
||||
[myisamchk]
|
||||
key_buffer = 20M
|
||||
sort_buffer_size = 20M
|
||||
read_buffer = 2M
|
||||
write_buffer = 2M
|
||||
|
||||
[mysqlhotcopy]
|
||||
interactive-timeout
|
||||
146
dev-db/mysql/files/my.cnf-5.1
Normal file
146
dev-db/mysql/files/my.cnf-5.1
Normal file
@@ -0,0 +1,146 @@
|
||||
# /etc/mysql/my.cnf: The global mysql configuration file.
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/my.cnf-5.1,v 1.2 2010/03/24 18:26:09 robbat2 Exp $
|
||||
|
||||
# The following options will be passed to all MySQL clients
|
||||
[client]
|
||||
#password = your_password
|
||||
port = 3306
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
|
||||
[mysql]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqladmin]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqlcheck]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqldump]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqlimport]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqlshow]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
default-character-set=utf8
|
||||
|
||||
[myisamchk]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
|
||||
[myisampack]
|
||||
character-sets-dir=/usr/share/mysql/charsets
|
||||
|
||||
# use [safe_mysqld] with mysql-3
|
||||
[mysqld_safe]
|
||||
err-log = /var/log/mysql/mysql.err
|
||||
|
||||
# add a section [mysqld-4.1] or [mysqld-5.0] for specific configurations
|
||||
[mysqld]
|
||||
character-set-server = utf8
|
||||
user = mysql
|
||||
port = 3306
|
||||
socket = /var/run/mysqld/mysqld.sock
|
||||
pid-file = /var/run/mysqld/mysqld.pid
|
||||
log-error = /var/log/mysql/mysqld.err
|
||||
basedir = /usr
|
||||
datadir = @DATADIR@
|
||||
skip-external-locking
|
||||
key_buffer = 16M
|
||||
max_allowed_packet = 1M
|
||||
table_cache = 64
|
||||
sort_buffer_size = 512K
|
||||
net_buffer_length = 8K
|
||||
read_buffer_size = 256K
|
||||
read_rnd_buffer_size = 512K
|
||||
myisam_sort_buffer_size = 8M
|
||||
language = /usr/share/mysql/english
|
||||
|
||||
# security:
|
||||
# using "localhost" in connects uses sockets by default
|
||||
# skip-networking
|
||||
bind-address = 127.0.0.1
|
||||
|
||||
log-bin
|
||||
server-id = 1
|
||||
|
||||
# point the following paths to different dedicated disks
|
||||
tmpdir = /tmp/
|
||||
#log-update = /path-to-dedicated-directory/hostname
|
||||
|
||||
# you need the debug USE flag enabled to use the following directives,
|
||||
# if needed, uncomment them, start the server and issue
|
||||
# #tail -f /tmp/mysqld.sql /tmp/mysqld.trace
|
||||
# this will show you *exactly* what's happening in your server ;)
|
||||
|
||||
#log = /tmp/mysqld.sql
|
||||
#gdb
|
||||
#debug = d:t:i:o,/tmp/mysqld.trace
|
||||
#one-thread
|
||||
|
||||
# uncomment the following directives if you are using BDB tables
|
||||
#bdb_cache_size = 4M
|
||||
#bdb_max_lock = 10000
|
||||
|
||||
# the following is the InnoDB configuration
|
||||
# if you wish to disable innodb instead
|
||||
# uncomment just the next line
|
||||
#skip-innodb
|
||||
#
|
||||
# the rest of the innodb config follows:
|
||||
# don't eat too much memory, we're trying to be safe on 64Mb boxes
|
||||
# you might want to bump this up a bit on boxes with more RAM
|
||||
innodb_buffer_pool_size = 16M
|
||||
# this is the default, increase it if you have lots of tables
|
||||
innodb_additional_mem_pool_size = 2M
|
||||
#
|
||||
# i'd like to use /var/lib/mysql/innodb, but that is seen as a database :-(
|
||||
# and upstream wants things to be under /var/lib/mysql/, so that's the route
|
||||
# we have to take for the moment
|
||||
#innodb_data_home_dir = /var/lib/mysql/
|
||||
#innodb_log_arch_dir = /var/lib/mysql/
|
||||
#innodb_log_group_home_dir = /var/lib/mysql/
|
||||
# you may wish to change this size to be more suitable for your system
|
||||
# the max is there to avoid run-away growth on your machine
|
||||
innodb_data_file_path = ibdata1:10M:autoextend:max:128M
|
||||
# we keep this at around 25% of of innodb_buffer_pool_size
|
||||
# sensible values range from 1MB to (1/innodb_log_files_in_group*innodb_buffer_pool_size)
|
||||
innodb_log_file_size = 5M
|
||||
# this is the default, increase it if you have very large transactions going on
|
||||
innodb_log_buffer_size = 8M
|
||||
# this is the default and won't hurt you
|
||||
# you shouldn't need to tweak it
|
||||
innodb_log_files_in_group=2
|
||||
# see the innodb config docs, the other options are not always safe
|
||||
innodb_flush_log_at_trx_commit = 1
|
||||
innodb_lock_wait_timeout = 50
|
||||
innodb_file_per_table
|
||||
|
||||
[mysqldump]
|
||||
quick
|
||||
max_allowed_packet = 16M
|
||||
|
||||
[mysql]
|
||||
# uncomment the next directive if you are not familiar with SQL
|
||||
#safe-updates
|
||||
|
||||
[isamchk]
|
||||
key_buffer = 20M
|
||||
sort_buffer_size = 20M
|
||||
read_buffer = 2M
|
||||
write_buffer = 2M
|
||||
|
||||
[myisamchk]
|
||||
key_buffer = 20M
|
||||
sort_buffer_size = 20M
|
||||
read_buffer = 2M
|
||||
write_buffer = 2M
|
||||
|
||||
[mysqlhotcopy]
|
||||
interactive-timeout
|
||||
37
dev-db/mysql/files/mysql.init
Executable file
37
dev-db/mysql/files/mysql.init
Executable file
@@ -0,0 +1,37 @@
|
||||
#!/sbin/runscript
|
||||
# Copyright 1999-2004 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/files/mysql.init,v 1.7 2004/07/14 21:41:15 agriffis Exp $
|
||||
|
||||
depend() {
|
||||
need net
|
||||
use dns
|
||||
}
|
||||
|
||||
checkconfig() {
|
||||
if [ ! -f /etc/mysql/my.cnf ] ; then
|
||||
eerror "No /etc/mysql/my.cnf file exists!"
|
||||
fi
|
||||
|
||||
dir=`my_print_defaults mysqld | grep -- --datadir | sed -e "s|^.*=\(.*\)|\1|"`
|
||||
|
||||
if [ ! -d $dir/mysql ] ; then
|
||||
eerror "You dont appear to have the mysql database installed yet."
|
||||
eerror "Please run /usr/bin/mysql_install_db to have this done..."
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
start() {
|
||||
checkconfig || return 1
|
||||
ebegin "Starting mysqld"
|
||||
/usr/bin/safe_mysqld >/dev/null 2>&1 &
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop () {
|
||||
ebegin "Stopping mysqld"
|
||||
start-stop-daemon --stop --quiet \
|
||||
--pidfile=/var/run/mysqld/mysqld.pid --retry 20
|
||||
eend $?
|
||||
}
|
||||
19
dev-db/mysql/files/mysql_config.in.patch
Normal file
19
dev-db/mysql/files/mysql_config.in.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
2010-11-10 Francisco Blas Izquierdo Riera <franxisco1988@mixmail.com>
|
||||
KUDOS: Magnus Granberg (Help with this)
|
||||
KUDOS: Thomas Sachau (Help reproducing the bug)
|
||||
KUDOS: Alexander E. Patrakov (Providing an initial solution)
|
||||
#347796
|
||||
* configure.in: Properly use CCASFLAGS
|
||||
|
||||
diff -ur mysql.orig/configure.in mysql/configure.in
|
||||
--- mysql.orig/configure.in 2010-12-09 17:09:08.000000000 +0100
|
||||
+++ mysql/configure.in 2010-12-09 17:31:24.000000000 +0100
|
||||
@@ -519,7 +519,7 @@
|
||||
|
||||
# We need an assembler, too
|
||||
AM_PROG_AS
|
||||
-CCASFLAGS="$CCASFLAGS $ASFLAGS"
|
||||
+CCASFLAGS="$CCASFLAGS $(for flag in $ASFLAGS ; do echo "-Wa,$flag" ; done)"
|
||||
|
||||
# Check if we need noexec stack for assembler
|
||||
AC_CHECK_NOEXECSTACK
|
||||
27
dev-db/mysql/metadata.xml
Normal file
27
dev-db/mysql/metadata.xml
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>mysql</herd>
|
||||
<!--
|
||||
Please note that this list is shared between the following packages:
|
||||
dev-db/mysql
|
||||
dev-db/mysql-community
|
||||
dev-db/mariadb (upcoming)
|
||||
dev-db/mysql-cluster (upcoming)
|
||||
-->
|
||||
<use>
|
||||
<flag name='big-tables'>Make tables contain up to 1.844E+19 rows</flag>
|
||||
<flag name='cluster'>Add support for NDB clustering (deprecated)</flag>
|
||||
<flag name='community'>Enables the community features from upstream.</flag>
|
||||
<flag name='embedded'>Build embedded server (libmysqld)</flag>
|
||||
<flag name='extraengine'>Add support for alternative storage engines (Archive, CSV, Blackhole, Federated(X), Partition)</flag>
|
||||
<flag name='latin1'>Use LATIN1 encoding instead of UTF8</flag>
|
||||
<flag name='max-idx-128'>Raise the max index per table limit from 64 to 128</flag>
|
||||
<flag name='minimal'>Install client programs only, no server</flag>
|
||||
<flag name='pbxt'>Add experimental support for PBXT storage engine</flag>
|
||||
<flag name='profiling'>Add support for statement profiling (requires USE=community).</flag>
|
||||
<flag name='raid'>Deprecated option, removed in the 5.0 series</flag>
|
||||
<flag name='test'>Install upstream testsuites for end use.</flag>
|
||||
<flag name='xtradb'>Add experimental support for Percona's InnoDB replacement: XtraDB</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
260
dev-db/mysql/mysql-5.1.53.ebuild
Normal file
260
dev-db/mysql/mysql-5.1.53.ebuild
Normal file
@@ -0,0 +1,260 @@
|
||||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: /var/cvsroot/gentoo-x86/dev-db/mysql/mysql-5.1.53.ebuild,v 1.1 2010/11/29 00:22:28 robbat2 Exp $
|
||||
|
||||
MY_EXTRAS_VER="20101128-2122Z"
|
||||
EAPI=2
|
||||
|
||||
# PBXT
|
||||
PBXT_VERSION='1.0.11-6-pre-ga'
|
||||
# XtraDB
|
||||
PERCONA_VER='5.1.45-10' XTRADB_VER='1.0.6-10'
|
||||
|
||||
inherit toolchain-funcs mysql
|
||||
# only to make repoman happy. it is really set in the eclass
|
||||
IUSE="$IUSE"
|
||||
|
||||
# REMEMBER: also update eclass/mysql*.eclass before committing!
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x64-macos ~x86-solaris"
|
||||
|
||||
# When MY_EXTRAS is bumped, the index should be revised to exclude these.
|
||||
# This is often broken still
|
||||
EPATCH_EXCLUDE=''
|
||||
|
||||
# Most of these are in the eclass
|
||||
RDEPEND=""
|
||||
DEPEND="|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
|
||||
>=sys-devel/libtool-2.2.10"
|
||||
|
||||
# Please do not add a naive src_unpack to this ebuild
|
||||
# If you want to add a single patch, copy the ebuild to an overlay
|
||||
# and create your own mysql-extras tarball, looking at 000_index.txt
|
||||
src_prepare() {
|
||||
sed -i \
|
||||
-e '/^noinst_PROGRAMS/s/basic-t//g' \
|
||||
"${S}"/unittest/mytap/t/Makefile.am
|
||||
mysql_src_prepare
|
||||
|
||||
epatch "${FILESDIR}"/mysql_config.in.patch
|
||||
}
|
||||
|
||||
# Official test instructions:
|
||||
# USE='berkdb -cluster embedded extraengine perl ssl community' \
|
||||
# FEATURES='test userpriv -usersandbox' \
|
||||
# ebuild mysql-X.X.XX.ebuild \
|
||||
# digest clean package
|
||||
src_test() {
|
||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
||||
# localhost. Also causes weird failures.
|
||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
||||
|
||||
emake check || die "make check failed"
|
||||
if ! use "minimal" ; then
|
||||
if [[ $UID -eq 0 ]]; then
|
||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
||||
fi
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
cd "${S}"
|
||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
||||
local retstatus_unit
|
||||
local retstatus_ns
|
||||
local retstatus_ps
|
||||
local t
|
||||
addpredict /this-dir-does-not-exist/t9.MYI
|
||||
|
||||
# Ensure that parallel runs don't die
|
||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
||||
|
||||
# archive_gis really sucks a lot, but it's only relevant for the
|
||||
# USE=extraengines case
|
||||
case ${PV} in
|
||||
5.0.42)
|
||||
mysql_disable_test "archive_gis" "Totally broken in 5.0.42"
|
||||
;;
|
||||
|
||||
5.0.4[3-9]|5.0.[56]*|5.0.70|5.0.87)
|
||||
[ "$(tc-endian)" == "big" ] && \
|
||||
mysql_disable_test \
|
||||
"archive_gis" \
|
||||
"Broken in 5.0.43-70 and 5.0.87 on big-endian boxes only"
|
||||
;;
|
||||
esac
|
||||
|
||||
# This was a slight testcase breakage when the read_only security issue
|
||||
# was fixed.
|
||||
case ${PV} in
|
||||
5.0.54|5.0.51*)
|
||||
mysql_disable_test \
|
||||
"read_only" \
|
||||
"Broken in 5.0.51-54, output in wrong order"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Ditto to read_only
|
||||
[ "${PV}" == "5.0.51a" ] && \
|
||||
mysql_disable_test \
|
||||
"view" \
|
||||
"Broken in 5.0.51, output in wrong order"
|
||||
|
||||
# x86-specific, OOM issue with some subselects on low memory servers
|
||||
[ "${PV}" == "5.0.54" ] && \
|
||||
[ "${ARCH/x86}" != "${ARCH}" ] && \
|
||||
mysql_disable_test \
|
||||
"subselect" \
|
||||
"Testcase needs tuning on x86 for oom condition"
|
||||
|
||||
# Broke with the YaSSL security issue that didn't affect Gentoo.
|
||||
[ "${PV}" == "5.0.56" ] && \
|
||||
for t in openssl_1 rpl_openssl rpl_ssl ssl \
|
||||
ssl_8k_key ssl_compress ssl_connect ; do \
|
||||
mysql_disable_test \
|
||||
"$t" \
|
||||
"OpenSSL tests broken on 5.0.56"
|
||||
done
|
||||
|
||||
# New test was broken in first time
|
||||
# Upstream bug 41066
|
||||
# http://bugs.mysql.com/bug.php?id=41066
|
||||
[ "${PV}" == "5.0.72" ] && \
|
||||
mysql_disable_test \
|
||||
"status2" \
|
||||
"Broken in 5.0.72, new test is broken, upstream bug #41066"
|
||||
|
||||
# The entire 5.0 series has pre-generated SSL certificates, they have
|
||||
# mostly expired now. ${S}/mysql-tests/std-data/*.pem
|
||||
# The certs really SHOULD be generated for the tests, so that they are
|
||||
# not expiring like this. We cannot do so ourselves as the tests look
|
||||
# closely as the cert path data, and we do not have the CA key to regen
|
||||
# ourselves. Alternatively, upstream should generate them with at least
|
||||
# 50-year validity.
|
||||
#
|
||||
# Known expiry points:
|
||||
# 4.1.*, 5.0.0-5.0.22, 5.1.7: Expires 2013/09/09
|
||||
# 5.0.23-5.0.77, 5.1.7-5.1.22?: Expires 2009/01/27
|
||||
# 5.0.78-5.0.90, 5.1.??-5.1.42: Expires 2010/01/28
|
||||
#
|
||||
# mysql-test/std_data/untrusted-cacert.pem is MEANT to be
|
||||
# expired/invalid.
|
||||
case ${PV} in
|
||||
5.0.*|5.1.*|5.4.*|5.5.*)
|
||||
for t in openssl_1 rpl_openssl rpl.rpl_ssl rpl.rpl_ssl1 ssl ssl_8k_key \
|
||||
ssl_compress ssl_connect rpl.rpl_heartbeat_ssl ; do \
|
||||
mysql_disable_test \
|
||||
"$t" \
|
||||
"These OpenSSL tests break due to expired certificates"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
||||
# These are also failing in MySQL 5.1 for now, and are believed to be
|
||||
# false positives:
|
||||
#
|
||||
# main.mysql_comment, main.mysql_upgrade, main.information_schema,
|
||||
# funcs_1.is_columns_mysql funcs_1.is_tables_mysql funcs_1.is_triggers:
|
||||
# fails due to USE=-latin1 / utf8 default
|
||||
#
|
||||
# main.mysql_client_test:
|
||||
# segfaults at random under Portage only, suspect resource limits.
|
||||
#
|
||||
# main.not_partition:
|
||||
# Failure reason unknown at this time, must resolve before package.mask
|
||||
# removal FIXME
|
||||
case ${PV} in
|
||||
5.1.*|5.4.*|5.5.*)
|
||||
for t in main.mysql_client_test main.mysql_comments \
|
||||
main.mysql_upgrade \
|
||||
main.information_schema \
|
||||
main.not_partition funcs_1.is_columns_mysql \
|
||||
funcs_1.is_tables_mysql funcs_1.is_triggers; do
|
||||
mysql_disable_test "$t" "False positives in Gentoo"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
||||
# New failures in 5.1.50/5.1.51, reported by jmbsvicetto.
|
||||
# These tests are picking up a 'connect-timeout' config from somewhere,
|
||||
# which is not valid, and since it does not have 'loose-' in front of
|
||||
# it, it's causing a failure
|
||||
case ${PV} in
|
||||
5.1.5*|5.4.*|5.5.*|6*)
|
||||
for t in rpl.rpl_mysql_upgrade main.log_tables_upgrade ; do
|
||||
mysql_disable_test "$t" \
|
||||
"False positives in Gentoo: connect-timeout"
|
||||
done
|
||||
;;
|
||||
esac
|
||||
|
||||
use profiling && use community \
|
||||
|| mysql_disable_test main.profiling \
|
||||
"Profiling test needs profiling support"
|
||||
|
||||
if [ "${PN}" == "mariadb" ]; then
|
||||
for t in \
|
||||
parts.part_supported_sql_func_ndb \
|
||||
parts.partition_auto_increment_ndb ; do
|
||||
mysql_disable_test $t "ndb not supported in mariadb"
|
||||
done
|
||||
fi
|
||||
|
||||
# This fail with XtraDB in place of normal InnoDB
|
||||
# TODO: test if they are broken with the rest of the Percona patches
|
||||
if xtradb_patch_available && use xtradb ; then
|
||||
for t in main.innodb innodb.innodb_bug51378 \
|
||||
main.information_schema_db main.mysqlshow \
|
||||
main.innodb-autoinc main.innodb_bug21704 \
|
||||
main.innodb_bug44369 main.innodb_bug46000 \
|
||||
main.index_merge_innodb \
|
||||
innodb.innodb innodb.innodb_misc1 innodb.innodb_bug52663 \
|
||||
innodb.innodb-autoinc innodb.innodb-autoinc-44030 \
|
||||
innodb.innodb_bug21704 innodb.innodb_bug44369 \
|
||||
innodb.innodb_bug46000 innodb.innodb_bug48024 \
|
||||
innodb.innodb_bug49164 innodb.innodb_bug51920 \
|
||||
innodb.innodb_bug54044 \
|
||||
; do
|
||||
mysql_disable_test $t "tests broken in xtradb"
|
||||
done
|
||||
fi
|
||||
|
||||
# bug 332565
|
||||
if ! use extraengine ; then
|
||||
for t in main.range ; do
|
||||
mysql_disable_test $t "Test $t requires USE=extraengine"
|
||||
done
|
||||
fi
|
||||
|
||||
# create directories because mysqladmin might make out of order
|
||||
mkdir -p "${S}"/mysql-test/var-{ps,ns}{,/log}
|
||||
|
||||
# We run the test protocols seperately
|
||||
#emake test-unit
|
||||
retstatus_unit=$?
|
||||
retstatus_unit=0
|
||||
[[ $retstatus_unit -eq 0 ]] || eerror "test-unit failed"
|
||||
|
||||
emake test-ns force="--force --vardir=${S}/mysql-test/var-ns"
|
||||
retstatus_ns=$?
|
||||
[[ $retstatus_ns -eq 0 ]] || eerror "test-ns failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
emake test-ps force="--force --vardir=${S}/mysql-test/var-ps"
|
||||
retstatus_ps=$?
|
||||
[[ $retstatus_ps -eq 0 ]] || eerror "test-ps failed"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
|
||||
# TODO:
|
||||
# When upstream enables the pr and nr testsuites, we need those as well.
|
||||
|
||||
# Cleanup is important for these testcases.
|
||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
||||
failures=""
|
||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
||||
[[ $retstatus_ns -eq 0 ]] || failures="${failures} test-ns"
|
||||
[[ $retstatus_ps -eq 0 ]] || failures="${failures} test-ps"
|
||||
has usersandbox $FEATURES && eerror "Some tests may fail with FEATURES=usersandbox"
|
||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
||||
einfo "Tests successfully completed"
|
||||
else
|
||||
einfo "Skipping server tests due to minimal build."
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user