Comments - Building MariaDB on CentOS
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
I got issue at this step: sudo yum-builddep mariadb-server Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile No such package(s): mariadb-server
Note: 1. I already installed yum-utils yum list |grep yum-utils yum-utils.noarch 1.1.30-42.el6_10 @updates
I wanted LZ4, Snappy, etc.. but centos packages still don't include that. So I followed this guide and now have bleeding edge mariadb with full compression support. I took notes on how to do it for CentOS 7 64bit here: http://www.askapache.com/linux/mariadb-lz4-compression-howto-centos.html
So, if one wanted to go about building the MariaDB-Galera package how would they go about it?
Same as for the non-galera package, but using the mariadb-galera source tree.
How up to date are these instructions to come close to what MariaDB 5.5.30 YUM repository is providing ?
I am asking as it seems MariaDB 5.5.30 YUM RPM no longer works with MyDumper https://mariadb.atlassian.net/browse/MDEV-4554 so I will need to build my own MariaDB 5.5.30 RPMs it seems.
Still up to date. Note, that you can always see in buildbot the complete build log and actual commands that we're using to build the release.
Great info found on this page which makes the RPMs generation process very easy. However I have some additional remarks to make.
1) cmake 2.8 or higher required and is not available on CentOS 5.9 nor 6.3 (2.6 version only). So it has to be retrieved from www.cmake.org as tarball and installed under /usr/local/bin using ./configure l make install. The make sure to put /usr/local/bin first in your path
2) to comply with rpm naming rules I had to change the following lines in cmake/cpack_rpm.cmake (bzr diff output)
-SET(CPACK_PACKAGE_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}-${VERSION}-${RPM}-${CMAKE_SYSTEM_PROCESSOR}") +SET(CPACK_PACKAGE_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}")
-SET(CPACK_RPM_PACKAGE_RELEASE 1) +SET(CPACK_RPM_PACKAGE_RELEASE 1.${RPM})
and run
cmake -DRPM=el5 on CentOS 5.x and cmake -DRPM=el6 on CentOS 6.x
3) My guess would also be that version should be 10.0 and patch rev 0 and 5.5 and patch rev 29 for MariaDB 5.5
4) the generated package file name are also wrong because they should match the RPM infos that they contain
rpm -qp --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n' MariaDB-X.rpm gives what MariaDB-X.rpm should really be namingly MariaDB-X-5.5.29-0.el5.x86_64.rpm
I could not figure out how to change this as the .spec.in and .spec files seems to be automatically generated and I could not easily find what info to change in which file
After doing:
bakery/tarbake51.sh last:1 $MARIA_WORK
You will get a tarball in the directory
Run: bakery/autobake51-centos.sh mariadb-[TAB] (because it is probably something like mariadb-5.3.2-beta.tar.g)
You'll get an error message:
cp: cannot stat `/srv/shared/rpmsign/home-dot-rpmmacros': No such file or directory
This is due to signing related foo
Also note this later: [colin@rhel6-amd64 bakery-102]$ bakery/autobake51-centos.sh mariadb-5.3.2-beta.tar.gz cp: cannot create regular file `/usr/src/redhat/SOURCES/mariadb-5.3.2-beta.tar.gz': Permission denied cp: cannot create regular file `/usr/src/redhat/SOURCES/MySQL-OurDelta-shared-5.0.87.d10-65.el6.x86_64.rpm': Permission denied
Permission errors. You should not be building as root...