git: 3ace88e8ff1e - main - deskutils/py-paperless-ngx: Fix document classifier hanging
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 May 2024 07:27:32 UTC
The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=3ace88e8ff1e9e2eaa2e7417da1ac03182188314 commit 3ace88e8ff1e9e2eaa2e7417da1ac03182188314 Author: Michael Gmelin <grembo@FreeBSD.org> AuthorDate: 2024-05-21 07:23:23 +0000 Commit: Michael Gmelin <grembo@FreeBSD.org> CommitDate: 2024-05-21 07:23:23 +0000 deskutils/py-paperless-ngx: Fix document classifier hanging Set OMP_NUM_THREADS=1 as a workaround (taken from NixOS port). PR: 279011 Reported by: freebsd.bugzilla@mail.tinsuke.com --- deskutils/py-paperless-ngx/Makefile | 2 +- deskutils/py-paperless-ngx/files/paperless-worker.in | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deskutils/py-paperless-ngx/Makefile b/deskutils/py-paperless-ngx/Makefile index 118b08e71ad0..59679a6776c3 100644 --- a/deskutils/py-paperless-ngx/Makefile +++ b/deskutils/py-paperless-ngx/Makefile @@ -1,7 +1,7 @@ PORTNAME= paperless-ngx PORTVERSION= 2.7.2 DISTVERSIONPREFIX= v -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= deskutils python MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${DISTVERSIONPREFIX}${DISTVERSION}/:webui \ GH:gh diff --git a/deskutils/py-paperless-ngx/files/paperless-worker.in b/deskutils/py-paperless-ngx/files/paperless-worker.in index db99288a005e..1a4104ebdd16 100755 --- a/deskutils/py-paperless-ngx/files/paperless-worker.in +++ b/deskutils/py-paperless-ngx/files/paperless-worker.in @@ -34,7 +34,8 @@ paperless_worker_log_priority=${paperless_worker_log_priority:-"notice"} paperless_worker_log_tag=${paperless_worker_log_tag:-"paperless-worker"} paperless_worker_env="LANG=en_US.UTF-8 PATH=$PATH:%%PREFIX%%/bin \ - PYTHONPATH=%%PYTHONPREFIX_SITELIBDIR%%/paperless" + PYTHONPATH=%%PYTHONPREFIX_SITELIBDIR%%/paperless \ + OMP_NUM_THREADS=1" pidfile="/var/run/paperless/worker.pid" procname="%%PYTHON_CMD%%"