Merge lp:~yolanda.robla/ubuntu/trusty/memcached/add_distribution into lp:ubuntu/trusty/memcached

Proposed by Yolanda Robla
Status: Approved
Approved by: Barry Warsaw
Approved revision: 36
Proposed branch: lp:~yolanda.robla/ubuntu/trusty/memcached/add_distribution
Merge into: lp:ubuntu/trusty/memcached
Diff against target: 99 lines (+50/-1)
5 files modified
debian/changelog (+8/-0)
debian/control (+1/-1)
debian/patches/fix-distribution.patch (+37/-0)
debian/patches/series (+1/-0)
debian/rules (+3/-0)
To merge this branch: bzr merge lp:~yolanda.robla/ubuntu/trusty/memcached/add_distribution
Reviewer Review Type Date Requested Status
Barry Warsaw (community) Approve
Review via email: mp+195209@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

This patch looks pretty good.

I noticed you used append_stat instead of APPEND_STAT (in memcached.c). It appears this is necessary because APPEND_STAT is a macro that only accepts 3 arguments (memcached.h).

I removed the extra newline from d/rules.

Some of the quilt patches had to be refreshed in order to remove fuzz.

I double checked that the change doesn't break memcached documented protocol:

https://github.com/memcached/memcached/blob/master/doc/protocol.txt

and it seems to be okay, but I'm not an expert.

I tested it on a live trusty system by:

% telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
version
VERSION 1.4.14 (Ubuntu)
quit
Connection closed by foreign host.

So it looks good to me and I'll sponsor the package with these changes. Thanks!

review: Approve

Unmerged revisions

36. By Yolanda Robla

* debian/control: added lsb-release, dh-autoreconf to build depends
* debian/rules: run autoreconf
* debian/patches/fix-distribution.patch: added patch to show distribution on version

35. By Ubuntu <email address hidden>

* debian/control: added lsb-release, dh-autoreconf to build depends
* debian/rules: run autoreconf
* debian/patches/fix-distribution.patch: added patch to show distribution on version

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-08-30 00:36:52 +0000
3+++ debian/changelog 2013-11-14 12:04:29 +0000
4@@ -1,3 +1,11 @@
5+memcached (1.4.14-0ubuntu5) UNRELEASED; urgency=low
6+
7+ * debian/control: added lsb-release, dh-autoreconf to build depends
8+ * debian/rules: run autoreconf
9+ * debian/patches/fix-distribution.patch: added patch to show distribution on version
10+
11+ -- Yolanda Robla <yolanda.robla@canonical.com> Wed, 13 Nov 2013 13:50:59 +0100
12+
13 memcached (1.4.14-0ubuntu4) saucy; urgency=low
14
15 * Move dh_quilt_apply into configure step so that config.{sub,guess}
16
17=== modified file 'debian/control'
18--- debian/control 2013-05-23 13:36:11 +0000
19+++ debian/control 2013-11-14 12:04:29 +0000
20@@ -4,7 +4,7 @@
21 Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
22 XSBC-Original-Maintainer: David Martínez Moreno <ender@debian.org>
23 Build-Depends: debhelper (>= 6), libevent-dev, quilt (>= 0.46-7), libsasl2-dev,
24- dpkg-dev (>= 1.15.7)
25+ dpkg-dev (>= 1.15.7), dh-autoreconf, lsb-release
26 Homepage: http://www.danga.com/memcached/
27 Standards-Version: 3.8.4
28 XS-Testsuite: autopkgtest
29
30=== added file 'debian/patches/fix-distribution.patch'
31--- debian/patches/fix-distribution.patch 1970-01-01 00:00:00 +0000
32+++ debian/patches/fix-distribution.patch 2013-11-14 12:04:29 +0000
33@@ -0,0 +1,37 @@
34+--- a/configure.ac
35++++ b/configure.ac
36+@@ -554,4 +554,13 @@
37+ fi
38+
39+ AC_CONFIG_FILES(Makefile doc/Makefile)
40++
41++# define distribution
42++if test -x /usr/bin/lsb_release && lsb_release -si; then
43++ MEMCACHED_DISTRIBUTION=" ($(lsb_release -si))"
44++else
45++ MEMCACHED_DISTRIBUTION=""
46++fi
47++AC_DEFINE_UNQUOTED(MEMCACHED_DISTRIBUTION, "$MEMCACHED_DISTRIBUTION", Memcached distribution)
48++
49+ AC_OUTPUT
50+--- a/memcached.c
51++++ b/memcached.c
52+@@ -2536,7 +2536,8 @@
53+ APPEND_STAT("pid", "%lu", (long)pid);
54+ APPEND_STAT("uptime", "%u", now);
55+ APPEND_STAT("time", "%ld", now + (long)process_started);
56+- APPEND_STAT("version", "%s", VERSION);
57++ append_stat("version", add_stats, c, "%s%s", VERSION,
58++ MEMCACHED_DISTRIBUTION);
59+ APPEND_STAT("libevent", "%s", event_get_version());
60+ APPEND_STAT("pointer_size", "%d", (int)(8 * sizeof(void *)));
61+
62+@@ -3325,7 +3326,7 @@
63+
64+ } else if (ntokens == 2 && (strcmp(tokens[COMMAND_TOKEN].value, "version") == 0)) {
65+
66+- out_string(c, "VERSION " VERSION);
67++ out_string(c, "VERSION " VERSION MEMCACHED_DISTRIBUTION);
68+
69+ } else if (ntokens == 2 && (strcmp(tokens[COMMAND_TOKEN].value, "quit") == 0)) {
70+
71
72=== modified file 'debian/patches/series'
73--- debian/patches/series 2013-08-13 13:52:58 +0000
74+++ debian/patches/series 2013-11-14 12:04:29 +0000
75@@ -4,3 +4,4 @@
76 04_add_init_retry.patch
77 start-memcached-fix-hash.patch
78 config-updates.diff
79+fix-distribution.patch
80
81=== modified file 'debian/rules'
82--- debian/rules 2013-08-29 19:08:53 +0000
83+++ debian/rules 2013-11-14 12:04:29 +0000
84@@ -6,6 +6,8 @@
85 # Uncomment this to turn on verbose mode.
86 #export DH_VERBOSE=1
87
88+%:
89+ dh $@ --with autoreconf
90
91 # These are used for cross-compiling and for saving the configure script
92 # from having to guess our platform (since we know it already)
93@@ -25,6 +27,7 @@
94 INSTALL_PROGRAM += -s
95 endif
96
97+
98 get-orig-source:
99 uscan --verbose --force-download --rename --repack --destdir=..
100

Subscribers

People subscribed via source and target branches

to all changes: