Open GoogleCodeExporter opened 9 years ago
Yes, I had to do that too to make it build properly on a CentOS 5.0 box. My
steps were:
1) Download mysql-community-2.0.37.src.rpm, install. Move spec file aside.
(Really
just getting the pristine mysql-2.0.37 tarball.)
2) Download mysql-2.0.22.src.rpm for CentOS 5, install.
3) Modify spec file to use version 2.0.37, adjust Release to suit your site
needs,
then add a Changelog entry.
4) Modify spec file and add '%define runselftest 0' (on line 10).
5) Modify spec file by commenting out Patch3, Patch4, and Patch 8. Comment out
the
%patch3, %patch4, and %patch8 macro calls.
6) Download the google mysql patch and put in the SOURCES/ directory. I named
it
mysql-5.0.37-google.patch
7) Add google patch to spec file by adding:
Patch101: mysql-5.0.37-google.patch
8) Configure the patch to be applied by putting at the end of the existing
%patch
macro calls:
%patch101 -p1
9) Adjust the &LOCK_stats variables in two files. Add this to the spec file
right
before the first make:
# Fix a Google patch bug where r50 didn't make it into final patch release:
sed -i -e 's/\&LOCK_stats/\&LOCK_status/' sql/slave.cc sql/sql_repl.cc
10) Modify spec file to account for relocated man pages: Adjusted mysqld and
mysqlmanager man pages to be in man section 8.
11) Modify spec file to account for new man pages: Added a binary and several
man
pages that were previously unpackaged, all in the server packaging section.
Then the rpms built properly on both x86 and x86_64 machines.
Original comment by mrballcb
on 16 Nov 2007 at 11:24
To be fixed in the next patch that is published.
Original comment by mdcal...@gmail.com
on 16 May 2008 at 10:21
Original issue reported on code.google.com by
freewiz...@gmail.com
on 7 Jul 2007 at 9:26