Merge lp:~ignacio-nin/percona-server/5.1-bug1104977 into lp:percona-server/5.1

Proposed by Ignacio Nin
Status: Merged
Approved by: Laurynas Biveinis
Approved revision: no longer in the source branch.
Merged at revision: 550
Proposed branch: lp:~ignacio-nin/percona-server/5.1-bug1104977
Merge into: lp:percona-server/5.1
Diff against target: 69 lines (+20/-5)
4 files modified
Percona-Server/config/ac-macros/ssl.m4 (+17/-2)
build/build-binary.sh (+1/-1)
build/debian/rules (+1/-1)
build/percona-server.spec (+1/-1)
To merge this branch: bzr merge lp:~ignacio-nin/percona-server/5.1-bug1104977
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Approve
Review via email: mp+155521@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Perhaps the lib64 preference over lib is better solved by setting LDFLAGS in the build scripts instead of patching Autoconf macros?

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

> Perhaps the lib64 preference over lib is better solved by setting LDFLAGS in
> the build scripts instead of patching Autoconf macros?

Note that /usr/lib64/ will be added anyway (implicitely) to the LD search path. So in the way the file is written now, the first test, the one that checks for /usr/lib/, will always succeed and will add /usr/lib to the library path.

In the end this won't cause problems because the libraries will be rejected and the ones in /usr/lib64/ are used anyway, but no before polluting the output with many a "incompatible library" errors when trying to use /usr/lib/. So actually, unless another directory than /usr/ is used (and we use /usr), this is just a cosmetic change -- adding /usr/lib64/ to LDFLAGS wouldn't be needed.

Please advise!

Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

Thanks for the explanations.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'Percona-Server/config/ac-macros/ssl.m4'
--- Percona-Server/config/ac-macros/ssl.m4 2010-06-08 21:14:18 +0000
+++ Percona-Server/config/ac-macros/ssl.m4 2013-03-26 15:18:28 +0000
@@ -110,9 +110,24 @@
110110
111 #111 #
112 # Try to link with openSSL libs in <location>112 # Try to link with openSSL libs in <location>
113 # In 64 bit archs, try first with lib64/ in order to avoid pointless linkage
114 # against 32 bit libraries.
113 #115 #
114 openssl_libs="-L$location/lib/ -lssl -lcrypto"116 if test "$target_cpu" == "x86_64"
115 MYSQL_CHECK_SSL_DIR([$openssl_includes], [$openssl_libs])117 then
118 openssl_libs="-L$location/lib64/ -lssl -lcrypto"
119 MYSQL_CHECK_SSL_DIR([$openssl_includes], [$openssl_libs])
120 else
121 # So it gets set to lib/
122 openssl_libs="no"
123 fi
124
125 if test "$mysql_ssl_found" == "no"
126 then
127 # Now try lib/
128 openssl_libs="-L$location/lib/ -lssl -lcrypto"
129 MYSQL_CHECK_SSL_DIR([$openssl_includes], [$openssl_libs])
130 fi
116131
117 if test "$mysql_ssl_found" == "no"132 if test "$mysql_ssl_found" == "no"
118 then133 then
119134
=== modified file 'build/build-binary.sh'
--- build/build-binary.sh 2012-08-31 12:52:50 +0000
+++ build/build-binary.sh 2013-03-26 15:18:28 +0000
@@ -125,7 +125,7 @@
125 --with-unix-socket-path=/var/lib/mysql/mysql.sock \125 --with-unix-socket-path=/var/lib/mysql/mysql.sock \
126 --with-pic \126 --with-pic \
127 --with-extra-charsets=complex \127 --with-extra-charsets=complex \
128 --with-ssl \128 --with-ssl=/usr \
129 --enable-thread-safe-client \129 --enable-thread-safe-client \
130 --enable-profiling \130 --enable-profiling \
131 --with-readline 131 --with-readline
132132
=== modified file 'build/debian/rules'
--- build/debian/rules 2013-03-13 06:12:19 +0000
+++ build/debian/rules 2013-03-26 15:18:28 +0000
@@ -99,7 +99,7 @@
99 --with-libwrap \99 --with-libwrap \
100 --with-readline \100 --with-readline \
101 $(USE_STATIC_MYSQLD) \101 $(USE_STATIC_MYSQLD) \
102 --with-ssl \102 --with-ssl=/usr \
103 --without-docs \103 --without-docs \
104 --with-extra-charsets=all \104 --with-extra-charsets=all \
105 --with-plugins=partition,archive,blackhole,csv,example,federated,innodb_plugin \105 --with-plugins=partition,archive,blackhole,csv,example,federated,innodb_plugin \
106106
=== modified file 'build/percona-server.spec'
--- build/percona-server.spec 2013-03-22 00:15:18 +0000
+++ build/percona-server.spec 2013-03-26 15:18:28 +0000
@@ -288,7 +288,7 @@
288 --with-pic \288 --with-pic \
289 -prefix=/usr \289 -prefix=/usr \
290 --with-extra-charsets=complex \290 --with-extra-charsets=complex \
291 --with-ssl \291 --with-ssl=/usr \
292 --exec-prefix=%{_exec_prefix} \292 --exec-prefix=%{_exec_prefix} \
293 --libexecdir=%{_sbindir} \293 --libexecdir=%{_sbindir} \
294 --libdir=%{_libdir} \294 --libdir=%{_libdir} \

Subscribers

People subscribed via source and target branches