Bug 255563

Summary: misc/py-powerline-status: Add dependency for py37-psutil
Product: Ports & Packages Reporter: Stephan Lichtenauer <stephan>
Component: Individual Port(s)Assignee: Steve Wills <swills>
Status: Closed FIXED    
Severity: Affects Only Me CC: lwhsu
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Stephan Lichtenauer 2021-05-03 06:17:46 UTC
When using powerline in tmux with standard configuration but without having py37-psutil installed manually, the following warning is constantly displayed (and uptime is missing from the status bar):

WARNING:tmux:uptime:Unable to get uptime. You should install psutil module

I use the out of the box configuration, .tmux.conf only contains one line:

source "/usr/local/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf"

This warning goes away when manually installing py37-psutil.

I would therefore suggest to add py37-psutil as runtime port dependency.
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-08-28 01:54:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=268f414bdf3309dfadc94005d31f0f592a222d45

commit 268f414bdf3309dfadc94005d31f0f592a222d45
Author:     Steve Wills <swills@FreeBSD.org>
AuthorDate: 2021-05-20 17:31:21 +0000
Commit:     Steve Wills <swills@FreeBSD.org>
CommitDate: 2021-08-28 01:52:56 +0000

    misc/py-powerline-status: update to 2.8.2

    While here:

    * Fix docs build with non-default python versions
    * Add missing dependency on psutil [1]

    PR:             255563 [1]
    Reported by:    stephan@lichtenauer.co.za [1]

 misc/py-powerline-status/Makefile                           | 10 ++++++++--
 misc/py-powerline-status/distinfo                           |  6 +++---
 misc/py-powerline-status/files/patch-docs_Makefile (new)    | 10 ++++++++++
 .../files/patch-powerline_version.py (gone)                 | 13 -------------
 misc/py-powerline-status/pkg-message                        |  4 ++--
 5 files changed, 23 insertions(+), 20 deletions(-)
Comment 2 Steve Wills freebsd_committer freebsd_triage 2021-08-28 01:57:04 UTC
Fix committed, thanks for the report!