1 |
Francesco Riosa wrote: |
2 |
> Kalin KOZHUHAROV wrote: |
3 |
> [...] |
4 |
> |
5 |
>>>An eselect-mysql module has been prepared to create simlinks for the |
6 |
>>>desired version of mysql making easy to switch between them (hopefully) |
7 |
>>> |
8 |
>>>The libraries (libmysqlclient & co) don't follow this logic and the |
9 |
>>>higher version is always the default (similarly to sys-libs/db). |
10 |
>> |
11 |
>>So how does this affect packages that use say dev-perl/DBD-mysql ? |
12 |
>> |
13 |
>>If they can only use mysql-5, then the will be broken if they connect to a mysql-4 server using non |
14 |
>>UTF-8 encoding. (bad wording, but generally speaking, there is an inconsistence in character |
15 |
>>encoding betweet mysql-4 and mysql-5 that DOES break things on non ISO-8859-1 encoded databases) |
16 |
>> |
17 |
> |
18 |
> [...] |
19 |
> |
20 |
> At the moment 4.0 is not slotted, only >= 4.1 are. |
21 |
> |
22 |
> The fact that is effectively possible to use a non slotted 4.0 together |
23 |
> with 4.1 and 5.0 does not mean that it should be used that way. |
24 |
> |
25 |
> Does this answer your question ? |
26 |
Well, not exactly :-) |
27 |
Let me try to make it clearer. |
28 |
|
29 |
Now this is in my mind, a mind that looks for bugs and troubles before they come out. |
30 |
|
31 |
If mysql is slotted (and you said it it will be soon), what will happen to software that use mysql |
32 |
bindings, for example dev-perl/DBD-mysql? |
33 |
|
34 |
"{{{ A hypothetical example: |
35 |
|
36 |
I used mysql-4.1.16-r30 and I have a locally encoded (say Shift_JIS) database. I have DBD-mysql |
37 |
compiled against that and a package FOO using that works as expected. |
38 |
|
39 |
Some package wants >=mysql-5.0.0 and DBD-mysql, and because mysql is SLOTed, portage says ok, |
40 |
emerges mysql-5.0.18-r30 and rebuilds DBD-mysql against it. |
41 |
|
42 |
The probable result is that package FOO will be silently broken because of incompatible changes |
43 |
between mysql-4.1 and mysql-5.0 ... |
44 |
|
45 |
"}}} |
46 |
|
47 |
Actually reading on http://dev.mysql.com/doc/refman/5.0/en/upgrading-from-4-1.html there are quite |
48 |
many incompatible changes. |
49 |
|
50 |
Although this may be a problem for DBD-mysql, it will be exposed after mysql is SLOTed... |
51 |
Or shall we SLOT dev-perl/DBD-mysql as well? |
52 |
And what about ruby, python (any other language bindings?)? |
53 |
|
54 |
Kalin. |
55 |
-- |
56 |
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]| |
57 |
+-> http://ThinRope.net/ <-+ |
58 |
|[ ______________________ ]| |
59 |
-- |
60 |
gentoo-dev@g.o mailing list |