public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/abrt] update-2.17.8: Add sysusers.d config file to allow rpm to create users/groups automatically
@ 2026-08-03 10:24
0 siblings, 0 replies; only message in thread
From: @ 2026-08-03 10:24 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/abrt
Branch : update-2.17.8
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.8
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-03 10:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-03 10:24 [rpms/abrt] update-2.17.8: Add sysusers.d config file to allow rpm to create users/groups automatically
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox