Fix this the right way, thanks to joerg@. Noticed this is linking against

pthread too, so let's included that bl3.mk here as well.
This commit is contained in:
rodent 2015-05-21 22:21:08 +00:00
parent fbef4b327d
commit 7e0e935115
4 changed files with 13 additions and 9 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.47 2015/01/04 23:41:04 wiz Exp $
# $NetBSD: Makefile,v 1.48 2015/05/21 22:21:08 rodent Exp $
DISTNAME= memcached-1.4.22
CATEGORIES= devel
@ -47,4 +47,5 @@ post-install:
.include "../../devel/libevent/buildlink3.mk"
BUILDLINK_API_DEPENDS.libevent+= libevent>=1.0
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.9 2014/03/11 14:05:01 jperkin Exp $
@comment $NetBSD: PLIST,v 1.10 2015/05/21 22:21:08 rodent Exp $
bin/memcached
bin/memcached-tool
include/memcached/protocol_binary.h
@ -6,3 +6,4 @@ man/man1/memcached.1
share/doc/memcached/protocol.txt
share/doc/memcached/readme.txt
share/doc/memcached/threads.txt
share/examples/rc.d/memcached

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.23 2015/05/21 14:06:08 rodent Exp $
$NetBSD: distinfo,v 1.24 2015/05/21 22:21:08 rodent Exp $
SHA1 (memcached-1.4.22.tar.gz) = 5968d357d504a1f52622f9f8a3e85c29558acaa5
RMD160 (memcached-1.4.22.tar.gz) = 2cde1cec77d312a118fbb74514021e95a3a84395
@ -8,4 +8,4 @@ SHA1 (patch-Makefile.in) = 4c21920e41bdad77dc8ff39c62001aea0d73c78a
SHA1 (patch-aa) = f1cf7fdf89e3dac1264385bdffb98b41b879462c
SHA1 (patch-ab) = 76af28c72db1e2b15da61f04e64464d3b42c5c10
SHA1 (patch-configure) = d44e07c0c38029df4f10bb5411049595b5a8ffbb
SHA1 (patch-memcached.c) = 7c8b32fd54a880db599e8f8b34efb015939694cc
SHA1 (patch-memcached.c) = 3c39c873332704c8d269de4a3c7049281bf101c6

View file

@ -1,15 +1,17 @@
$NetBSD: patch-memcached.c,v 1.1 2015/05/21 14:07:10 rodent Exp $
$NetBSD: patch-memcached.c,v 1.2 2015/05/21 22:21:08 rodent Exp $
Silences: format specifies type 'int' but the argument has type 'long'
Fix this the right way thanks to joerg@.
--- memcached.c.orig 2015-01-01 07:50:52.000000000 +0000
+++ memcached.c
@@ -2765,7 +2765,7 @@ static void process_stats_conns(ADD_STAT
@@ -2764,8 +2764,8 @@ static void process_stats_conns(ADD_STAT
APPEND_NUM_STAT(i, "addr", "%s", conn_name);
APPEND_NUM_STAT(i, "state", "%s",
state_text(conns[i]->state));
APPEND_NUM_STAT(i, "secs_since_last_cmd", "%d",
- APPEND_NUM_STAT(i, "secs_since_last_cmd", "%d",
- current_time - conns[i]->last_cmd_time);
+ (int)(current_time - conns[i]->last_cmd_time));
+ APPEND_NUM_STAT(i, "secs_since_last_cmd", "%jd",
+ (intmax_t)(current_time - conns[i]->last_cmd_time));
}
}
}