Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Oct 2018 20:05:52 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r482259 - in head/devel/py-oslo.messaging: . files
Message-ID:  <201810162005.w9GK5qM9011704@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Oct 16 20:05:52 2018
New Revision: 482259
URL: https://svnweb.freebsd.org/changeset/ports/482259

Log:
  Fix RabbitMQ connections with Python 3.x
  
  - Bump PORTREVISION for package change
  
  PR:		232246
  Submitted by:	Kai <freebsd_ports@k-worx.org>

Added:
  head/devel/py-oslo.messaging/files/
  head/devel/py-oslo.messaging/files/patch-oslo_messaging-_drivers-impl_rabbit.py   (contents, props changed)
Modified:
  head/devel/py-oslo.messaging/Makefile

Modified: head/devel/py-oslo.messaging/Makefile
==============================================================================
--- head/devel/py-oslo.messaging/Makefile	Tue Oct 16 20:05:43 2018	(r482258)
+++ head/devel/py-oslo.messaging/Makefile	Tue Oct 16 20:05:52 2018	(r482259)
@@ -3,6 +3,7 @@
 
 PORTNAME=	oslo.messaging
 PORTVERSION=	6.0.0
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Added: head/devel/py-oslo.messaging/files/patch-oslo_messaging-_drivers-impl_rabbit.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-oslo.messaging/files/patch-oslo_messaging-_drivers-impl_rabbit.py	Tue Oct 16 20:05:52 2018	(r482259)
@@ -0,0 +1,13 @@
+--- oslo_messaging/_drivers/impl_rabbit.py.orig	2018-03-27 18:46:38 UTC
++++ oslo_messaging/_drivers/impl_rabbit.py
+@@ -919,8 +919,8 @@ class Connection(object):
+                       % (self.connection_id, str(e)))
+         else:
+             sock.settimeout(timeout)
+-            # TCP_USER_TIMEOUT is not defined on Windows and Mac OS X
+-            if sys.platform != 'win32' and sys.platform != 'darwin':
++            # TCP_USER_TIMEOUT is not defined on FreeBSD, Windows and Mac OS X
++            if sys.platform[0:7] != 'freebsd' and sys.platform != 'win32' and sys.platform != 'darwin':
+                 try:
+                     timeout = timeout * 1000 if timeout is not None else 0
+                     # NOTE(gdavoian): only integers and strings are allowed



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810162005.w9GK5qM9011704>