Comment 1 for bug 1159625

Revision history for this message
Stewart Smith (stewart) wrote :

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