From owner-freebsd-ports-bugs@FreeBSD.ORG Thu May 2 02:00:00 2013 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]) by hub.freebsd.org (Postfix) with ESMTP id CE379B1 for ; Thu, 2 May 2013 02:00:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B12341EE5 for ; Thu, 2 May 2013 02:00:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r42200Yf083596 for ; Thu, 2 May 2013 02:00:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r42200Xh083595; Thu, 2 May 2013 02:00:00 GMT (envelope-from gnats) Resent-Date: Thu, 2 May 2013 02:00:00 GMT Resent-Message-Id: <201305020200.r42200Xh083595@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, Matthias Petermann Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 531F26B for ; Thu, 2 May 2013 01:54:56 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [69.147.83.34]) by mx1.freebsd.org (Postfix) with ESMTP id 440231EC7 for ; Thu, 2 May 2013 01:54:56 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r421ssvY026660 for ; Thu, 2 May 2013 01:54:54 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r421ssZT026659; Thu, 2 May 2013 01:54:54 GMT (envelope-from nobody) Message-Id: <201305020154.r421ssZT026659@red.freebsd.org> Date: Thu, 2 May 2013 01:54:54 GMT From: Matthias Petermann To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/178290: [patch] devel/py-pika update from 0.9.9 to 0.9.12 (fixes CPU 100% issue when listening for messages) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 May 2013 02:00:00 -0000 >Number: 178290 >Category: ports >Synopsis: [patch] devel/py-pika update from 0.9.9 to 0.9.12 (fixes CPU 100% issue when listening for messages) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu May 02 02:00:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Matthias Petermann >Release: 9.1 >Organization: >Environment: >Description: The attached patch updates py-pika. The existing version 0.9.9 has a known issue which leads to 100% CPU usage while waiting for messages to consume. In 0.9.12 this is fixed. >How-To-Repeat: #!/usr/bin/env python import pika connection = pika.BlockingConnection(pika.ConnectionParameters( host='localhost')) channel = connection.channel() channel.queue_declare(queue='benchmark', durable=True) print 'Waiting for messages. To exit press CTRL+C' def callback(ch, method, properties, body): print " [x] Received %r" % (len(body),) channel.basic_consume(callback,queue='benchmark',no_ack=True) channel.start_consuming() >Fix: Please apply the attached patch. Patch attached with submission follows: diff -ruN py-pika.orig/Makefile py-pika/Makefile --- py-pika.orig/Makefile 2013-05-02 03:45:43.000000000 +0200 +++ py-pika/Makefile 2013-05-02 03:45:59.000000000 +0200 @@ -2,7 +2,7 @@ # $FreeBSD: ports/devel/py-pika/Makefile,v 1.4 2013/01/31 07:43:55 svnexp Exp $ PORTNAME= pika -PORTVERSION= 0.9.9 +PORTVERSION= 0.9.12 CATEGORIES= devel net MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff -ruN py-pika.orig/distinfo py-pika/distinfo --- py-pika.orig/distinfo 2013-05-02 03:45:43.000000000 +0200 +++ py-pika/distinfo 2013-05-02 03:46:03.000000000 +0200 @@ -1,2 +1,2 @@ -SHA256 (pika-0.9.9.tar.gz) = 9f5313d1f9f34961f6b8199b0ee6053418955a3d337a0676bc8ce3b82f3b7d14 -SIZE (pika-0.9.9.tar.gz) = 56992 +SHA256 (pika-0.9.12.tar.gz) = 670787ee6ade47cadd1ec8220876b9b7ae4df7bc4b9dd1d808261a6b47e9ce5d +SIZE (pika-0.9.12.tar.gz) = 61825 >Release-Note: >Audit-Trail: >Unformatted: