Gentoo Archives: gentoo-dev

From: Kalin KOZHUHAROV <kalin@××××××××.net>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [dRFC] slotted mysql ready
Date: Mon, 09 Jan 2006 07:10:09
Message-Id: 43C20B53.9050200@thinrope.net
In Reply to: [gentoo-dev] [dRFC] slotted mysql ready by Francesco Riosa
1 Francesco Riosa wrote:
2 > Background, to make life easyer for people that use more versions of
3 > mysql (and just for fun) MySQL is going to be slotted.
4 >
5 > Currently the slot enabled versions are mysql-4.1.16-r30
6 > mysql-5.0.18-r30 mysql-5.1.4_alpha-r30, in short those with "-r30".
7 >
8 > The few patches needed are already included in current ~ mysql-4.1.16
9 > and mysql-5.0.18 but hidden due to SLOT=0, starting from 2005-11
10 >
11 > An eselect-mysql module has been prepared to create simlinks for the
12 > desired version of mysql making easy to switch between them (hopefully)
13 >
14 > The libraries (libmysqlclient & co) don't follow this logic and the
15 > higher version is always the default (similarly to sys-libs/db).
16
17 So how does this affect packages that use say dev-perl/DBD-mysql ?
18
19 If they can only use mysql-5, then the will be broken if they connect to a mysql-4 server using non
20 UTF-8 encoding. (bad wording, but generally speaking, there is an inconsistence in character
21 encoding betweet mysql-4 and mysql-5 that DOES break things on non ISO-8859-1 encoded databases)
22
23 > The rc-scripts have been modified to use the logic of
24 > sys-apps/baselayout net.ethx => net.lo symlink to be able to start more
25 > servers at once (this is working from 2005-11 but reworked today)
26 >
27 > Additionally the ebuilds code has been moved to two new eclasses,
28 > mysql_fx.eclass and mysql.eclass, the first own support functions, the
29 > last own the src_* pkg_* functions.
30 > The initial idea is that when a specific ebuild need to marked stable
31 > the code is moved from the mysql.eclass to the ebuild itself, to froze it.
32 >
33 > Documentation on:
34 > o switch to slotted
35 > o upgrade with no downtime using this new capabilities
36 > need to be written from scratch (this is going to be the more difficult
37 > part for me).
38 >
39 > there is a bash construct the eclass use to retrieve the latest two
40 > chars of a string, in the form: MYVAR="${MYARRAY[3]:(-2)}" , is this
41 > acceptable?
42 >
43 > The intention is to made mysql-5.0.18-r30 stable on 2005-02-15 at
44 > maximum on the first archs.
45 >
46 > AFAIK I'm the only one who have seen this stuff until now, any comment,
47 > any suggestion is highly apreciated.
48
49 Kalin.
50
51 --
52 |[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
53 +-> http://ThinRope.net/ <-+
54 |[ ______________________ ]|
55
56 --
57 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] [dRFC] slotted mysql ready Francesco Riosa <vivo@g.o>