Percona XtraDB Cluster - HA scalable solution for MySQL

build-binary script hardcodes MAKEFLAGS

Reported by Raghavendra D Prabhu on 2013-02-26
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server
Status tracked in 5.6
5.1
Wishlist
Ignacio Nin
5.5
Wishlist
Ignacio Nin
5.6
Wishlist
Ignacio Nin
Percona XtraDB Cluster
Wishlist
Ignacio Nin

Bug Description

In the script it is hard-coded to '-j4'

It can be something like this:

=== modified file 'build/build-binary.sh'
--- build/build-binary.sh 2013-02-06 10:45:19 +0000
+++ build/build-binary.sh 2013-02-26 12:24:29 +0000
@@ -111,7 +111,7 @@
 export CXX=${CXX:-gcc}
 export CFLAGS="-fPIC -Wall -O3 -g -static-libgcc -fno-omit-frame-pointer -DPERCONA_INNODB_VERSION=$PERCONA_SERVER_VERSION $TARGET_CFLAGS ${CFLAGS:-}"
 export CXXFLAGS="-O2 -fno-omit-frame-pointer -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fno-exceptions -DPERCONA_INNODB_VERSION=$PERCONA_SERVER_VERSION $TARGET_CFLAGS ${CXXFLAGS:-}"
-export MAKE_JFLAG=-j4
+export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-${MAKEFLAGS:-}}

 # Create a temporary working directory
 INSTALLDIR="$(cd "$WORKDIR" && TMPDIR="$WORKDIR_ABS" mktemp -d percona-build.XXXXXX)"

tags: added: low-hanging-fruit pkg
Alexey Bychko (abychko) wrote :

for linux it can be like $(grep -c processor /proc/cpuinfo)

Changed in percona-xtradb-cluster:
importance: Undecided → Wishlist
assignee: nobody → Ignacio Nin (ignacio-nin)
milestone: none → 5.5.31-24.8
status: New → Triaged
Changed in percona-xtradb-cluster:
status: Triaged → Fix Committed
Changed in percona-xtradb-cluster:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers