Merge lp:~ignacio-nin/percona-server/5.1-binary-out-of-source into lp:percona-server/5.1

Proposed by Ignacio Nin
Status: Superseded
Proposed branch: lp:~ignacio-nin/percona-server/5.1-binary-out-of-source
Merge into: lp:percona-server/5.1
Diff against target: 57 lines (+16/-8)
1 file modified
build/build-binary.sh (+16/-8)
To merge this branch: bzr merge lp:~ignacio-nin/percona-server/5.1-binary-out-of-source
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Needs Information
Review via email: mp+126065@code.launchpad.net

This proposal has been superseded by a proposal from 2012-09-26.

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Perhaps "make clean" is not required then, is it?

review: Needs Information
Revision history for this message
Ignacio Nin (ignacio-nin) wrote :

make clean is not required indeed, as the branch has been just exported. Resubmitting without it.

Unmerged revisions

482. By Ignacio Nin

Build out of source (binary builder)

Instead of building in the source for the binary builder, export to
another directory and build there.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'build/build-binary.sh'
--- build/build-binary.sh 2012-08-31 12:52:50 +0000
+++ build/build-binary.sh 2012-09-26 18:39:23 +0000
@@ -101,15 +101,21 @@
101export MAKE_JFLAG=-j4101export MAKE_JFLAG=-j4
102102
103# Create a temporary working directory103# Create a temporary working directory
104INSTALLDIR="$(cd "$WORKDIR" && TMPDIR="$WORKDIR_ABS" mktemp -d percona-build.XXXXXX)"104TEMPDIR="$(cd "$WORKDIR" && TMPDIR="$WORKDIR_ABS" mktemp -d percona-build.XXXXXX)"
105INSTALLDIR="$WORKDIR_ABS/$INSTALLDIR" # Make it absolute105TEMPDIR="$WORKDIR_ABS/$TEMPDIR" # Make it absolute
106EXPORTDIR="$TEMPDIR/source"
107INSTALLDIR="$TEMPDIR/install"
106108
107# Build109# Build
108(110(
109 cd "$SOURCEDIR"111 cd "$SOURCEDIR"
110 112
111 # Execute clean and download mysql, apply patches113 # Export a clean copy to the workdir
112 make clean all114 bzr export "$EXPORTDIR/"
115
116 cd "$EXPORTDIR/"
117 # Prepare source
118 make all
113119
114 cd "$PRODUCT"120 cd "$PRODUCT"
115 ./configure \121 ./configure \
@@ -137,8 +143,9 @@
137 (143 (
138 cd "storage/HandlerSocket-Plugin-for-MySQL"144 cd "storage/HandlerSocket-Plugin-for-MySQL"
139 ./autogen.sh145 ./autogen.sh
140 CXX=${HS_CXX:-g++} ./configure --with-mysql-source="$SOURCEDIR/$PRODUCT" \146 CXX=${HS_CXX:-g++} ./configure \
141 --with-mysql-bindir="$SOURCEDIR/$PRODUCT/scripts" \147 --with-mysql-source="$EXPORTDIR/$PRODUCT" \
148 --with-mysql-bindir="$EXPORTDIR/$PRODUCT/scripts" \
142 --with-mysql-plugindir="/usr/local/$PRODUCT_FULL/lib/mysql/plugin" \149 --with-mysql-plugindir="/usr/local/$PRODUCT_FULL/lib/mysql/plugin" \
143 --libdir="/usr/local/$PRODUCT_FULL/lib/mysql/plugin" \150 --libdir="/usr/local/$PRODUCT_FULL/lib/mysql/plugin" \
144 --prefix="/usr/local/$PRODUCT_FULL"151 --prefix="/usr/local/$PRODUCT_FULL"
@@ -150,7 +157,8 @@
150 # Build UDF157 # Build UDF
151 (158 (
152 cd "UDF"159 cd "UDF"
153 CXX=${UDF_CXX:-g++} ./configure --includedir="$SOURCEDIR/$PRODUCT/include" \160 CXX=${UDF_CXX:-g++} ./configure \
161 --includedir="$EXPORTDIR/$PRODUCT/include" \
154 --libdir="/usr/local/$PRODUCT_FULL/mysql/plugin"162 --libdir="/usr/local/$PRODUCT_FULL/mysql/plugin"
155 make163 make
156 make DESTDIR="$INSTALLDIR" install164 make DESTDIR="$INSTALLDIR" install
@@ -169,5 +177,5 @@
169)177)
170178
171# Clean up179# Clean up
172rm -rf "$INSTALLDIR"180rm -rf "$TEMPDIR"
173181

Subscribers

People subscribed via source and target branches