From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Apr 14 17:00:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5184106566C for ; Wed, 14 Apr 2010 17:00:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 905138FC14 for ; Wed, 14 Apr 2010 17:00:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3EH02pY094544 for ; Wed, 14 Apr 2010 17:00:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3EH02T4094543; Wed, 14 Apr 2010 17:00:02 GMT (envelope-from gnats) Resent-Date: Wed, 14 Apr 2010 17:00:02 GMT Resent-Message-Id: <201004141700.o3EH02T4094543@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, Thomas-Martin Seck Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55CE2106564A for ; Wed, 14 Apr 2010 16:51:23 +0000 (UTC) (envelope-from tmseck@netcologne.de) Received: from smtp6.netcologne.de (smtp6.netcologne.de [194.8.194.26]) by mx1.freebsd.org (Postfix) with ESMTP id DD74C8FC14 for ; Wed, 14 Apr 2010 16:51:22 +0000 (UTC) Received: from wcfields.tmseck.homedns.org (xdsl-78-35-48-95.netcologne.de [78.35.48.95]) by smtp6.netcologne.de (Postfix) with SMTP id 19B7B2A0ED8 for ; Wed, 14 Apr 2010 18:51:21 +0200 (CEST) Received: (qmail 34300 invoked by uid 1001); 14 Apr 2010 16:51:13 -0000 Message-Id: <20100414165113.34299.qmail@wcfields.tmseck.homedns.org> Date: 14 Apr 2010 16:51:13 -0000 From: Thomas-Martin Seck To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/145705: [Maintainer] www/gatling: update to 0.12 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas-Martin Seck List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2010 17:00:03 -0000 >Number: 145705 >Category: ports >Synopsis: [Maintainer] www/gatling: update to 0.12 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Apr 14 17:00:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Thomas-Martin Seck >Release: FreeBSD 8.0-RELEASE amd64 >Organization: a private site in Germany >Environment: FreeBSD ports collection as of April 14, 2010. >Description: Update to 0.12. Removed files: files/patch-bench.c files/patch-dl.c files/patch-http.c files/patch-matchiprange.c files/patch-rellink.c files/patch-strndup.c >How-To-Repeat: >Fix: Apply this patch: Index: Makefile =================================================================== --- Makefile (.../www/gatling) (Revision 1820) +++ Makefile (.../local/gatling) (Revision 1820) @@ -6,7 +6,7 @@ # PORTNAME= gatling -PORTVERSION= 0.11 +PORTVERSION= 0.12 CATEGORIES= www benchmarks ftp ipv6 MASTER_SITES= http://dl.fefe.de/ Index: distinfo =================================================================== --- distinfo (.../www/gatling) (Revision 1820) +++ distinfo (.../local/gatling) (Revision 1820) @@ -1,3 +1,3 @@ -MD5 (gatling-0.11.tar.bz2) = a0fb49ccb6b910bdbd7e76a9960394e3 -SHA256 (gatling-0.11.tar.bz2) = 9e1cb18612905b63755b0f463e6c5268789b3ab47db364bebe1ad077583e7571 -SIZE (gatling-0.11.tar.bz2) = 93269 +MD5 (gatling-0.12.tar.bz2) = 38ed634965af837142918f631f204e1b +SHA256 (gatling-0.12.tar.bz2) = ffe4dbff99404eb80e6aac215fdf6bf8174355edc33dd1848a51fc1093296a7c +SIZE (gatling-0.12.tar.bz2) = 99540 Index: files/patch-matchiprange.c =================================================================== --- files/patch-matchiprange.c (.../www/gatling) (Revision 1820) +++ files/patch-matchiprange.c (.../local/gatling) (Revision 1820) @@ -1,10 +0,0 @@ ---- matchiprange.c.orig 2009-04-10 18:17:38.000000000 +0200 -+++ matchiprange.c 2009-04-10 18:17:58.000000000 +0200 -@@ -17,6 +17,7 @@ - #include - #include - #include -+#include - - char _buf[8192]; - Index: files/patch-bench.c =================================================================== --- files/patch-bench.c (.../www/gatling) (Revision 1820) +++ files/patch-bench.c (.../local/gatling) (Revision 1820) @@ -1,10 +0,0 @@ ---- bench.c.orig 2009-04-10 18:15:06.000000000 +0200 -+++ bench.c 2009-04-10 18:15:19.000000000 +0200 -@@ -13,6 +13,7 @@ - #include - #include - #include -+#include - - void usage() { - die(0,"usage: bench [-n requests] [-c concurrency] [-t timeout] [-k] [-K count]\n" Index: files/patch-dl.c =================================================================== --- files/patch-dl.c (.../www/gatling) (Revision 1820) +++ files/patch-dl.c (.../local/gatling) (Revision 1820) @@ -1,13 +0,0 @@ ---- dl.c.orig 2009-04-10 17:51:59.000000000 +0200 -+++ dl.c 2009-04-10 17:56:31.000000000 +0200 -@@ -37,6 +37,10 @@ - #include - #include - #include -+#include "havestrndup.h" -+#ifndef LIBC_HAS_STRNDUP -+char* strndup(const char*, size_t); -+#endif - - int dostats; - Index: files/patch-http.c =================================================================== --- files/patch-http.c (.../www/gatling) (Revision 1820) +++ files/patch-http.c (.../local/gatling) (Revision 1820) @@ -1,9 +0,0 @@ ---- http.c.orig 2009-04-10 16:01:37.000000000 +0200 -+++ http.c 2009-04-10 16:01:57.000000000 +0200 -@@ -1,4 +1,6 @@ -+/* this define breaks the build on FreeBSD: - #define _XOPEN_SOURCE 500 -+*/ - - #include "gatling.h" - Index: files/patch-strndup.c =================================================================== --- files/patch-strndup.c (.../www/gatling) (Revision 1820) +++ files/patch-strndup.c (.../local/gatling) (Revision 1820) @@ -1,65 +0,0 @@ ---- /dev/null 2009-04-10 17:44:00.000000000 +0200 -+++ trystrndup.c 2009-04-10 17:01:00.000000000 +0200 -@@ -0,0 +1,6 @@ -+#include -+int main() { -+char* s; -+s=strndup("foo",3); -+return 0; -+} ---- /dev/null 2009-04-10 16:55:00.000000000 +0200 -+++ strndup.c 2009-01-08 10:50:20.000000000 +0100 -@@ -0,0 +1,53 @@ -+/* $NetBSD: strndup.c,v 1.3 2007/01/14 23:41:24 cbiere Exp $ */ -+ -+/* -+ * Copyright (c) 1988, 1993 -+ * The Regents of the University of California. All rights reserved. -+ * -+ * Redistribution and use in source and binary forms, with or without -+ * modification, are permitted provided that the following conditions -+ * are met: -+ * 1. Redistributions of source code must retain the above copyright -+ * notice, this list of conditions and the following disclaimer. -+ * 2. Redistributions in binary form must reproduce the above copyright -+ * notice, this list of conditions and the following disclaimer in the -+ * documentation and/or other materials provided with the distribution. -+ * 4. Neither the name of the University nor the names of its contributors -+ * may be used to endorse or promote products derived from this software -+ * without specific prior written permission. -+ * -+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND -+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE -+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL -+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS -+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT -+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY -+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -+ * SUCH DAMAGE. -+ */ -+ -+#include -+__FBSDID("$FreeBSD: ports/www/gatling/files/patch-strndup.c,v 1.1 2009/05/28 17:21:46 dhn Exp $"); -+ -+#include -+#include -+#include -+ -+char * -+strndup(const char *str, size_t n) -+{ -+ size_t len; -+ char *copy; -+ -+ for (len = 0; len < n && str[len]; len++) -+ continue; -+ -+ if ((copy = malloc(len + 1)) == NULL) -+ return (NULL); -+ memcpy(copy, str, len); -+ copy[len] = '\0'; -+ return (copy); -+} Index: files/patch-rellink.c =================================================================== --- files/patch-rellink.c (.../www/gatling) (Revision 1820) +++ files/patch-rellink.c (.../local/gatling) (Revision 1820) @@ -1,10 +0,0 @@ ---- rellink.c.orig 2009-04-10 18:15:33.000000000 +0200 -+++ rellink.c 2009-04-10 18:15:46.000000000 +0200 -@@ -17,6 +17,7 @@ - #include - #include - #include -+#include - - static int canonicalize(stralloc* url,const char* baseurl) { - /* for the comments, assume baseurl is "http://www.fefe.de/x/y.html" */ Index: files/patch-GNUmakefile =================================================================== --- files/patch-GNUmakefile (.../www/gatling) (Revision 1820) +++ files/patch-GNUmakefile (.../local/gatling) (Revision 1820) @@ -1,5 +1,5 @@ ---- GNUmakefile.orig 2009-04-09 19:00:23.000000000 +0200 -+++ GNUmakefile 2009-04-10 17:46:56.000000000 +0200 +--- GNUmakefile.orig 2010-04-11 07:49:08.000000000 +0200 ++++ GNUmakefile 2010-04-14 18:29:35.000000000 +0200 @@ -1,24 +1,23 @@ -#DEBUG=1 -ZLIB=1 @@ -46,7 +46,7 @@ CFLAGS+=-g LDFLAGS+=-g -else --CFLAGS+=-O2 -fomit-frame-pointer +-CFLAGS+=-O2 -fomit-frame-pointer -I/usr/local/include -LDFLAGS+=-s -ifneq ($(DIET),) -DIET+=-Os @@ -63,26 +63,15 @@ forksbench: forkbench.o $(CC) -static -o $@ forkbench.o $(LDFLAGS) $(LDLIBS) -@@ -86,9 +81,11 @@ - gatling: gatling.o $(OBJS) md5lib - $(CC) $(LDFLAGS) $@.o $(OBJS) -o $@ $(LDLIBS) `cat md5lib` - -+dl: dl.c havestrndup havestrndup.h -+ $(CC) $(CFLAGS) dl.c `cat havestrndup` $(LDFLAGS) -lowfat -o $@ -+ - httpbench: httpbench.o - bindbench: bindbench.o --dl: dl.o - ioerr: ioerr.o - bench: bench.o - getlinks: getlinks.o -@@ -121,9 +118,13 @@ +@@ -121,11 +116,13 @@ rm -f trysocket libiconv: tryiconv.c - if $(CC) $(CFLAGS) -o tryiconv tryiconv.c >/dev/null 2>&1; then echo ""; else \ -- if $(CC) $(CFLAGS) -o tryiconv tryiconv.c -liconv >/dev/null 2>&1; then echo "-liconv"; \ -- fi; fi > libiconv +- if $(CC) $(CFLAGS) -o tryiconv tryiconv.c -liconv >/dev/null 2>&1; then echo "-liconv"; else \ +- if $(CC) $(CFLAGS) -o tryiconv tryiconv.c -L/usr/local/lib -liconv >/dev/null 2>&1; then \ +- echo "-L/usr/local/lib -liconv"; \ +- fi; fi; fi > libiconv +ifdef ICONV + if $(CC) $(CFLAGS) $(LDFLAGS) -o tryiconv tryiconv.c -liconv >/dev/null 2>&1; then echo "-L$(LDFLAGS) -liconv"; else \ + echo ""; \ @@ -93,14 +82,3 @@ rm -f tryiconv libcrypt: trycrypt.c -@@ -144,6 +145,10 @@ - if $(CC) $(CFLAGS) -o tryresuid $^ >/dev/null 2>&1; then echo "#define LIBC_HAS_SETRESUID"; fi > $@ - -rm -f tryresuid - -+havestrndup havestrndup.h: trystrndup.c -+ if $(CC) $(CFLAGS) -o trystrndup $^ >/dev/null 2>&1; then echo "">havestrndup; echo "#define LIBC_HAS_STRNDUP">havestrndup.h; else echo "strndup.c">havestrndup; echo "">havestrndup.h; fi -+ rm -f trystrndup -+ - dummy.c: - touch $@ - >Release-Note: >Audit-Trail: >Unformatted: