Unable to build the deb packages

Bug #1118398 reported by Hrvoje Matijakovic
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
Medium
Alexey Bychko
5.1
Invalid
Medium
Alexey Bychko
5.5
Fix Released
Medium
Alexey Bychko

Bug Description

I'm having issues with building the deb packages from current trunk.

Build script output:
root@ps55:/usr/local/src/percona-server/dpkgbuild# bash build/build-dpkg.sh target/
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
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
configure.ac:2: installing `./missing'
src/Makefile.am: installing `./depcomp'
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

dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: env): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=rel29.3
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor): -D_FORTIFY_SOURCE=2
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: env): -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fno-exceptions -DPERCONA_INNODB_VERSION=rel29.3
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions -Wl,-z,relro
dpkg-buildpackage: source package percona-server-5.5
dpkg-buildpackage: source version 5.5.28-rel29.3-431.precise
dpkg-buildpackage: source changed by Ignacio Nin <email address hidden>
dpkg-buildpackage: host architecture amd64
 dpkg-source --before-build Percona-Server-5.5.28-rel29.3
 fakeroot debian/rules clean
dh clean
   dh_testdir
   dh_auto_clean
   dh_clean
rm -rf CMakeFiles
dpatch deapply-all
50_mysql-test__db_test not applied to ./ .
40_scripts__mysql_install_db.sh__no_test not applied to ./ .
30_scripts__mysqld_safe.sh__signals not applied to ./ .
20_scripts__mysql_create_system_tables__no_test not applied to ./ .
10_percona-server-prefix not applied to ./ .
rm -rf patch-stamp patch-stampT debian/patched
 dpkg-source -b Percona-Server-5.5.28-rel29.3
dpkg-source: info: using source format `1.0'
dpkg-source: warning: source directory 'Percona-Server-5.5.28-rel29.3' is not <sourcepackage>-<upstreamversion> 'percona-server-5.5-5.5.28-rel29.3'
dpkg-source: info: building percona-server-5.5 in percona-server-5.5_5.5.28-rel29.3-431.precise.tar.gz
dpkg-source: info: building percona-server-5.5 in percona-server-5.5_5.5.28-rel29.3-431.precise.dsc
 debian/rules build
dh build
   dh_testdir
   debian/rules override_dh_auto_configure
make[1]: Entering directory `/usr/local/src/percona-server/dpkgbuild/target/Percona-Server-5.5.28-rel29.3'
test -d debian/patched || install -d debian/patched
dpatch apply-all
applying patch 10_percona-server-prefix to ./ ... ok.
applying patch 20_scripts__mysql_create_system_tables__no_test to ./ ... ok.
applying patch 30_scripts__mysqld_safe.sh__signals to ./ ... failed.
make[1]: *** [patch-stamp] Error 1
make[1]: Leaving directory `/usr/local/src/percona-server/dpkgbuild/target/Percona-Server-5.5.28-rel29.3'
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

Tags: pkg
Alexey Bychko (abychko)
tags: added: pkg
Alexey Bychko (abychko)
Changed in percona-server:
status: Fix Committed → In Progress
Revision history for this message
Alexey Bychko (abychko) wrote :

can't reproduce on 5.1

Revision history for this message
Alexey Bychko (abychko) wrote :

can't reproduce on 5.5 r465

Changed in percona-server:
status: In Progress → Invalid
Revision history for this message
Alexey Kopytov (akopytov) wrote :
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-1312

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.