Bug 172396 - [PATCH] databases/redis-devel: Update to 2.6.0.r8, Add TEST option, Add test targets
[PATCH] databases/redis-devel: Update to 2.6.0.r8, Add TEST option, Add test ...
Status: Closed FIXED
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s)
Latest
Any Any
: Normal Affects Only Me
Assigned To: Sergey A. Osokin
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-06 14:10 UTC by koobs.freebsd
Modified: 2012-10-06 15:00 UTC (History)
1 user (show)

See Also:


Attachments
redis-devel-2.6.0.r8.patch (2.31 KB, patch)
2012-10-06 14:10 UTC, koobs.freebsd
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description koobs.freebsd 2012-10-06 14:10:05 UTC
- Update to 2.6.0.r8
- Add TEST optionNG for running unit tests
- Add test: and regression-test targets
- Remove patch for replication from rc7 that's now upstream
- New Makefile header convention

Changes:

* [BUGFIX]   Fixed compilation on FreeBSD.
* [IMPROVED] SRANDMEMBER <count> that returns multiple random elements.
* [IMPROVED] Sentinel backported to 2.6. It will be taken in sync with 2.8.
* [IMPROVED] Helper function for scripting to return errors and status replies.
* [IMPROVED] SORT by nosort [ASC|DESC] uses sorted set elements ordering.
* [BUGFIX]   Better resistence to system clock skew.
* [IMPROVED] Warn the user when the configured maxmemory seems odd.
* [BUGFIX]   Hashing function is now murmurhash2 for security purposes.
* [IMPROVED] Install script no longer uses a template but redis.conf itself.

====[QA]====
porttest: OK
unittest: \o/ All tests passed without errors! (9.0 amd64 gcc (base))
unittest: \o/ All tests passed without errors! (9.0 amd64 clang (base))
redports: https://redports.org/buildarchive/20121006113826-56218/

Note: all redports builds include regression-test runs - \o/
============

Removed file(s):
- files/patch-src::replication.c

Port maintainer (osa@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
Comment 1 Edwin Groothuis freebsd_committer 2012-10-06 14:10:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->osa

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter freebsd_committer 2012-10-06 14:54:29 UTC
Author: osa
Date: Sat Oct  6 13:54:19 2012
New Revision: 305364
URL: http://svn.freebsd.org/changeset/ports/305364

Log:
  Update from 2.6.0rc7 to 2.6.0rc8.
  Add TEST option for running unit tests.
  Add test and regression-test targets.
  Remove needless patch.
  New Makefile header convention.
  
  PR:	172396
  
  <ChangeLog>
  
  * [BUGFIX]   Fixed compilation on FreeBSD.
  * [IMPROVED] SRANDMEMBER <count> that returns multiple random elements.
  * [IMPROVED] Sentinel backported to 2.6. It will be taken in sync with 2.8.
  * [IMPROVED] Helper function for scripting to return errors and status replies.
  * [IMPROVED] SORT by nosort [ASC|DESC] uses sorted set elements ordering.
  * [BUGFIX]   Better resistence to system clock skew.
  * [IMPROVED] Warn the user when the configured maxmemory seems odd.
  * [BUGFIX]   Hashing function is now murmurhash2 for security purposes.
  * [IMPROVED] Install script no longer uses a template but redis.conf itself.
  
  </ChangeLog>

Deleted:
  head/databases/redis-devel/files/patch-src::replication.c
Modified:
  head/databases/redis-devel/Makefile
  head/databases/redis-devel/distinfo

Modified: head/databases/redis-devel/Makefile
==============================================================================
--- head/databases/redis-devel/Makefile	Sat Oct  6 13:47:51 2012	(r305363)
+++ head/databases/redis-devel/Makefile	Sat Oct  6 13:54:19 2012	(r305364)
@@ -1,12 +1,8 @@
-# New ports collection makefile for:	redis
-# Date created:	   03 Jul 2009
-# Whom:		   Sergey Skvortsov <skv@protey.ru>
-#
+# Created by: Sergey Skvortsov <skv@protey.ru>
 # $FreeBSD$
-#
 
 PORTNAME=	redis
-DISTVERSION=	2.6.0-rc7
+DISTVERSION=	2.6.0-rc8
 CATEGORIES=	databases
 MASTER_SITES=	GOOGLE_CODE
 PKGNAMESUFFIX=	-devel
@@ -18,6 +14,15 @@ LICENSE=	BSD
 
 LIB_DEPENDS=	execinfo:${PORTSDIR}/devel/libexecinfo
 
+OPTIONS_DEFINE=	TESTS
+TESTS_DESC=	Install lang/tcl for redis unit tests
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MTESTS}
+USE_TCL_BUILD=	yes
+.endif
+
 CFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib ${PTHREAD_LIBS} -lm -lexecinfo
 
@@ -64,4 +69,9 @@ post-install:
 	[ -d ${d} ] || ${MKDIR} ${d} && ${CHOWN} ${USERS}:${GROUPS} ${d}
 .endfor
 
+test: build
+	@cd ${WRKSRC} && ${TCLSH} tests/test_helper.tcl
+
+regression-test: test
+
 .include <bsd.port.mk>

Modified: head/databases/redis-devel/distinfo
==============================================================================
--- head/databases/redis-devel/distinfo	Sat Oct  6 13:47:51 2012	(r305363)
+++ head/databases/redis-devel/distinfo	Sat Oct  6 13:54:19 2012	(r305364)
@@ -1,2 +1,2 @@
-SHA256 (redis-2.6.0-rc7.tar.gz) = 538e68479465b074497c1e76df70e40a61e6cfcb5e8f9dce5eaabc5448eedd43
-SIZE (redis-2.6.0-rc7.tar.gz) = 973045
+SHA256 (redis-2.6.0-rc8.tar.gz) = e3b843c960cb2d6512f208181880b4cb42877368f457d1df7af808918b97e36c
+SIZE (redis-2.6.0-rc8.tar.gz) = 999715
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 3 Sergey A. Osokin freebsd_committer 2012-10-06 14:55:18 UTC
State Changed
From-To: open->closed

Committed, thanks!