HEzV2NDYdZwQQ9uKm/Gm8oF/6dHPrXAU=; b=AFDS0NB9DAGOoNkJI6dfaKNbltD3GxGRESklLEWk59vozno0cqctgQHsMAhJJlgUm5fv3M M2AOUhOjF+xsg15igfnHglySYhkUEgNw0dH6dzQ6xJH615N+L1xASJQJ/O8LmjKQb36DHZ /9tqz0uzl41XAN2rBCei/4OYE23WUzzYDGit3KWZQHeKhHrv4N5bUGmWfRrYLhxqSzmD3o kj95cSBKbFqgpFmjCa2l44xkGKMnIxIubgvIBiVOd5rQ8mrKBqHknIae7NGjFpkXlRW0wn vq2eWZ/1Qns3dBtV5VCQYLIWEV3gnUndcGrOkmhWKs9UKSjdv1ECeOWj2nNI9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fvfPv6WwNz4WL for ; Mon, 13 Apr 2026 20:38:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 46727 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 13 Apr 2026 20:38:43 +0000 To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Cy Schubert Subject: git: c8196a07915a - main - sysutils/nut*: Fix configure when user uses the uucp user account 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: cy X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c8196a07915af18400e46e1919a44a075d99cae3 Auto-Submitted: auto-generated Date: Mon, 13 Apr 2026 20:38:43 +0000 Message-Id: <69dd5453.46727.7c874dce@gitrepo.freebsd.org> The branch main has been updated by cy: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8196a07915af18400e46e1919a44a075d99cae3 commit c8196a07915af18400e46e1919a44a075d99cae3 Author: Cy Schubert AuthorDate: 2026-04-13 20:34:27 +0000 Commit: Cy Schubert CommitDate: 2026-04-13 20:34:27 +0000 sysutils/nut*: Fix configure when user uses the uucp user account Users wanting to use the uucp user account will experience configure faiures because uucp is baked into the configure script. We make the configure script default to "nothing" to address this edge case. The default user (nut) is already set by the port and ports plumbing. PR: 294350 --- sysutils/nut-devel/files/patch-configure.ac | 20 ++++++++++++++----- sysutils/nut/files/patch-configure | 30 +++++++++++++++++------------ 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/sysutils/nut-devel/files/patch-configure.ac b/sysutils/nut-devel/files/patch-configure.ac index f4ba07af7082..3d88ae66638e 100644 --- a/sysutils/nut-devel/files/patch-configure.ac +++ b/sysutils/nut-devel/files/patch-configure.ac @@ -1,6 +1,8 @@ ---- configure.ac.orig 2025-11-17 08:11:32.054205000 -0800 -+++ configure.ac 2025-11-17 08:19:12.634169000 -0800 -@@ -509,13 +509,6 @@ +diff --git a/configure.ac.orig b/configure.ac +index 8919d01..9f454f9 100644 +--- a/configure.ac.orig ++++ b/configure.ac +@@ -531,13 +531,6 @@ AS_IF([test -n "`${PROBE_OS_GROUP} nogroup`" && test -z "`${PROBE_OS_GROUP} \"${ [RUN_AS_GROUP="nogroup"] ) @@ -14,7 +16,15 @@ dnl NOTE: NUT legacy default, keep as is for least surprise dnl Distributions are however welcome to specify the option to use tmpfs AS_CASE([${target_os}], -@@ -2844,7 +2837,7 @@ +@@ -1965,7 +1958,6 @@ AC_CHECK_DECLS(uu_lock, [ + AC_DEFINE(HAVE_UU_LOCK, 1, [Use uu_lock for locking (FreeBSD)]) + SERLIBS="-lutil" + dnl put in some better defaults for FreeBSD +- RUN_AS_USER="uucp" + ], [ + SERLIBS="" + ], [ +@@ -2940,7 +2932,7 @@ NUT_CHECK_LIBGLIB dnl A Python GUI client application for the sysadmin desktop dnl (not necessarily on the NUT server itself): @@ -23,7 +33,7 @@ NUT_ARG_WITH([pynut], [install the PyNUT module files (yes, no, app, auto)], [auto]) dnl Note: we did NUT_CHECK_PYTHON2 NUT_CHECK_PYTHON3 etc above, dnl and if at all possible, we generate the files from .in templates -@@ -3534,7 +3527,7 @@ +@@ -3675,7 +3667,7 @@ if test x"${nut_with_nut_monitor}" != xno ; then dnl Can we satisfy any NUT-Monitor installation request? if test -n "${nut_with_nut_monitor_py2gtk2}${nut_with_nut_monitor_py3qt5}${nut_with_nut_monitor_py3qt6}" ; then case "${nut_with_nut_monitor}" in diff --git a/sysutils/nut/files/patch-configure b/sysutils/nut/files/patch-configure index 8d490e0823f5..5cf35fc6265d 100644 --- a/sysutils/nut/files/patch-configure +++ b/sysutils/nut/files/patch-configure @@ -1,11 +1,8 @@ ---- configure.orig 2026-04-09 09:46:14.395464000 -0700 -+++ configure 2026-04-09 10:04:59.108399000 -0700 -@@ -9339,20 +9339,8 @@ - if test -n "`${PROBE_OS_GROUP} nogroup`" && test -z "`${PROBE_OS_GROUP} \"${RUN_AS_GROUP}\"`" - then : - RUN_AS_GROUP="nogroup" -- --fi +--- configure.orig 2026-04-13 13:26:29.248587000 -0700 ++++ configure 2026-04-13 13:31:28.601276000 -0700 +@@ -9342,18 +9342,6 @@ + + fi -for TOKEN in upsmon nutmon ups nut; do - if test -n "`${PROBE_OS_USER} ${TOKEN}`" @@ -15,13 +12,22 @@ - if test -n "`${PROBE_OS_GROUP} ${TOKEN}`" -then : - RUN_AS_GROUP="${TOKEN}" - fi +-fi -done -unset TOKEN - +- case ${target_os} in #( *mingw*) : -@@ -41472,7 +41460,7 @@ + POWERDOWNFLAG="C:\\\\killpower" ;; #( +@@ -22556,7 +22544,6 @@ + printf "%s\n" "#define HAVE_UU_LOCK 1" >>confdefs.h + + SERLIBS="-lutil" +- RUN_AS_USER="uucp" + + else $as_nop + +@@ -41472,7 +41459,7 @@ then : withval=$with_nut_monitor; nut_with_nut_monitor="${withval}" else $as_nop @@ -30,7 +36,7 @@ fi -@@ -47583,7 +47571,7 @@ +@@ -47583,7 +47570,7 @@ fi if test -n "${nut_with_nut_monitor_py2gtk2}${nut_with_nut_monitor_py3qt5}${nut_with_nut_monitor_py3qt6}" ; then case "${nut_with_nut_monitor}" in