Francesco Riosa wrote:
> Kalin KOZHUHAROV wrote:
> [...]
> 
>>>An eselect-mysql module has been prepared to create simlinks for the
>>>desired version of mysql making easy to switch between them (hopefully)
>>>
>>>The libraries (libmysqlclient & co) don't follow this logic and the
>>>higher version is always the default (similarly to sys-libs/db).
>>
>>So how does this affect packages that use say dev-perl/DBD-mysql ?
>>
>>If they can only use mysql-5, then the will be broken if they connect to a 
>>mysql-4 server using non
>>UTF-8 encoding. (bad wording, but generally speaking, there is an 
>>inconsistence in character
>>encoding betweet mysql-4 and mysql-5 that DOES break things on non ISO-8859-1 
>>encoded databases)
>>
> 
> [...]
> 
> At the moment 4.0 is not slotted, only >= 4.1 are.
> 
> The fact that is effectively possible to use a non slotted 4.0 together
>  with 4.1 and 5.0 does not mean that it should be used that way.
> 
> Does this answer your question ?
Well, not exactly :-)
Let me try to make it clearer.

Now this is in my mind, a mind that looks for bugs and troubles before they 
come out.

If mysql is slotted (and you said it it will be soon), what will happen to 
software that use mysql
bindings, for example dev-perl/DBD-mysql?

"{{{ A hypothetical example:

I used mysql-4.1.16-r30 and I have a locally encoded (say Shift_JIS) database. 
I have DBD-mysql
compiled against that and a package FOO using that works as expected.

Some package wants >=mysql-5.0.0 and DBD-mysql, and because mysql is SLOTed, 
portage says ok,
emerges mysql-5.0.18-r30 and rebuilds DBD-mysql against it.

The probable result is that package FOO will be silently broken because of 
incompatible changes
between mysql-4.1 and mysql-5.0 ...

"}}}

Actually reading on 
http://dev.mysql.com/doc/refman/5.0/en/upgrading-from-4-1.html there are quite
many incompatible changes.

Although this may be a problem for DBD-mysql, it will be exposed after mysql is 
SLOTed...
Or shall we SLOT dev-perl/DBD-mysql as well?
And what about ruby, python (any other language bindings?)?

Kalin.
-- 
|[ ~~~~~~~~~~~~~~~~~~~~~~ ]|
+-> http://ThinRope.net/ <-+
|[ ______________________ ]|
-- 
[email protected] mailing list

Reply via email to