public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/abrt] update-2.17.9-f44: Add sysusers.d config file to allow rpm to create users/groups automatically
Date: Mon, 03 Aug 2026 11:05:52 GMT	[thread overview]
Message-ID: <178575515268.1.8204687727815524897.rpms-abrt-3063be65d9f4@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/abrt
Branch : update-2.17.9-f44
Commit : 3063be65d9f436a61e6574e60725dba73de68a83
Author : Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date   : 2025-01-23T17:02:44+01:00
Stats  : +14/-8 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/abrt/c/3063be65d9f436a61e6574e60725dba73de68a83?branch=update-2.17.9-f44

Log:
Add sysusers.d config file to allow rpm to create users/groups automatically

---
diff --git a/abrt.spec b/abrt.spec
index 3efaa98..d003e87 100644
--- a/abrt.spec
+++ b/abrt.spec
@@ -57,7 +57,7 @@
 Summary: Automatic bug detection and reporting tool
 Name: abrt
 Version: 2.17.6
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPL-2.0-or-later
 URL: https://abrt.readthedocs.org/
 Source: https://github.com/abrt/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
@@ -469,6 +469,13 @@ to the shell
 %global __scm_apply_git(qp:m:) %{__git} am --exclude doc/design --exclude doc/project/abrt.tex
 %autosetup -S git -p 0
 
+# Create a sysusers.d config file
+#uidgid pair 173:173 reserved in setup rhbz#670231
+%global abrt_gid_uid 173
+cat >abrt.sysusers.conf <<EOF
+u abrt %{abrt_gid_uid} - /etc/abrt -
+EOF
+
 %build
 ./autogen.sh
 
@@ -538,6 +545,8 @@ rm -vf %{buildroot}%{python3_sitelib}/__pycache__/abrt_exception_handler3_contai
 # After everything is installed, remove info dir
 rm -f %{buildroot}%{_infodir}/dir
 
+install -m0644 -D abrt.sysusers.conf %{buildroot}%{_sysusersdir}/abrt.conf
+
 %check
 make check|| {
     # find and print the logs of failed test
@@ -547,13 +556,6 @@ make check|| {
     exit 1
 }
 
-%pre
-#uidgid pair 173:173 reserved in setup rhbz#670231
-%define abrt_gid_uid 173
-getent group abrt >/dev/null || groupadd -f -g %{abrt_gid_uid} --system abrt
-getent passwd abrt >/dev/null || useradd --system -g abrt -u %{abrt_gid_uid} -d /etc/abrt -s /sbin/nologin abrt
-exit 0
-
 %post
 # $1 == 1 if install; 2 if upgrade
 %systemd_post abrtd.service
@@ -753,6 +755,7 @@ killall abrt-dbus >/dev/null 2>&1 || :
 %{_mandir}/man5/abrt-action-save-package-data.conf.5*
 %{_mandir}/man5/gpg_keys.conf.5*
 %{_mandir}/man8/abrtd.8*
+%{_sysusersdir}/abrt.conf
 
 %files libs
 %{_libdir}/libabrt.so.*
@@ -986,6 +989,9 @@ killall abrt-dbus >/dev/null 2>&1 || :
 %config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh
 
 %changelog
+* Thu Jan 23 2025 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.17.6-5
+- Add sysusers.d config file to allow rpm to create users/groups automatically
+
 * Thu Jan 16 2025 Fedora Release Engineering <releng@fedoraproject.org> - 2.17.6-4
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
 

                 reply	other threads:[~2026-08-03 11:05 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=178575515268.1.8204687727815524897.rpms-abrt-3063be65d9f4@fedoraproject.org \
    --to=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