From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 5 18:10:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C92DE990 for ; Wed, 5 Mar 2014 18:10:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A79D59F3 for ; Wed, 5 Mar 2014 18:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s25IA0lG095323 for ; Wed, 5 Mar 2014 18:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s25IA03T095322; Wed, 5 Mar 2014 18:10:00 GMT (envelope-from gnats) Resent-Date: Wed, 5 Mar 2014 18:10:00 GMT Resent-Message-Id: <201403051810.s25IA03T095322@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1721D7DE for ; Wed, 5 Mar 2014 18:00:09 +0000 (UTC) Received: from omta03.auone-net.jp (mail-or1-f17.auone-net.jp [106.187.231.17]) by mx1.freebsd.org (Postfix) with ESMTP id D03DE926 for ; Wed, 5 Mar 2014 18:00:08 +0000 (UTC) Received: from coppermine.my.domain (ZT030001.ppp.dion.ne.jp [59.128.30.1]) by omta03.auone-net.jp (au one net mail) with ESMTP id 0D2F31880003 for ; Thu, 6 Mar 2014 02:59:48 +0900 (JST) Message-Id: <20140306025051.aac55ad54d5801bd0f1698de@yahoo.com> Date: Thu, 6 Mar 2014 02:50:51 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/187289: benchmarks/postal: Update to version 0.73 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Mar 2014 18:10:00 -0000 >Number: 187289 >Category: ports >Synopsis: benchmarks/postal: Update to version 0.73 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 05 18:10:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p7 i386 >Organization: >Environment: >Description: - Update to version 0.73 New file: files/patch-bhmusers.cpp files/patch-bhmusers.h files/patch-postal.cpp files/patch-rabid.cpp files/patch-smtp.cpp files/patch-smtp.h >How-To-Repeat: >Fix: diff -urN /usr/ports/benchmarks/postal/Makefile benchmarks/postal/Makefile --- /usr/ports/benchmarks/postal/Makefile 2014-03-03 06:08:34.000000000 +0900 +++ benchmarks/postal/Makefile 2014-03-06 00:00:00.000000000 +0900 @@ -2,7 +2,7 @@ # $FreeBSD: head/benchmarks/postal/Makefile 346794 2014-03-02 19:57:30Z gerald $ PORTNAME= postal -PORTVERSION= 0.72 +PORTVERSION= 0.73 CATEGORIES= benchmarks mail MASTER_SITES= http://www.coker.com.au/postal/ EXTRACT_SUFX= .tgz @@ -12,31 +12,37 @@ LICENSE= GPLv3 -OPTIONS_DEFINE= SSL -OPTIONS_DEFAULT= SSL - USES= gmake -USE_GCC= 4.7+ # Uses GCC-specific C++ namespaces. GNU_CONFIGURE= yes -CONFIGURE_ARGS= --disable-gnutls -PLIST_FILES= sbin/bhm sbin/postal bin/postal-list sbin/rabid \ - man/man1/postal-list.1.gz man/man8/bhm.8.gz \ - man/man8/postal.8.gz man/man8/rabid.8.gz - -.include - -.if ${PORT_OPTIONS:MSSL} -USE_OPENSSL= yes -.else -CONFIGURE_ARGS+= --disable-openssl -.endif +PLIST_FILES= bin/postal-list \ + man/man1/postal-list.1.gz \ + man/man8/bhm.8.gz \ + man/man8/postal.8.gz \ + man/man8/rabid.8.gz \ + sbin/bhm \ + sbin/postal \ + sbin/rabid + +OPTIONS_RADIO= TLS +OPTIONS_RADIO_TLS= GNUTLS OPENSSL +OPTIONS_DEFAULT= OPENSSL + +GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls +GNUTLS_USES= pkgconfig +GNUTLS_CONFIGURE_OFF= --disable-gnutls +GNUTLS_CPPFLAGS= $$(pkg-config --cflags gnutls) +GNUTLS_LDFLAGS= $$(pkg-config --libs gnutls) +OPENSSL_USE= OPENSSL=yes +OPENSSL_CONFIGURE_OFF= --disable-openssl post-patch: @${REINPLACE_CMD} -e \ - 's|-lpthread|-pthread|' ${WRKSRC}/configure + 's|-lpthread|-pthread| ; \ + s|-lgcrypt||' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ - 's|-O2 -g|| ; \ - s|-lstdc|$${LDFLAGS}|' ${WRKSRC}/Makefile.in + 's|-pedantic|| ; \ + s|-O2 -g|$$(CPPFLAGS)| ; \ + s|-lstdc++|$$(LDFLAGS)|' ${WRKSRC}/Makefile.in .include diff -urN /usr/ports/benchmarks/postal/distinfo benchmarks/postal/distinfo --- /usr/ports/benchmarks/postal/distinfo 2014-01-23 03:12:43.000000000 +0900 +++ benchmarks/postal/distinfo 2014-03-06 00:00:00.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (postal-0.72.tgz) = 70d59adf8ab006a6ea389d8f276a265de743330458f5c1affb97d86bb0663bad -SIZE (postal-0.72.tgz) = 106720 +SHA256 (postal-0.73.tgz) = 25cc208f5a86d393707164d33a8dfb6ca5b9f586d0d401d549fc15179b766030 +SIZE (postal-0.73.tgz) = 106171 diff -urN /usr/ports/benchmarks/postal/files/patch-bhm.cpp benchmarks/postal/files/patch-bhm.cpp --- /usr/ports/benchmarks/postal/files/patch-bhm.cpp 2014-01-23 03:12:43.000000000 +0900 +++ benchmarks/postal/files/patch-bhm.cpp 2014-03-06 00:00:00.000000000 +0900 @@ -1,6 +1,21 @@ --- bhm.cpp.orig Tue Feb 6 16:04:04 2007 +++ bhm.cpp Tue Feb 6 16:05:12 2007 -@@ -13,7 +13,9 @@ +@@ -3,27 +3,25 @@ + #endif + + #include "bhmusers.h" +-#include +-#include ++#include ++#include + #include + #include +-#include +-#include ++#include ++#include ++#include + #include #include #include #include @@ -10,3 +25,40 @@ #include "postal.h" #include "logit.h" + #include "results.h" + #include "basictcp.h" +-#ifdef USE_GNUTLS +-#include +-#include +-GCRY_THREAD_OPTION_PTHREAD_IMPL; +-#endif + + int processes = 0; + int *thread_status; +@@ -47,7 +45,7 @@ + + int maxMsgSize = 10240; + results res; +-Logit *log; ++Logit *bhm_log; + + int exitCount = 0; + +@@ -261,7 +259,7 @@ + + void do_work(thread_data *td) + { +- base_tcp t(td->fd, log, td->debug, &res ++ base_tcp t(td->fd, bhm_log, td->debug, &res + #ifdef USE_SSL + , td->ssl + #endif +@@ -408,7 +406,7 @@ + #endif + "\n"); + +- log = new Logit("bhm.log", allLog, false, 0); ++ bhm_log = new Logit("bhm.log", allLog, false, 0); + Logit *debug = NULL; + + if(debugName) diff -urN /usr/ports/benchmarks/postal/files/patch-bhmusers.cpp benchmarks/postal/files/patch-bhmusers.cpp --- /usr/ports/benchmarks/postal/files/patch-bhmusers.cpp 1970-01-01 09:00:00.000000000 +0900 +++ benchmarks/postal/files/patch-bhmusers.cpp 2014-03-06 00:00:00.000000000 +0900 @@ -0,0 +1,10 @@ +--- bhmusers.cpp.orig ++++ bhmusers.cpp +@@ -1,5 +1,6 @@ + #include "bhmusers.h" +-#include ++#include ++#include + #include + #include "expand.h" + diff -urN /usr/ports/benchmarks/postal/files/patch-bhmusers.h benchmarks/postal/files/patch-bhmusers.h --- /usr/ports/benchmarks/postal/files/patch-bhmusers.h 1970-01-01 09:00:00.000000000 +0900 +++ benchmarks/postal/files/patch-bhmusers.h 2014-03-06 00:00:00.000000000 +0900 @@ -0,0 +1,44 @@ +--- bhmusers.h.orig ++++ bhmusers.h +@@ -6,12 +6,16 @@ + #include + #include "conf.h" + ++#if defined(_LIBCPP_VERSION) ++#include ++#else + #ifdef HAVE_EXT_HASH_MAP + using namespace __gnu_cxx; + #include + #else + #include + #endif ++#endif + + #include "postal.h" + +@@ -23,7 +27,12 @@ + int sync_time; + } BHM_DATA; + ++ ++#if defined(_LIBCPP_VERSION) ++namespace std ++#else + namespace __gnu_cxx ++#endif + { + template<> struct hash< std::string > + { +@@ -34,7 +43,11 @@ + }; + } + ++#if defined(_LIBCPP_VERSION) ++typedef std::unordered_map > NAME_MAP; ++#else + typedef hash_map > NAME_MAP; ++#endif + + class BHMUsers + { diff -urN /usr/ports/benchmarks/postal/files/patch-postal.cpp benchmarks/postal/files/patch-postal.cpp --- /usr/ports/benchmarks/postal/files/patch-postal.cpp 1970-01-01 09:00:00.000000000 +0900 +++ benchmarks/postal/files/patch-postal.cpp 2014-03-06 00:00:00.000000000 +0900 @@ -0,0 +1,21 @@ +--- postal.cpp.orig ++++ postal.cpp +@@ -6,15 +6,11 @@ + #include "smtp.h" + #include + #include +-#include +-#include ++#include ++#include ++#include + #include "postal.h" + #include "logit.h" +-#ifdef USE_GNUTLS +-#include +-#include +-GCRY_THREAD_OPTION_PTHREAD_IMPL; +-#endif + + void usage() + { diff -urN /usr/ports/benchmarks/postal/files/patch-rabid.cpp benchmarks/postal/files/patch-rabid.cpp --- /usr/ports/benchmarks/postal/files/patch-rabid.cpp 1970-01-01 09:00:00.000000000 +0900 +++ benchmarks/postal/files/patch-rabid.cpp 2014-03-06 00:00:00.000000000 +0900 @@ -0,0 +1,23 @@ +--- rabid.cpp.orig ++++ rabid.cpp +@@ -7,15 +7,14 @@ + #include + #include + #include +-#include +-#include +-#include ++#include ++#include ++#include ++#include + #include "postal.h" + #include "logit.h" + #ifdef USE_GNUTLS +-#include +-#include +-GCRY_THREAD_OPTION_PTHREAD_IMPL; ++#include + #endif + + void usage() diff -urN /usr/ports/benchmarks/postal/files/patch-smtp.cpp benchmarks/postal/files/patch-smtp.cpp --- /usr/ports/benchmarks/postal/files/patch-smtp.cpp 1970-01-01 09:00:00.000000000 +0900 +++ benchmarks/postal/files/patch-smtp.cpp 2014-03-06 00:00:00.000000000 +0900 @@ -0,0 +1,10 @@ +--- smtp.cpp.orig ++++ smtp.cpp +@@ -8,6 +8,7 @@ + #include "userlist.h" + #include "logit.h" + #include "results.h" ++#include + #include + + smtpData::smtpData() diff -urN /usr/ports/benchmarks/postal/files/patch-smtp.h benchmarks/postal/files/patch-smtp.h --- /usr/ports/benchmarks/postal/files/patch-smtp.h 1970-01-01 09:00:00.000000000 +0900 +++ benchmarks/postal/files/patch-smtp.h 2014-03-06 00:00:00.000000000 +0900 @@ -0,0 +1,34 @@ +--- smtp.h.orig ++++ smtp.h +@@ -4,14 +4,18 @@ + using namespace std; + #include + #include +-#include ++#include + #include "conf.h" ++#if defined(_LIBCPP_VERSION) ++#include ++#else + #ifdef HAVE_EXT_HASH_MAP + using namespace __gnu_cxx; + #include + #else + #include + #endif ++#endif + #include "tcp.h" + #include "mutex.h" + +@@ -30,7 +34,11 @@ + } + }; + ++#if defined(_LIBCPP_VERSION) ++typedef std::unordered_map, eqlng> NAME_MAP; ++#else + typedef hash_map, eqlng> NAME_MAP; ++#endif + + class smtpData + { diff -urN /usr/ports/benchmarks/postal/pkg-descr benchmarks/postal/pkg-descr --- /usr/ports/benchmarks/postal/pkg-descr 2014-01-23 03:12:43.000000000 +0900 +++ benchmarks/postal/pkg-descr 2014-03-06 00:00:00.000000000 +0900 @@ -1,7 +1,7 @@ Postal is a SMTP benchmark. -Postal-list will list all the possible expansions for an account name (used -for creating a list of accounts to create on your test server). +Postal-list will list all the possible expansions for an account name +(used for creating a list of accounts to create on your test server). Rabid is the mad Biff, it is a POP benchmark. >Release-Note: >Audit-Trail: >Unformatted: