Merge lp:~ignacio-nin/percona-server/5.6-bug1174300 into lp:percona-server/5.6

Proposed by Ignacio Nin
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 438
Proposed branch: lp:~ignacio-nin/percona-server/5.6-bug1174300
Merge into: lp:percona-server/5.6
Diff against target: 36 lines (+10/-5)
2 files modified
build/build-rpm.sh (+0/-5)
build/percona-server.spec (+10/-0)
To merge this branch: bzr merge lp:~ignacio-nin/percona-server/5.6-bug1174300
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+188167@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'build/build-rpm.sh'
2--- build/build-rpm.sh 2013-06-25 13:13:06 +0000
3+++ build/build-rpm.sh 2013-09-27 21:01:53 +0000
4@@ -136,11 +136,6 @@
5 # Execute clean and download mysql, apply patches
6 make clean all
7
8- # "Fix" cmake destdirs, since we cannot alter SYSTEM_PROCESSOR
9- if test "x$TARGET" != "x"
10- then
11- sed -i 's/lib64/lib/' "$PRODUCT/cmake/install_layout.cmake"
12- fi
13 # Create tarball for build
14 tar czf "$WORKDIR_ABS/SOURCES/$PRODUCT.tar.gz" "$PRODUCT/"*
15
16
17=== modified file 'build/percona-server.spec'
18--- build/percona-server.spec 2013-09-25 21:16:07 +0000
19+++ build/percona-server.spec 2013-09-27 21:01:53 +0000
20@@ -382,6 +382,16 @@
21 export CMAKE=${MYSQL_BUILD_CMAKE:-${CMAKE:-cmake}}
22 export MAKE_JFLAG=${MYSQL_BUILD_MAKE_JFLAG:-${MAKE_JFLAG:-}}
23
24+# "Fix" cmake directories in case we're crosscompiling.
25+# We detect crosscompiles to i686 if uname is x86_64 however _libdir does not
26+# contain lib64.
27+# In this case, we cannot instruct cmake to change CMAKE_SYSTEM_PROCESSOR, so
28+# we need to alter the directories in cmake/install_layout.cmake manually.
29+if test "x$(uname -m)" = "xx86_64" && echo "%{_libdir}" | fgrep -vq lib64
30+then
31+ sed -i 's/lib64/lib/' "cmake/install_layout.cmake"
32+fi
33+
34 # Build debug mysqld and libmysqld.a
35 mkdir debug
36 (

Subscribers

People subscribed via source and target branches