public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/nut] f43: fix nut's sysusers config (rhbz#2483506)
@ 2026-06-04 12:40 Michal Hlavinka
  0 siblings, 0 replies; only message in thread
From: Michal Hlavinka @ 2026-06-04 12:40 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/nut
Branch : f43
Commit : 98bd9e1ff934f70823aed92a5b439398f6250b08
Author : Michal Hlavinka <mhlavink@redhat.com>
Date   : 2026-06-04T12:16:15+02:00
Stats  : +11/-8 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/nut/c/98bd9e1ff934f70823aed92a5b439398f6250b08?branch=f43

Log:
fix nut's sysusers config (rhbz#2483506)

---
diff --git a/nut.spec b/nut.spec
index 98f8d60..e951c62 100644
--- a/nut.spec
+++ b/nut.spec
@@ -13,7 +13,7 @@
 Summary: Network UPS Tools
 Name: nut
 Version: 2.8.5
-Release: 2%{?dist}
+Release: 3%{?dist}
 License: GPL-2.0-or-later AND GPL-3.0-or-later
 Url: https://www.networkupstools.org/
 Source: https://www.networkupstools.org/source/2.8/%{name}-%{version}.tar.gz
@@ -151,13 +151,6 @@ find . -mtime -1 -print0 | xargs -0 touch --reference %{SOURCE0}
 # fix python site packages check
 sed -i 's|\(PYTHON3\?_SITE_PACKAGES=\)".*"|\1"%{python3_sitelib}"|' m4/nut_check_python.m4
 
-# Create a sysusers.d config file
-cat >scripts/systemd/nut-common-sysusers.conf.in <<EOF
-u nut %{nut_uid} 'Network UPS Tools' @STATEPATH@ /bin/false
-m nut dialout
-m nut tty
-EOF
-
 %build
 %if 0%{?fedora}
 #--without-gpio is not enough to stop it complaining about missing library
@@ -205,6 +198,13 @@ export LDFLAGS="-Wl,-z,now"
 # for rhbz#838139 check if still needed?
 sh %{SOURCE4} >>include/config.h
 
+# Create a sysusers.d config file - in build phase, as configure recreates the template
+cat >scripts/systemd/nut-common-sysusers.conf.in <<EOF
+u nut %{nut_uid} 'Network UPS Tools' @STATEPATH@ /bin/false
+m nut dialout
+m nut tty
+EOF
+
 #remove rpath
 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@@ -534,6 +534,9 @@ fi
 %{_libdir}/pkgconfig/libnutscan.pc
 
 %changelog
+* Thu Jun 04 2026 Michal Hlavinka <mhlavink@redhat.com> - 2.8.5-3
+- fix nut's sysusers config (rhbz#2483506)
+
 * Thu Jun 04 2026 Python Maint <python-maint@redhat.com> - 2.8.5-2
 - Rebuilt for Python 3.15
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-04 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-04 12:40 [rpms/nut] f43: fix nut's sysusers config (rhbz#2483506) Michal Hlavinka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox