All of lore.kernel.org
 help / color / mirror / Atom feed
* mysql 5
@ 2009-11-06  8:06 Frans Meulenbroeks
  2009-11-06  9:33 ` gagan singh
  0 siblings, 1 reply; 9+ messages in thread
From: Frans Meulenbroeks @ 2009-11-06  8:06 UTC (permalink / raw)
  To: openembedded-devel

Hi,

Over the last few days I created a recipe for mysql 5.1.40 based upon
the mysql 4.1.22 recipe, the nslu2 optware patches
(http://trac.nslu2-linux.org/optware/browser/trunk/sources/mysql5?rev=8339&order=date&desc=1)
and help on irc.

I think the work is done, so I have committed my changes. (commit 35cc93da88)
The package is called mysql5 and resides in the mysql directory

For now it has DEFAULT_PREFERENCE = "-1" for a number of reasons:

- I am not a mysql wiz so I would suggest someone else tests this too
(it works for the use case I have (mythtv))
- I would appeciate it if someone would review the recipe
- if one generates mysql5 the pacakges are named differently from the
ones from mysql 4 (mysql5 package names start with mysql5)
  HOWEVER a lot of filenames are the same. mysql5 requires
mysql5-native so if you build mysql5, some mysql4 files in staging
will be overwritten
- and last but not least: MYSQL5 DATABASES ARE INCOMPATIBLE WITH MYSQL4!
Apparently it is not possible to convert databases directly from 4 to
5.1, so I decided just to discard my databases.
According to the folks in #mysql the solution is to upgrade from 5 via
5.0 to 5.1.
If someone feels attracted to making a 5.0 recipe, be my guest (I've
already spent more time on this than I planned to, then again I also
learned more than I hoped for :-) )

I would like to ask your opinion on this. If possible I would like to
remove the DEFAULT_PREFERENCE in a week or so as mythtv 0.22 needs
mysql5 (and they are different packages)
Maybe it is possible to issue a big warning if someone moves from 4 to
5, but I do not really know how to detect this properly (especially
not in the case someone explicitly uninstalls mysql before installing
mysql5).

Your feedback is appreciated!
Frans

PS: for now the pid file of mysql is in /var/lib/mysql dir, if someone
feels it should live elsewhere let me know (or fix it after
discussion)
(it cannot be in /var/run as the pid file is written by user mysql who
has no write privileges in that dir, and, at least under angstrom,
/var/run links to /var/volatile/run and is created during boot so
/var/run/mysql is also not really an option)



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: mysql 5
  2009-11-06  8:06 mysql 5 Frans Meulenbroeks
@ 2009-11-06  9:33 ` gagan singh
  2009-11-06 10:37   ` Frans Meulenbroeks
  0 siblings, 1 reply; 9+ messages in thread
From: gagan singh @ 2009-11-06  9:33 UTC (permalink / raw)
  To: openembedded-devel

Great work Frans
������������������������������� There is mysql 5.0.67� version with almost finished recipe for OE.� 
http://209.85.229.132/search?q=cache:P0cKZWGWiMwJ:projects.linuxtogo.org/pipermail/openembedded-devel/2008-September/006249.html+mysql+5.0+OE&cd=3&hl=en&ct=clnk&gl=uk
�
����������������������������������� The issue comes up �as I was trying to run mythtv on beagle board �Sql 5.0 was minimum requirement for mythtv .21 .I somehow managed to get mysql 5.0.67 �get cross complied and run with mythtv .21 on beagle board.��� But I suspect my work around (skipping some runtime tests at two places during cross compilation)
�was not a proper fix so� keep to myself. �Perhaps some OE experts can port that recipe properly on OE.
�
�
Regards
�
Gagan
�
�
�


--- On Fri, 11/6/09, Frans Meulenbroeks <fransmeulenbroeks@gmail.com> wrote:


From: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Subject: [oe] mysql 5
To: openembedded-devel@lists.openembedded.org
Date: Friday, November 6, 2009, 3:06 AM


Hi,

Over the last few days I created a recipe for mysql 5.1.40 based upon
the mysql 4.1.22 recipe, the nslu2 optware patches
(http://trac.nslu2-linux.org/optware/browser/trunk/sources/mysql5?rev=8339&order=date&desc=1)
and help on irc.

I think the work is done, so I have committed my changes. (commit 35cc93da88)
The package is called mysql5 and resides in the mysql directory

For now it has DEFAULT_PREFERENCE = "-1" for a number of reasons:

- I am not a mysql wiz so I would suggest someone else tests this too
(it works for the use case I have (mythtv))
- I would appeciate it if someone would review the recipe
- if one generates mysql5 the pacakges are named differently from the
ones from mysql 4 (mysql5 package names start with mysql5)
&#65533; HOWEVER a lot of filenames are the same. mysql5 requires
mysql5-native so if you build mysql5, some mysql4 files in staging
will be overwritten
- and last but not least: MYSQL5 DATABASES ARE INCOMPATIBLE WITH MYSQL4!
Apparently it is not possible to convert databases directly from 4 to
5.1, so I decided just to discard my databases.
According to the folks in #mysql the solution is to upgrade from 5 via
5.0 to 5.1.
If someone feels attracted to making a 5.0 recipe, be my guest (I've
already spent more time on this than I planned to, then again I also
learned more than I hoped for :-) )

I would like to ask your opinion on this. If possible I would like to
remove the DEFAULT_PREFERENCE in a week or so as mythtv 0.22 needs
mysql5 (and they are different packages)
Maybe it is possible to issue a big warning if someone moves from 4 to
5, but I do not really know how to detect this properly (especially
not in the case someone explicitly uninstalls mysql before installing
mysql5).

Your feedback is appreciated!
Frans

PS: for now the pid file of mysql is in /var/lib/mysql dir, if someone
feels it should live elsewhere let me know (or fix it after
discussion)
(it cannot be in /var/run as the pid file is written by user mysql who
has no write privileges in that dir, and, at least under angstrom,
/var/run links to /var/volatile/run and is created during boot so
/var/run/mysql is also not really an option)

_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel




From dp@xora.org.uk Fri Nov 06 10:49:44 2009
Received: from [209.85.219.209] (helo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: mysql 5
  2009-11-06  9:33 ` gagan singh
@ 2009-11-06 10:37   ` Frans Meulenbroeks
  2009-11-06 14:33     ` Frans Meulenbroeks
  0 siblings, 1 reply; 9+ messages in thread
From: Frans Meulenbroeks @ 2009-11-06 10:37 UTC (permalink / raw)
  To: openembedded-devel

2009/11/6 gagan singh <gagan2172@yahoo.com>:
> Great work Frans
>                                 There is mysql 5.0.67  version with almost finished recipe for OE.
> http://209.85.229.132/search?q=cache:P0cKZWGWiMwJ:projects.linuxtogo.org/pipermail/openembedded-devel/2008-September/006249.html+mysql+5.0+OE&cd=3&hl=en&ct=clnk&gl=uk
>
>                                     The issue comes up  as I was trying to run mythtv on beagle board  Sql 5.0 was minimum requirement for mythtv .21 .I somehow managed to get mysql 5.0.67  get cross complied and run with mythtv .21 on beagle board.    But I suspect my work around (skipping some runtime tests at two places during cross compilation)
>  was not a proper fix so  keep to myself.  Perhaps some OE experts can port that recipe properly on OE.
>

Thiere is also some work for 5.0 in the bug tracker.
http://bugs.openembedded.org/show_bug.cgi?id=4577
Not sure how good or how complete it is.

Frans



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: mysql 5
  2009-11-06 10:37   ` Frans Meulenbroeks
@ 2009-11-06 14:33     ` Frans Meulenbroeks
  2009-11-07 14:39       ` Koen Kooi
  0 siblings, 1 reply; 9+ messages in thread
From: Frans Meulenbroeks @ 2009-11-06 14:33 UTC (permalink / raw)
  To: openembedded-devel

one more thing
when installing mysql5 client or server packages they insist on
installing libmysqlclient-dev
No idea why this should be the -dev package. Content seems as expected.
Solutions are welcome !

Frans



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: mysql 5
  2009-11-06 14:33     ` Frans Meulenbroeks
@ 2009-11-07 14:39       ` Koen Kooi
  2009-11-07 18:01         ` Frans Meulenbroeks
  0 siblings, 1 reply; 9+ messages in thread
From: Koen Kooi @ 2009-11-07 14:39 UTC (permalink / raw)
  To: openembedded-devel

On 06-11-09 15:33, Frans Meulenbroeks wrote:
> one more thing
> when installing mysql5 client or server packages they insist on
> installing libmysqlclient-dev
> No idea why this should be the -dev package. Content seems as expected.
> Solutions are welcome !

Probably a .so file that isn't a symlink to so.4.5.5.64.4

regards,

Koen




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: mysql 5
  2009-11-07 14:39       ` Koen Kooi
@ 2009-11-07 18:01         ` Frans Meulenbroeks
  2009-11-07 18:45           ` Koen Kooi
  2009-11-07 18:49           ` Leon Woestenberg
  0 siblings, 2 replies; 9+ messages in thread
From: Frans Meulenbroeks @ 2009-11-07 18:01 UTC (permalink / raw)
  To: openembedded-devel

2009/11/7 Koen Kooi <k.kooi@student.utwente.nl>:
> On 06-11-09 15:33, Frans Meulenbroeks wrote:
>>
>> one more thing
>> when installing mysql5 client or server packages they insist on
>> installing libmysqlclient-dev
>> No idea why this should be the -dev package. Content seems as expected.
>> Solutions are welcome !
>
> Probably a .so file that isn't a symlink to so.4.5.5.64.4
>
> regards,
>
> Koen

Guess so, no idea how this symlinking exactly works and how it is
split over the normal and the -dev package.

Frans



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: mysql 5
  2009-11-07 18:01         ` Frans Meulenbroeks
@ 2009-11-07 18:45           ` Koen Kooi
  2009-11-07 18:49           ` Leon Woestenberg
  1 sibling, 0 replies; 9+ messages in thread
From: Koen Kooi @ 2009-11-07 18:45 UTC (permalink / raw)
  To: openembedded-devel

On 07-11-09 19:01, Frans Meulenbroeks wrote:
> 2009/11/7 Koen Kooi<k.kooi@student.utwente.nl>:
>> On 06-11-09 15:33, Frans Meulenbroeks wrote:
>>>
>>> one more thing
>>> when installing mysql5 client or server packages they insist on
>>> installing libmysqlclient-dev
>>> No idea why this should be the -dev package. Content seems as expected.
>>> Solutions are welcome !
>>
>> Probably a .so file that isn't a symlink to so.4.5.5.64.4
>>
>> regards,
>>
>> Koen
>
> Guess so, no idea how this symlinking exactly works and how it is
> split over the normal and the -dev package.

you can inspect the install/ dir and then the .shlibs files in staging, 
that should tell you in what package an .so file is hiding that isn't a 
symlink.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: mysql 5
  2009-11-07 18:01         ` Frans Meulenbroeks
  2009-11-07 18:45           ` Koen Kooi
@ 2009-11-07 18:49           ` Leon Woestenberg
  2009-11-07 20:27             ` Frans Meulenbroeks
  1 sibling, 1 reply; 9+ messages in thread
From: Leon Woestenberg @ 2009-11-07 18:49 UTC (permalink / raw)
  To: openembedded-devel

Hello Frans,

On Sat, Nov 7, 2009 at 7:01 PM, Frans Meulenbroeks
<fransmeulenbroeks@gmail.com> wrote:
> 2009/11/7 Koen Kooi <k.kooi@student.utwente.nl>:
>> On 06-11-09 15:33, Frans Meulenbroeks wrote:
>>>
>>> when installing mysql5 client or server packages they insist on
>>> installing libmysqlclient-dev
>>> No idea why this should be the -dev package. Content seems as expected.
>>> Solutions are welcome !
>>
>> Probably a .so file that isn't a symlink to so.4.5.5.64.4
>>
>
> Guess so, no idea how this symlinking exactly works and how it is
> split over the normal and the -dev package.
>
The package itself contains the version-named library.

The -dev package contains an non-version-named library .so symlink to
the (version-named) library itself.

Typically the -dev package should thus package the .so symlink.

Regards,
-- 
Leon



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: mysql 5
  2009-11-07 18:49           ` Leon Woestenberg
@ 2009-11-07 20:27             ` Frans Meulenbroeks
  0 siblings, 0 replies; 9+ messages in thread
From: Frans Meulenbroeks @ 2009-11-07 20:27 UTC (permalink / raw)
  To: openembedded-devel

2009/11/7 Leon Woestenberg <leon.woestenberg@gmail.com>:
> Hello Frans,
>
> On Sat, Nov 7, 2009 at 7:01 PM, Frans Meulenbroeks
> <fransmeulenbroeks@gmail.com> wrote:
>> 2009/11/7 Koen Kooi <k.kooi@student.utwente.nl>:
>>> On 06-11-09 15:33, Frans Meulenbroeks wrote:
>>>>
>>>> when installing mysql5 client or server packages they insist on
>>>> installing libmysqlclient-dev
>>>> No idea why this should be the -dev package. Content seems as expected.
>>>> Solutions are welcome !
>>>
>>> Probably a .so file that isn't a symlink to so.4.5.5.64.4
>>>
>>
>> Guess so, no idea how this symlinking exactly works and how it is
>> split over the normal and the -dev package.
>>
> The package itself contains the version-named library.
>
> The -dev package contains an non-version-named library .so symlink to
> the (version-named) library itself.
>
> Typically the -dev package should thus package the .so symlink.
>
> Regards,
> --
> Leon

Leon, Koen, thanks, I think I found it, testing my work now, will
commit a fix later today or tomorrow.
Frans



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-11-07 20:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-06  8:06 mysql 5 Frans Meulenbroeks
2009-11-06  9:33 ` gagan singh
2009-11-06 10:37   ` Frans Meulenbroeks
2009-11-06 14:33     ` Frans Meulenbroeks
2009-11-07 14:39       ` Koen Kooi
2009-11-07 18:01         ` Frans Meulenbroeks
2009-11-07 18:45           ` Koen Kooi
2009-11-07 18:49           ` Leon Woestenberg
2009-11-07 20:27             ` Frans Meulenbroeks

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.