Merge lp:~vjsamuel/libmemcached/fix-gearmand-binary-issue into lp:~tangent-org/libmemcached/trunk

Proposed by Vijay Samuel
Status: Merged
Merge reported by: Brian Aker
Merged at revision: not available
Proposed branch: lp:~vjsamuel/libmemcached/fix-gearmand-binary-issue
Merge into: lp:~tangent-org/libmemcached/trunk
Diff against target: 66 lines (+7/-5)
5 files modified
libtest/common.h (+4/-0)
libtest/gearmand.cc (+0/-2)
libtest/skiptest.cc (+1/-1)
libtest/unittest.cc (+1/-1)
libtest/wait.cc (+1/-1)
To merge this branch: bzr merge lp:~vjsamuel/libmemcached/fix-gearmand-binary-issue
Reviewer Review Type Date Requested Status
Monty Taylor (community) Needs Fixing
Brian Aker Pending
Review via email: mp+78604@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Monty Taylor (mordred) wrote :

There is a better fix for this. As far as I can tell, the include of m4/gearmand.m4 is actually useless in this codebase, and is causing the error in conjunction with the -DGEARMAND_BINARY calls in libtest/include.am. The real solution here is to move the logic around setting all of the symbols set with -D in libtest/include.am into configure.ac, and then to rely on the symbols being in config.h rather than injecting them onto the command line in the makefile.

review: Needs Fixing

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'libtest/common.h'
--- libtest/common.h 2011-09-08 19:41:50 +0000
+++ libtest/common.h 2011-10-07 14:08:30 +0000
@@ -25,6 +25,10 @@
2525
26#pragma once26#pragma once
2727
28#if defined GEARMAND_BINARY
29#undef GEARMAND_BINARY
30#endif
31
28#include <config.h>32#include <config.h>
2933
30#include <cassert>34#include <cassert>
3135
=== modified file 'libtest/gearmand.cc'
--- libtest/gearmand.cc 2011-08-15 06:40:24 +0000
+++ libtest/gearmand.cc 2011-10-07 14:08:30 +0000
@@ -22,8 +22,6 @@
2222
23#include <libtest/common.h>23#include <libtest/common.h>
2424
25#include <libtest/gearmand.h>
26
27#include "util/instance.hpp"25#include "util/instance.hpp"
28#include "util/operation.hpp"26#include "util/operation.hpp"
2927
3028
=== modified file 'libtest/skiptest.cc'
--- libtest/skiptest.cc 2011-08-15 06:40:24 +0000
+++ libtest/skiptest.cc 2011-10-07 14:08:30 +0000
@@ -20,7 +20,7 @@
20 */20 */
2121
2222
23#include <config.h>23#include "config.h"
2424
25#include <libtest/test.hpp>25#include <libtest/test.hpp>
2626
2727
=== modified file 'libtest/unittest.cc'
--- libtest/unittest.cc 2011-09-19 04:08:52 +0000
+++ libtest/unittest.cc 2011-10-07 14:08:30 +0000
@@ -20,7 +20,7 @@
20 */20 */
2121
2222
23#include <config.h>23#include <libtest/common.h>
2424
25#include <libtest/test.hpp>25#include <libtest/test.hpp>
2626
2727
=== modified file 'libtest/wait.cc'
--- libtest/wait.cc 2011-09-19 04:08:52 +0000
+++ libtest/wait.cc 2011-10-07 14:08:30 +0000
@@ -19,7 +19,7 @@
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */20 */
2121
22#include <config.h>22#include <libtest/common.h>
2323
24#include <cstdlib>24#include <cstdlib>
25#include <fcntl.h>25#include <fcntl.h>

Subscribers

People subscribed via source and target branches

to all changes: