Skip to content

Commit

Permalink
databases/memcached: Update version 1.6.14=>1.6.20
Browse files Browse the repository at this point in the history
  • Loading branch information
5u623l20 committed May 17, 2023
1 parent 5d65d6d commit 5c77d25
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 43 deletions.
31 changes: 13 additions & 18 deletions databases/memcached/Makefile
@@ -1,5 +1,5 @@
PORTNAME= memcached
PORTVERSION= 1.6.14
PORTVERSION= 1.6.20
CATEGORIES= databases
MASTER_SITES= http://www.memcached.org/files/ \
GENTOO
Expand All @@ -13,50 +13,45 @@ LICENSE_FILE= ${WRKSRC}/COPYING

LIB_DEPENDS= libevent.so:devel/libevent

USES= autoreconf cpe shebangfix
SHEBANG_FILES= scripts/memcached-tool

USES= autoreconf cpe pkgconfig shebangfix
USE_CSTD= c99
USE_RC_SUBR= memcached
SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}

USE_CSTD= c99
SHEBANG_FILES= scripts/memcached-tool

GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-coverage \
--program-prefix= \
--with-libevent=${LOCALBASE}

MAKE_JOBS_UNSAFE= yes

SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}

# Dtrace option disabled until it is fixed upstream
OPTIONS_DEFINE= DOCS SASL
OPTIONS_DEFAULT= SASL
OPTIONS_DEFINE_amd64= DTRACE
OPTIONS_DEFAULT_amd64= DTRACE
OPTIONS_DEFINE_powerpc64= DTRACE
OPTIONS_DEFINE_powerpc64le= DTRACE
OPTIONS_DEFAULT= SASL
OPTIONS_DEFAULT_amd64= DTRACE
OPTIONS_DEFAULT_powerpc64= DTRACE
OPTIONS_DEFAULT_powerpc64le= DTRACE
OPTIONS_EXCLUDE_powerpc64= ${OPTIONS_EXCLUDE_${ARCH}_${OSREL:R}}
OPTIONS_EXCLUDE_powerpc64_12= DTRACE
OPTIONS_DEFINE_powerpc64le= DTRACE
OPTIONS_DEFAULT_powerpc64le= DTRACE

.if !exists(/usr/sbin/dtrace)
OPTIONS_EXCLUDE+= DTRACE
.endif

DTRACE_DESC= Enable dtrace probes
SASL_DESC= Enable SASL Authentication

DOCS_BUILD_DEPENDS= xml2rfc:textproc/xml2rfc
DOCS_CONFIGURE_ENABLE= docs

DTRACE_CONFIGURE_ENABLE= dtrace

SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASL_CONFIGURE_ENABLE= sasl
SASL_CFLAGS= -I${LOCALBASE}/include
SASL_CPPFLAGS+= ${CFLAGS}
SASL_LDFLAGS= -L${LOCALBASE}/lib

MAKE_JOBS_UNSAFE= yes

.include <bsd.port.pre.mk>

.if ${OPSYS} == FreeBSD
Expand Down
6 changes: 3 additions & 3 deletions databases/memcached/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1647126672
SHA256 (memcached-1.6.14.tar.gz) = 54d63742c6886dcdc4e0c87f4439a2930a876cd9f2bfa01d699b0c6bad1707b3
SIZE (memcached-1.6.14.tar.gz) = 1034514
TIMESTAMP = 1684261463
SHA256 (memcached-1.6.20.tar.gz) = 8f604f8e3a175637dc1f069de6fa2739116850c9f81e3764f2fac9a3b27be307
SIZE (memcached-1.6.20.tar.gz) = 2615902
13 changes: 2 additions & 11 deletions databases/memcached/files/patch-configure.ac
@@ -1,6 +1,6 @@
--- configure.ac.orig 2020-11-21 00:10:41 UTC
--- configure.ac.orig 2023-03-08 21:34:27 UTC
+++ configure.ac
@@ -182,7 +182,7 @@ if test "x$enable_dtrace" = "xyes"; then
@@ -201,7 +201,7 @@ if test "x$enable_dtrace" = "xyes"; then
if test "x$DTRACE" != "xno"; then
AC_DEFINE([ENABLE_DTRACE],1,[Set to nonzero if you want to include DTRACE])
build_dtrace=yes
Expand All @@ -9,12 +9,3 @@
if test $? -eq 0
then
dtrace_instrument_obj=yes
@@ -793,7 +793,7 @@ then
elif test "$GCC" = "yes"
then
GCC_VERSION=`$CC -dumpversion`
- CFLAGS="$CFLAGS -Wall -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
+ CFLAGS="$CFLAGS -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls"
if test "x$enable_asan" = "xyes"; then
CFLAGS="$CFLAGS -fsanitize=address"
fi
18 changes: 9 additions & 9 deletions databases/memcached/files/patch-memcached.c
@@ -1,6 +1,6 @@
--- memcached.c.orig 2020-11-21 00:10:41 UTC
--- memcached.c.orig 2023-03-08 21:34:27 UTC
+++ memcached.c
@@ -676,7 +676,7 @@ conn *conn_new(const int sfd, enum conn_states init_st
@@ -707,7 +707,7 @@ conn *conn_new(const int sfd, enum conn_states init_st
if (init_state == conn_listening) {
fprintf(stderr, "<%d server listening (%s)\n", sfd,
prot_text(c->protocol));
Expand All @@ -9,7 +9,7 @@
fprintf(stderr, "<%d server listening (udp)\n", sfd);
} else if (c->protocol == negotiating_prot) {
fprintf(stderr, "<%d new auto-negotiating client connection\n",
@@ -736,7 +736,7 @@ conn *conn_new(const int sfd, enum conn_states init_st
@@ -772,7 +772,7 @@ conn *conn_new(const int sfd, enum conn_states init_st
c->write = tcp_write;
}

Expand All @@ -18,7 +18,7 @@
c->try_read_command = try_read_command_udp;
} else {
switch (c->protocol) {
@@ -820,7 +820,7 @@ static void conn_cleanup(conn *c) {
@@ -871,7 +871,7 @@ static void conn_cleanup(conn *c) {
c->sasl_conn = NULL;
}

Expand All @@ -27,7 +27,7 @@
conn_set_state(c, conn_read);
}
}
@@ -1116,7 +1116,7 @@ bool resp_start(conn *c) {
@@ -1171,7 +1171,7 @@ bool resp_start(conn *c) {
c->resp->next = resp;
c->resp = resp;
}
Expand All @@ -36,7 +36,7 @@
// need to hold on to some data for async responses.
c->resp->request_id = c->request_id;
c->resp->request_addr = c->request_addr;
@@ -2046,7 +2046,7 @@ void process_stats_conns(ADD_STAT add_stats, void *c)
@@ -2166,7 +2166,7 @@ void process_stats_conns(ADD_STAT add_stats, void *c)
* output -- not worth the complexity of the locking that'd be
* required to prevent it.
*/
Expand All @@ -45,7 +45,7 @@
APPEND_NUM_STAT(i, "UDP", "%s", "UDP");
}
if (conns[i]->state != conn_closed) {
@@ -3242,7 +3242,7 @@ static void drive_machine(conn *c) {
@@ -3361,7 +3361,7 @@ static void drive_machine(conn *c) {
break;

case conn_closing:
Expand All @@ -54,7 +54,7 @@
conn_cleanup(c);
else
conn_close(c);
@@ -3425,7 +3425,7 @@ static int server_socket(const char *interface,
@@ -3552,7 +3552,7 @@ static int server_socket(const char *interface,
#endif

setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, (void *)&flags, sizeof(flags));
Expand All @@ -63,7 +63,7 @@
maximize_sndbuf(sfd);
} else {
error = setsockopt(sfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&flags, sizeof(flags));
@@ -3480,7 +3480,7 @@ static int server_socket(const char *interface,
@@ -3607,7 +3607,7 @@ static int server_socket(const char *interface,
}
}

Expand Down
4 changes: 2 additions & 2 deletions databases/memcached/files/patch-xxhash.h
@@ -1,6 +1,6 @@
--- xxhash.h.orig 2021-03-31 12:18:19 UTC
--- xxhash.h.orig 2022-08-26 03:34:25 UTC
+++ xxhash.h
@@ -2409,6 +2409,7 @@ XXH_PUBLIC_API XXH64_hash_t XXH64_hashFromCanonical(co
@@ -2931,6 +2931,7 @@ enum XXH_VECTOR_TYPE /* fake enum */ {
# if defined(__GNUC__) && !defined(__APPLE_ALTIVEC__)
# define __APPLE_ALTIVEC__
# endif
Expand Down

0 comments on commit 5c77d25

Please sign in to comment.