Bug 202369

Summary: [MAINTAINER][PATCH] www/calendarserver incompatible with sysutils/py-psutil-3.1.1
Product: Ports & Packages Reporter: Axel.Rau
Component: Individual Port(s)Assignee: Pawel Pekala <pawel>
Status: Closed FIXED    
Severity: Affects Only Me CC: pawel
Priority: --- Keywords: patch
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch against revision 394414
none
poudriere testport on 10.1 Axel.Rau: maintainer-approval+

Description Axel.Rau 2015-08-16 17:46:30 UTC
Created attachment 159930 [details]
patch against revision 394414

Problem:
After upgradung dependency sysutils/py-psutil to version 3.1.1
calendarserver fails with:
- - -
	  File "/usr/local/lib/python2.7/site-packages/calendarserver/accesslog.py", line 594, in __init__
	    "cpu count"     : psutil.NUM_CPUS if psutil is not None else -1,
	exceptions.AttributeError: 'module' object has no attribute 'NUM_CPUS'
- - -

Fix:
Use sysutils/py-psutil121 instead.
Patch attached.
Comment 1 Axel.Rau 2015-08-16 17:49:32 UTC
Created attachment 159931 [details]
poudriere testport on 10.1
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-10-09 21:42:05 UTC
A commit references this bug:

Author: pawel
Date: Fri Oct  9 21:41:03 UTC 2015
New revision: 398961
URL: https://svnweb.freebsd.org/changeset/ports/398961

Log:
  Depend on correct sysutils/py-psutil version to avoid
  runtime problem.

  PR:		202369
  Submitted by:	maintainer

Changes:
  head/www/calendarserver/Makefile