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
1=== modified file 'build/build-binary.sh'
2--- build/build-binary.sh 2012-08-31 12:52:50 +0000
3+++ build/build-binary.sh 2012-09-26 18:39:23 +0000
4@@ -101,15 +101,21 @@
5 export MAKE_JFLAG=-j4
6
7 # Create a temporary working directory
8-INSTALLDIR="$(cd "$WORKDIR" && TMPDIR="$WORKDIR_ABS" mktemp -d percona-build.XXXXXX)"
9-INSTALLDIR="$WORKDIR_ABS/$INSTALLDIR" # Make it absolute
10+TEMPDIR="$(cd "$WORKDIR" && TMPDIR="$WORKDIR_ABS" mktemp -d percona-build.XXXXXX)"
11+TEMPDIR="$WORKDIR_ABS/$TEMPDIR" # Make it absolute
12+EXPORTDIR="$TEMPDIR/source"
13+INSTALLDIR="$TEMPDIR/install"
14
15 # Build
16 (
17 cd "$SOURCEDIR"
18
19- # Execute clean and download mysql, apply patches
20- make clean all
21+ # Export a clean copy to the workdir
22+ bzr export "$EXPORTDIR/"
23+
24+ cd "$EXPORTDIR/"
25+ # Prepare source
26+ make all
27
28 cd "$PRODUCT"
29 ./configure \
30@@ -137,8 +143,9 @@
31 (
32 cd "storage/HandlerSocket-Plugin-for-MySQL"
33 ./autogen.sh
34- CXX=${HS_CXX:-g++} ./configure --with-mysql-source="$SOURCEDIR/$PRODUCT" \
35- --with-mysql-bindir="$SOURCEDIR/$PRODUCT/scripts" \
36+ CXX=${HS_CXX:-g++} ./configure \
37+ --with-mysql-source="$EXPORTDIR/$PRODUCT" \
38+ --with-mysql-bindir="$EXPORTDIR/$PRODUCT/scripts" \
39 --with-mysql-plugindir="/usr/local/$PRODUCT_FULL/lib/mysql/plugin" \
40 --libdir="/usr/local/$PRODUCT_FULL/lib/mysql/plugin" \
41 --prefix="/usr/local/$PRODUCT_FULL"
42@@ -150,7 +157,8 @@
43 # Build UDF
44 (
45 cd "UDF"
46- CXX=${UDF_CXX:-g++} ./configure --includedir="$SOURCEDIR/$PRODUCT/include" \
47+ CXX=${UDF_CXX:-g++} ./configure \
48+ --includedir="$EXPORTDIR/$PRODUCT/include" \
49 --libdir="/usr/local/$PRODUCT_FULL/mysql/plugin"
50 make
51 make DESTDIR="$INSTALLDIR" install
52@@ -169,5 +177,5 @@
53 )
54
55 # Clean up
56-rm -rf "$INSTALLDIR"
57+rm -rf "$TEMPDIR"
58

Subscribers

People subscribed via source and target branches