From nobody Tue May 21 07:27:32 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vk5cN5QYHz5LY6b; Tue, 21 May 2024 07:27:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vk5cN4NYPz4WnD; Tue, 21 May 2024 07:27:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716276452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HMeZEVa9CD3Mzpp0ERtJNfD7r1zfVsrv7H25ErnvNh0=; b=TF1LoMmlNBv7djUl9VG2QPadyV8y2Oadz9Njom5MgKXV2xmlbElKy/gUKp1eukFm2xDUu3 o7LHawOGA7Pewiz7ggFx0wPW8Pno54cI6bGHDRKOK7xw2XuWBhqhcFYdvZe0b1J73DlQdn LV2fGIwN/dFjD8uhf1APPxsYaJ+6A3YTMdGIZu2cXaQl4oHNhOUsZZLACFmnirUY713sx2 PHUSHGr8qOCf0d30wrufbpuLBCdrDb0FZA56lFZk62zzLMueiwRjgutIyKRjwsfTTe5bG+ zo+zCnmE+YLdVx/gMP0p97QQcu9SBij5XtK3+jSyvIAEXwwXdGj+T/0VwVsbtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716276452; a=rsa-sha256; cv=none; b=pj33upBrm9GxPkoDEdTCviCzl71+j8KxJseWf1tB2fvG7XiaZaURxWnEVXuIVcFj7yK3Zp hIu3utHwpEYnQwIHNCXTws/H9S37yfAWg+2b5Uy3NrWBYeg5SDwqt9ffc82hlO1GC9t5Cl 8esxIkshN36FkD8/1CLTI+4NM87Xr3dadDB4TY1MU9M1/ixFN9QJF8m2eluYU+KQ666FYE xc2IhZRqD3sVqjap+Dd0o1y0oqHMzMKQuQzgTCSp5WSjLgdUDUVnvAyIqNUwPBBb30y+3Q qdhba5uZUFlQexfV8uvzE7MRPb7j++HHbuabhldL5PL3guPKQM7D3485WBhOzA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716276452; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HMeZEVa9CD3Mzpp0ERtJNfD7r1zfVsrv7H25ErnvNh0=; b=eEZDoRTJ/epgG6EPHOX2i2vLiPlfLcLdz92eyR5yT61iHt/ecZCAs3Lpdn8zc3bo6IwI4v 6ZFiqkhMCR9AjNSplhOXEC3Q+JDvlBrgW3nsqyXWhhA1F1F7U4+HlwdmkCvAX7qfoKFg2W +K7ISjaOX9ae0lkKVvFW84m3EUG8WKAx8zoekEKeyCslWqPl+JXuyzFwo6sLMJFkBm+FiX rcvwdZxAWmM6i9lrSW4vFD0wamKJWcn2mk0A7e4d7pX+sxmAEMgCsKO0y7qrdje0thQyUa li0DvEX0uGL9Y1u4thtiFEA+IlrhOuxdszH/tVGl3Q8UwoUfwj01HCja4g2YWA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vk5cN3zv7z1CC8; Tue, 21 May 2024 07:27:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44L7RWNZ056985; Tue, 21 May 2024 07:27:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44L7RWuh056982; Tue, 21 May 2024 07:27:32 GMT (envelope-from git) Date: Tue, 21 May 2024 07:27:32 GMT Message-Id: <202405210727.44L7RWuh056982@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Michael Gmelin Subject: git: 3ace88e8ff1e - main - deskutils/py-paperless-ngx: Fix document classifier hanging List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: grembo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3ace88e8ff1e9e2eaa2e7417da1ac03182188314 Auto-Submitted: auto-generated The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=3ace88e8ff1e9e2eaa2e7417da1ac03182188314 commit 3ace88e8ff1e9e2eaa2e7417da1ac03182188314 Author: Michael Gmelin AuthorDate: 2024-05-21 07:23:23 +0000 Commit: Michael Gmelin 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%%"