public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Michal Hlavinka <mhlavink@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/nut] rawhide: fix nut's sysusers config (rhbz#2483506)
Date: Thu, 04 Jun 2026 10:16:27 GMT	[thread overview]
Message-ID: <178056818709.1.1762797868028869555.rpms-nut-98bd9e1ff934@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/nut
Branch : rawhide
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=rawhide

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
 

                 reply	other threads:[~2026-06-04 10:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178056818709.1.1762797868028869555.rpms-nut-98bd9e1ff934@fedoraproject.org \
    --to=mhlavink@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox