Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 78452

Summary: MySQL 4.1.9 ebuild
Product: Gentoo Linux Reporter: Jasmin Buchert <jasmin-genbug>
Component: New packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED DUPLICATE    
Severity: enhancement CC: farcepest, gurligebis, jameslporter, Mess1214, tradergt, vivo, volchok
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 83011    
Attachments: mysql-4.1.9-mysqld-safe-sh.diff
mysql-4.1.9-thrssl.patch
mysql-4.1.9.ebuild
mysql-CAN-2005-0004.diff
mysql-4.1.9.ebuild
mysql-4.1.8-CAN-2005-0004.diff (fixed)
my.cnf-4.1
mysql-4.1.9.ebuild
mysql-4.1.9.ebuild
mysql-4.1.19-ndb.diff

Description Jasmin Buchert 2005-01-17 18:08:30 UTC
I bumped the MySQL ebuild to 4.1.9 and updated 2 patches for the new version:
mysql-4.1.9-mysqld-safe-sh.diff
mysql-4.1.9-thrssl.patch
Comment 1 Jasmin Buchert 2005-01-17 18:09:11 UTC
Created attachment 48801 [details]
mysql-4.1.9-mysqld-safe-sh.diff
Comment 2 Jasmin Buchert 2005-01-17 18:09:38 UTC
Created attachment 48802 [details]
mysql-4.1.9-thrssl.patch
Comment 3 Jasmin Buchert 2005-01-17 18:10:00 UTC
Created attachment 48803 [details]
mysql-4.1.9.ebuild
Comment 4 Jasmin Buchert 2005-01-17 18:26:39 UTC
Created attachment 48804 [details, diff]
mysql-CAN-2005-0004.diff

I just saw that there's a vulnerability at bug #77805.
The patch for 4.1.8 there applys cleanly to 4.1.9.
Comment 5 Jasmin Buchert 2005-01-17 18:27:39 UTC
Created attachment 48805 [details]
mysql-4.1.9.ebuild

Updated the ebuild to apply mysql-CAN-2005-0004.diff.
Comment 6 Jasmin Buchert 2005-01-18 16:39:39 UTC
Created attachment 48911 [details, diff]
mysql-4.1.8-CAN-2005-0004.diff (fixed)

Fixed typo in patch
Comment 7 Simon Detheridge 2005-01-19 04:29:31 UTC
the updated mysql-CAN-2005-0004.diff did not apply on my machine.

I had to add the command: "cd mysql-4.1.9" before the call to "epatch ${FILESDIR}/mysql-CAN-2005-0004.diff" - then the ebuild worked correctly.
Comment 8 Andy Dustman 2005-01-19 12:35:29 UTC
I would like to suggest some changes to the default /etc/mysql/my.cnf file. MySQL-4.1 adds a lot of support for character sets. The default character set is latin1, which is probably uncontroversial, although some may prefer to use ascii. However, the default collation (how the character set is sorted) is latin1_swedish_ci. I suspect Swedish is not a real popular choice. I also suspect that many users will only discover this after creating some tables.

What I propose to add to mysql.cnf is the default settings, commented out, to the [mysqld] section:

# Character set and collation (sort order) for MySQL-4.1
#default-character-set = latin1
#default-collation     = latin1_swedish_ci

At least then there's a hint to the administrator that the configuration option exists. Also, since my.cnf seems to come from the Portage files directory, the change won't break <dev-db/mysql-4.1*.

(It would also be nice if skip-innodb were not commented out when USE=innodb is set.)
Comment 9 Jasmin Buchert 2005-01-19 16:10:59 UTC
Created attachment 48997 [details]
my.cnf-4.1

Updated my.cnf:
- Usage of set-variable is deprecated since MySQL 4.0.2. Use new syntax.
- Added some options from the my-medium.cnf example (for systems with
  32M-64M RAM). Also added a reference to other examples with values for
  different system configurations.
Comment 10 Jasmin Buchert 2005-01-19 16:18:34 UTC
Created attachment 48999 [details]
mysql-4.1.9.ebuild

- Fix CAN-2005-0004 patch not applying
- Comment out skip-innodb in my.cnf when USE=innodb
- Use $FILESDIR/my.cnf-4.1
Comment 11 Francesco R. (RETIRED) gentoo-dev 2005-01-21 02:25:19 UTC
I don't know why but yesterday night I was looking exactly for this bug and I've not found it ... I will change my looking glass.

So I've continued to post at #77805

http://bugs.gentoo.org/show_bug.cgi?id=77805#c26
http://bugs.gentoo.org/attachment.cgi?id=49070

Can you take a look at that?
Trash the patches regading ... the patches and keep the ewarn's changes.
Comment 12 Jasmin Buchert 2005-01-21 03:23:38 UTC
Created attachment 49100 [details]
mysql-4.1.9.ebuild

Updated the ebuild with the ewarn message from bug #77805 and
the default collation is now latin1_general_ci.
Comment 13 frank 2005-01-24 07:03:55 UTC
Created attachment 49372 [details, diff]
mysql-4.1.19-ndb.diff

this patch is needed for preventing ndb nodes to crash on high load.
see http://bugs.mysql.com/bug.php?id=7928
Comment 14 frank 2005-01-24 09:04:50 UTC
Comment on attachment 49372 [details, diff]
mysql-4.1.19-ndb.diff

this patch is needed for preventing ndb nodes to crash on high load.
see http://bugs.mysql.com/bug.php?id=7928
Comment 15 Andy Dustman 2005-01-28 08:57:11 UTC
The last proposed ebuild has this:

PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )
		 ruby? ( >=dev-ruby/mysql-ruby-2.5 )"

You could also add "python? ( >=dev-python/mysql-python-1.1.9 )" to that list.
Comment 16 Francesco R. (RETIRED) gentoo-dev 2005-01-29 13:14:46 UTC
steps to convert mysql databases from latin1 to utf8

# /usr/bin/mysqldump \
--user=USER \
--password=PASSWORD \
--host=localhost \
--allow-keywords \
--skip-comments \
--create-options \
--delete-master-logs \
--disable-keys \
--extended-insert \
--lock-all-tables \
--master-data \
--verbose \
-r backup-file.sql \
--all-databases

# /usr/bin/sed -i "s/CHARSET=latin1/CHARSET=utf8/" backup-file.sql
# /usr/bin/sed -i "s/CHARACTER SET latin1/CHARACTER SET utf8/" backup-file.sql
# /usr/bin/sed -i \
"s/character set latin1 collate latin1/character set utf8 collate utf8/" \ backup-file.sql

# /usr/bin/mysql -uUSER -pPASSWORD test < backup-file.sql
Comment 17 James M 2005-02-04 11:50:55 UTC
Is there any reason this hasn't been added to portage yet?  Thanks.
Comment 18 Francesco R. (RETIRED) gentoo-dev 2005-02-07 17:57:18 UTC
finally I've putted it on my site at url:
http://www.francesco-riosa.com/gentoo/mysql-5.0.ebuild.tar.gz
some infos at 
http://www.francesco-riosa.com/gentoo/

the ebuild is only sligtly modified from the one here proposed and not tested (it's still compiling) but I have a running version on ~amd64 of mysql-4.1.9 with very few differences from this one

enjoy
Comment 19 Francesco R. (RETIRED) gentoo-dev 2005-02-15 06:56:03 UTC
4.1.10 is out, fixes bug 77805 too
Comment 20 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-02-16 09:25:18 UTC
4.1.10 has been released, I'll try porting the ebuild :)
Comment 21 Francesco R. (RETIRED) gentoo-dev 2005-02-16 09:51:56 UTC
Bjarke Istrup Pedersen,
I'm maintaining an alternative suite of ebuilds for mysql, waiting for the new mysql series to be included in portage tree.
Testers are needed, can you try to use this overlay?

http://www.francesco-riosa.com/gentoo/mysql_stable-r1.ebuild.tar.gz

you may want to mask >=mysql-5.0 before install it. Also if you have already a $OVERLAY/dev-db/mysql you may want to backup/remove it before.
Other info at:
http://www.francesco-riosa.com/gentoo/
thank you

Comment 22 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-02-16 12:00:55 UTC
Just copied the 4.1.9 ebuild and remove the CAN patch (included), and it builds fine.
Comment 23 Jeff Smelser 2005-02-16 13:09:58 UTC
Why wouldnt you just go to Francesco Riosa page and get his.. He is doing a good job of keeping 4.1 up to date. As well as 5
Comment 24 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-02-16 17:09:55 UTC
I did it before he posted the link :)
Comment 25 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2005-02-16 17:11:10 UTC
hehe, didn't see he had posted it already, guess I should start reading things a bit more detailed :)
Comment 26 Francesco R. (RETIRED) gentoo-dev 2005-02-20 14:34:59 UTC
please replace the link at #21 with:

http://www.francesco-riosa.com/gentoo/mysql_overlay-latest.tar.gz

and please emerge with 
# FEATURES="maketest" emerge mysql
if you have the time, sending me "emerge --info" + "emerge output" 
both, failing or successfull is *veeeeery* apreciated :-)
Comment 27 Canal Vorfeed 2005-02-21 13:07:14 UTC
Right now there are no way to install MySQL 4.1.x from official gentoo portage tree (mysql 4.1.8 is gone from mirrors and mysql 4.1.(9|10) is not there). May be it's time to include something ?
Comment 28 Andy Dustman 2005-03-04 22:00:15 UTC
With the recent Portage tree reshuffling, the mysql-5.0.2 build no longer wants to build, since sys-apps/procps no longer exists; it was moved to sys-process/procps. Could be the 4.1.10 build is broken as well; both should be checked. I masked 5* since I really didn't want it yet anyway.
Comment 29 Francesco R. (RETIRED) gentoo-dev 2005-03-05 05:19:17 UTC
thanks Andy, I've answered to a similar question at http://bugs.gentoo.org/show_bug.cgi?id=83011#c4 
today
Comment 30 James Porter 2005-03-14 20:46:46 UTC
Why isn't this in portage! I would like to be able to use mysql administrator and query browser, since mysqlgui has no longer been supported for some time now...We really need to get the 4.1 in the tree...why all the overlay crap?
Comment 31 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-03-15 00:36:58 UTC
james porter: it's called insufficent time on my part (6 weeks left of a university degree).

If you'd see the post Francesco made to the gentoo-dev mailing list today, you'd see that I'm officially supporting what he is doing, and that the overlay content will be merged to the tree reasonably soon.
Comment 32 James Porter 2005-03-15 08:48:08 UTC
Ok, I can understand. Are you the only dev that maintains mysql section of the tree? Thanks for working on it. I can't wait to see mysql administrator and mysql query browser under linux. 
Comment 33 Francesco R. (RETIRED) gentoo-dev 2005-03-15 16:04:16 UTC
About comment #32
I don't know if this packages work with 4.0.24 I know for sure both work fine on "~x86" and "amd64" boxes with mysql-4.1.10a, at least using socket connections.
Download the "overlay for mysql-4.1.10a" from bug #83011 If you need that version.

For further comments about please open another bug.
Comment 34 James Porter 2005-03-26 16:28:56 UTC
Even on ~x86 I can't get get 4.1 am I doing something wrong? I can't make mysql-administrator restore my back-up from my windows mysql server with 4.1
Comment 35 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-05-17 02:20:26 UTC

*** This bug has been marked as a duplicate of 83011 ***