diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 8 | ||||
-rw-r--r-- | config/Makefile.am | 6 | ||||
-rw-r--r-- | config/elfutils.spec.in | 5 | ||||
-rw-r--r-- | config/profile.csh.in | 2 | ||||
-rw-r--r-- | config/profile.sh.in | 3 |
5 files changed, 21 insertions, 3 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index c8e4fcd4..9c31925f 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,11 @@ +2020-10-01 Frank Ch. Eigler <fche@redhat.com> + + PR25461 + * profile.sh.in, profile.csh.in: New files for /etc/profiles.d + to define $DEBUGINFOD_URLS. + * elfutils.spec.in: Configure with --enable-debuginfod-urls. + * Makefile.am: Install them. + 2020-09-18 Mark Wielaard <mark@klomp.org> * elfutils.spec.in: Add BuildRequires for libzstd-devel and zstd. diff --git a/config/Makefile.am b/config/Makefile.am index 11f17df0..ae6ffc9b 100644 --- a/config/Makefile.am +++ b/config/Makefile.am @@ -30,7 +30,7 @@ ## EXTRA_DIST = elfutils.spec.in known-dwarf.awk 10-default-yama-scope.conf \ libelf.pc.in libdw.pc.in libdebuginfod.pc.in \ - debuginfod.service debuginfod.sysconfig + debuginfod.service debuginfod.sysconfig profile.sh.in profile.csh.in pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libelf.pc libdw.pc @@ -38,6 +38,10 @@ if DEBUGINFOD pkgconfig_DATA += libdebuginfod.pc endif +install-data-local: + $(INSTALL_DATA) profile.sh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh + $(INSTALL_DATA) profile.csh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh + if MAINTAINER_MODE $(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS @tmpname=$$(mktemp $${TMPDIR:-/tmp}/elfutils.XXXXXX); \ diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in index 37af1b07..170c95e5 100644 --- a/config/elfutils.spec.in +++ b/config/elfutils.spec.in @@ -181,7 +181,7 @@ such servers to download those files on demand. %setup -q %build -%configure --program-prefix=%{_programprefix} --enable-debuginfod +%configure --program-prefix=%{_programprefix} --enable-debuginfod --enable-debuginfod-urls make -s %{?_smp_mflags} %install @@ -296,7 +296,8 @@ fi %{_libdir}/libdebuginfod.so.* %{_bindir}/debuginfod-find %{_mandir}/man1/debuginfod-find.1* - +%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/profile.d/* + %files debuginfod-client-devel %defattr(-,root,root) %{_libdir}/pkgconfig/libdebuginfod.pc diff --git a/config/profile.csh.in b/config/profile.csh.in new file mode 100644 index 00000000..4f25896d --- /dev/null +++ b/config/profile.csh.in @@ -0,0 +1,2 @@ + +setenv DEBUGINFOD_URLS "$DEBUGINFOD_URLS @DEBUGINFOD_URLS@" diff --git a/config/profile.sh.in b/config/profile.sh.in new file mode 100644 index 00000000..8a022489 --- /dev/null +++ b/config/profile.sh.in @@ -0,0 +1,3 @@ + +DEBUGINFOD_URLS="$DEBUGINFOD_URLS @DEBUGINFOD_URLS@" +export DEBUGINFOD_URLS |