percona-server.spec contains code that CentOS 5 rpmbuild(1) considers a parse error (output below). As a result it's not possible to build PS RPM's in CentOS 5. Relevant code:
Provides: mysql-server # %if %{rhel} BuildRequires: pam-devel %endif # BuildRequires: %{distro_buildreq}
This was introduced in revno 431. BuildRequires need to be consolidated.
$ sh ~/percona-server/build/build-rpm.sh --nosign --quiet work/ rm -rf Percona-Server-5.5.28-rel29.3-release Percona-Server-5.5.28-rel29.3-debug Prepare Percona Server sources rm -rf Percona-Server-5.5.28-rel29.3 Percona-Server-5.5.28 ln -s Percona-Server Percona-Server-5.5.28-rel29.3 ln -s Percona-Server Percona-Server-5.5.28 cp -R HandlerSocket-Plugin-for-MySQL Percona-Server-5.5.28-rel29.3/storage patch -p1 -d Percona-Server-5.5.28-rel29.3/storage < handlersocket.patch patching file HandlerSocket-Plugin-for-MySQL/configure.ac cp -R UDF "Percona-Server-5.5.28-rel29.3" cd "Percona-Server-5.5.28-rel29.3"/UDF && autoreconf --install Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL' libtoolize: `config.guess' exists: use `--force' to overwrite libtoolize: `config.sub' exists: use `--force' to overwrite libtoolize: `ltmain.sh' exists: use `--force' to overwrite Installing license files install -m 644 COPYING.* Percona-Server-5.5.28-rel29.3
Percona Server source code is ready Now change directory to Percona-Server-5.5.28-rel29.3 define variables as show below
export CFLAGS="-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2" export CXXFLAGS="-O2 -g -fmessage-length=0 -D_FORTIFY_SOURCE=2" export LIBS=-lrt
and run cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF && make all install
error: parse error in expression error: /home/buildbot/percona-server/build/percona-server.spec:236: parseExpressionBoolean returns -1 error: Package has no %description: Percona-Server-55
percona-server.spec contains code that CentOS 5 rpmbuild(1) considers a parse error (output below). As a result it's not possible to build PS RPM's in CentOS 5. Relevant code:
Provides: mysql-server
#
%if %{rhel}
BuildRequires: pam-devel
%endif
#
BuildRequires: %{distro_buildreq}
This was introduced in revno 431. BuildRequires need to be consolidated.
$ sh ~/percona- server/ build/build- rpm.sh --nosign --quiet work/ Server- 5.5.28- rel29.3- release Percona- Server- 5.5.28- rel29.3- debug Server- 5.5.28- rel29.3 Percona- Server- 5.5.28 Server- 5.5.28- rel29.3 Server- 5.5.28 Plugin- for-MySQL Percona- Server- 5.5.28- rel29.3/ storage Server- 5.5.28- rel29.3/ storage < handlersocket.patch Plugin- for-MySQL/ configure. ac Server- 5.5.28- rel29.3" Server- 5.5.28- rel29.3" /UDF && autoreconf --install Server- 5.5.28- rel29.3
rm -rf Percona-
Prepare Percona Server sources
rm -rf Percona-
ln -s Percona-Server Percona-
ln -s Percona-Server Percona-
cp -R HandlerSocket-
patch -p1 -d Percona-
patching file HandlerSocket-
cp -R UDF "Percona-
cd "Percona-
Using `AC_PROG_RANLIB' is rendered obsolete by `AC_PROG_LIBTOOL'
libtoolize: `config.guess' exists: use `--force' to overwrite
libtoolize: `config.sub' exists: use `--force' to overwrite
libtoolize: `ltmain.sh' exists: use `--force' to overwrite
Installing license files
install -m 644 COPYING.* Percona-
Percona Server source code is ready Server- 5.5.28- rel29.3 define variables as show below
Now change directory to Percona-
export CFLAGS="-O2 -g -fmessage-length=0 -D_FORTIFY_ SOURCE= 2" SOURCE= 2"
export CXXFLAGS="-O2 -g -fmessage-length=0 -D_FORTIFY_
export LIBS=-lrt
and run cmake . -DCMAKE_ BUILD_TYPE= RelWithDebInfo -DBUILD_ CONFIG= mysql_release -DFEATURE_ SET=community -DWITH_ EMBEDDED_ SERVER= OFF && make all install
error: parse error in expression percona- server/ build/percona- server. spec:236: parseExpression Boolean returns -1
error: /home/buildbot/
error: Package has no %description: Percona-Server-55