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
=== modified file 'debian/changelog'
--- debian/changelog 2013-08-30 00:36:52 +0000
+++ debian/changelog 2013-11-14 12:04:29 +0000
@@ -1,3 +1,11 @@
1memcached (1.4.14-0ubuntu5) UNRELEASED; urgency=low
2
3 * debian/control: added lsb-release, dh-autoreconf to build depends
4 * debian/rules: run autoreconf
5 * debian/patches/fix-distribution.patch: added patch to show distribution on version
6
7 -- Yolanda Robla <yolanda.robla@canonical.com> Wed, 13 Nov 2013 13:50:59 +0100
8
1memcached (1.4.14-0ubuntu4) saucy; urgency=low9memcached (1.4.14-0ubuntu4) saucy; urgency=low
210
3 * Move dh_quilt_apply into configure step so that config.{sub,guess}11 * Move dh_quilt_apply into configure step so that config.{sub,guess}
412
=== modified file 'debian/control'
--- debian/control 2013-05-23 13:36:11 +0000
+++ debian/control 2013-11-14 12:04:29 +0000
@@ -4,7 +4,7 @@
4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: David Martínez Moreno <ender@debian.org>5XSBC-Original-Maintainer: David Martínez Moreno <ender@debian.org>
6Build-Depends: debhelper (>= 6), libevent-dev, quilt (>= 0.46-7), libsasl2-dev,6Build-Depends: debhelper (>= 6), libevent-dev, quilt (>= 0.46-7), libsasl2-dev,
7 dpkg-dev (>= 1.15.7)7 dpkg-dev (>= 1.15.7), dh-autoreconf, lsb-release
8Homepage: http://www.danga.com/memcached/8Homepage: http://www.danga.com/memcached/
9Standards-Version: 3.8.49Standards-Version: 3.8.4
10XS-Testsuite: autopkgtest10XS-Testsuite: autopkgtest
1111
=== added file 'debian/patches/fix-distribution.patch'
--- debian/patches/fix-distribution.patch 1970-01-01 00:00:00 +0000
+++ debian/patches/fix-distribution.patch 2013-11-14 12:04:29 +0000
@@ -0,0 +1,37 @@
1--- a/configure.ac
2+++ b/configure.ac
3@@ -554,4 +554,13 @@
4 fi
5
6 AC_CONFIG_FILES(Makefile doc/Makefile)
7+
8+# define distribution
9+if test -x /usr/bin/lsb_release && lsb_release -si; then
10+ MEMCACHED_DISTRIBUTION=" ($(lsb_release -si))"
11+else
12+ MEMCACHED_DISTRIBUTION=""
13+fi
14+AC_DEFINE_UNQUOTED(MEMCACHED_DISTRIBUTION, "$MEMCACHED_DISTRIBUTION", Memcached distribution)
15+
16 AC_OUTPUT
17--- a/memcached.c
18+++ b/memcached.c
19@@ -2536,7 +2536,8 @@
20 APPEND_STAT("pid", "%lu", (long)pid);
21 APPEND_STAT("uptime", "%u", now);
22 APPEND_STAT("time", "%ld", now + (long)process_started);
23- APPEND_STAT("version", "%s", VERSION);
24+ append_stat("version", add_stats, c, "%s%s", VERSION,
25+ MEMCACHED_DISTRIBUTION);
26 APPEND_STAT("libevent", "%s", event_get_version());
27 APPEND_STAT("pointer_size", "%d", (int)(8 * sizeof(void *)));
28
29@@ -3325,7 +3326,7 @@
30
31 } else if (ntokens == 2 && (strcmp(tokens[COMMAND_TOKEN].value, "version") == 0)) {
32
33- out_string(c, "VERSION " VERSION);
34+ out_string(c, "VERSION " VERSION MEMCACHED_DISTRIBUTION);
35
36 } else if (ntokens == 2 && (strcmp(tokens[COMMAND_TOKEN].value, "quit") == 0)) {
37
038
=== modified file 'debian/patches/series'
--- debian/patches/series 2013-08-13 13:52:58 +0000
+++ debian/patches/series 2013-11-14 12:04:29 +0000
@@ -4,3 +4,4 @@
404_add_init_retry.patch404_add_init_retry.patch
5start-memcached-fix-hash.patch5start-memcached-fix-hash.patch
6config-updates.diff6config-updates.diff
7fix-distribution.patch
78
=== modified file 'debian/rules'
--- debian/rules 2013-08-29 19:08:53 +0000
+++ debian/rules 2013-11-14 12:04:29 +0000
@@ -6,6 +6,8 @@
6# Uncomment this to turn on verbose mode.6# Uncomment this to turn on verbose mode.
7#export DH_VERBOSE=17#export DH_VERBOSE=1
88
9%:
10 dh $@ --with autoreconf
911
10# These are used for cross-compiling and for saving the configure script12# These are used for cross-compiling and for saving the configure script
11# from having to guess our platform (since we know it already)13# from having to guess our platform (since we know it already)
@@ -25,6 +27,7 @@
25 INSTALL_PROGRAM += -s27 INSTALL_PROGRAM += -s
26endif28endif
2729
30
28get-orig-source:31get-orig-source:
29 uscan --verbose --force-download --rename --repack --destdir=..32 uscan --verbose --force-download --rename --repack --destdir=..
3033

Subscribers

People subscribed via source and target branches

to all changes: