Here's a starting point for a patch that fixes this bug (the with-mysql-bindir parameter is incorrect IIRC)
=== modified file 'build-ps/debian/rules' --- build-ps/debian/rules 2014-01-14 07:11:02 +0000 +++ build-ps/debian/rules 2014-01-16 05:10:52 +0000 @@ -169,6 +169,21 @@
# make install (trailing slash needed for innobase) (cd $(builddir) && $(MAKE) install DESTDIR=$(TMP)/) + + # build HandlerSocket + (cd storage/HandlerSocket-Plugin-for-MySQL && \ + MYSQL_CFLAGS="-I $(builddir)/include" \ + ./configure --with-mysql-source=$(MYSQL_SRC) \ + --with-mysql-bindir=$(builddir)/bin \ + --with-mysql-plugindir=$(TMP)/mysql/plugin && \ + make DESTDIR=$(TMP) install) + + # Build UDFs + (cd UDF && \ + CXXFLAGS="$CXXFLAGS -I$(builddir)/include" \ + ./configure --includedir=$(builddir)/include \ + --libdir=$(TMP)/mysql/plugin && \ + make DESTDIR=$(TMP) install)
# After installing, remove rpath to make lintian happy. set +e; \ @@ -302,8 +317,6 @@
override_dh_auto_install: dh_auto_install - cd storage/HandlerSocket-Plugin-for-MySQL && make DESTDIR=$(TMP) install - cd UDF && make DESTDIR=$(TMP) install
.PHONY: clean clean-patched configure build binary binary-indep binary-arch install patch
Here's a starting point for a patch that fixes this bug (the with-mysql-bindir parameter is incorrect IIRC)
=== modified file 'build- ps/debian/ rules' debian/ rules 2014-01-14 07:11:02 +0000 debian/ rules 2014-01-16 05:10:52 +0000
--- build-ps/
+++ build-ps/
@@ -169,6 +169,21 @@
# make install (trailing slash needed for innobase) HandlerSocket- Plugin- for-MySQL && \ /include" \ mysql-source= $(MYSQL_ SRC) \ mysql-bindir= $(builddir) /bin \ mysql-plugindir =$(TMP) /mysql/ plugin && \ /include" \ $(builddir) /include \ $(TMP)/ mysql/plugin && \
(cd $(builddir) && $(MAKE) install DESTDIR=$(TMP)/)
+
+ # build HandlerSocket
+ (cd storage/
+ MYSQL_CFLAGS="-I $(builddir)
+ ./configure --with-
+ --with-
+ --with-
+ make DESTDIR=$(TMP) install)
+
+ # Build UDFs
+ (cd UDF && \
+ CXXFLAGS="$CXXFLAGS -I$(builddir)
+ ./configure --includedir=
+ --libdir=
+ make DESTDIR=$(TMP) install)
# After installing, remove rpath to make lintian happy.
set +e; \
@@ -302,8 +317,6 @@
override_ dh_auto_ install: HandlerSocket- Plugin- for-MySQL && make DESTDIR=$(TMP) install
dh_auto_install
- cd storage/
- cd UDF && make DESTDIR=$(TMP) install
.PHONY: clean clean-patched configure build binary binary-indep binary-arch install patch