SHA256
1
0
forked from pool/elfutils

Updating link to change in openSUSE:Factory/elfutils revision 94.0

OBS-URL: https://build.opensuse.org/package/show/Base:System/elfutils?expand=0&rev=869a7f68556a18b60f0b4f115b7d3b32
This commit is contained in:
OBS User buildservice-autocommit 2022-04-19 07:57:51 +00:00 committed by Git OBS Bridge
parent ffcab9d5b3
commit 8331f63bc9
3 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 13 15:15:25 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- Change to systemd-sysusers
* Add elfutils-debuginfod.sysusers
-------------------------------------------------------------------
Fri Feb 25 19:36:08 UTC 2022 - Tony Jones <tonyj@suse.com>

View File

@ -28,11 +28,13 @@ Source: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfuti
Source1: https://fedorahosted.org/releases/e/l/elfutils/%{version}/elfutils-%{version}.tar.bz2.sig
Source2: elfutils.changes
Source3: elfutils.keyring
Source4: %{name}.sysusers
Patch2: harden_debuginfod.service.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: bison
BuildRequires: bsdtar
BuildRequires: sysuser-tools
BuildRequires: procps
# For the run-debuginfod-find.sh test case in %%check for /usr/sbin/ss
BuildRequires: curl
@ -56,6 +58,7 @@ Requires: elfutils = %{version}
Requires: sysconfig
Requires(post): %fillup_prereq
%{?systemd_requires}
%sysusers_requires
%description
The elfutils-debuginfod package contains the debuginfod binary
@ -101,6 +104,7 @@ The elfutils-debuginfod-client package contains a command-line frontend.
%autosetup -n elfutils-%version -p1
%build
%sysusers_generate_pre %{SOURCE4} %{name} %{name}.conf
# Change DATE/TIME macros to use last change time of elfutils.changes
# See http://lists.opensuse.org/opensuse-factory/2011-05/msg00304.html
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
@ -152,6 +156,8 @@ install -Dm0644 config/debuginfod.service %{buildroot}%{_unitdir}/debuginfod.ser
install -d -m 755 %{buildroot}%{_fillupdir}
cp config/debuginfod.sysconfig %{buildroot}%{_fillupdir}/sysconfig.debuginfod
install -Dm0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf
mkdir -p %{buildroot}%{_localstatedir}/cache/debuginfod
touch %{buildroot}%{_localstatedir}/cache/debuginfod/debuginfod.sqlite
@ -172,6 +178,7 @@ export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native
%{_unitdir}/debuginfod.service
%{_mandir}/man8/debuginfod.8*
%{_fillupdir}/sysconfig.debuginfod
%{_sysusersdir}/%{name}.conf
%dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod
%verify(not md5 size mtime) %attr(0600,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod/debuginfod.sqlite
@ -196,9 +203,7 @@ export XFAIL_TESTS="dwfl-proc-attach run-backtrace-dwarf.sh run-backtrace-native
%{_mandir}/man1/debuginfod-find.1*
%{_mandir}/man7/debuginfod-client-config.7*
%pre
getent group debuginfod >/dev/null || %{_sbindir}/groupadd -r debuginfod
getent passwd debuginfod >/dev/null || %{_sbindir}/useradd -r -g debuginfod -d %{_localstatedir}/cache/debuginfod -s /bin/false -c "elfutils debuginfo server" debuginfod
%pre -f %{name}.pre
%service_add_pre debuginfod.service
%post

View File

@ -0,0 +1,2 @@
#Type Name ID GECOS Home directory Shell
u debuginfod - "elfutils debuginfo server" /var/cache/debuginfod -