Comments - Building MariaDB on CentOS

11 years, 2 months ago Olivier Bourdon

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

 
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.