diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/ChangeLog | 43 | ||||
| -rw-r--r-- | config/Makefile.am | 9 | ||||
| -rw-r--r-- | config/debuginfod.service | 3 | ||||
| -rw-r--r-- | config/elfutils.spec.in | 35 | ||||
| -rw-r--r-- | config/libdw.pc.in | 4 | ||||
| -rw-r--r-- | config/profile.csh.in | 2 | ||||
| -rw-r--r-- | config/profile.sh.in | 3 | ||||
| -rwxr-xr-x | config/upload-release.sh | 2 |
8 files changed, 92 insertions, 9 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 2ad93702..c532f7e6 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,46 @@ +2020-10-31 Dmitry V. Levin <[email protected]> + + * Makefile.am (install-data-local, uninstall-local): Conditionalize + on DEBUGINFOD. + +2020-10-30 Mark Wielaard <[email protected]> + + * elfutils.spec.in: Update for 0.182. + +2020-10-31 Frank Ch. Eigler <[email protected]> + + * debuginfod.service: Bump up TimeoutStopSec. + +2020-10-30 Frank Ch. Eigler <[email protected]> + + * elfutils.spec.in: Fix debuginfod config/state file attributes + for non-lossy updates. + +2020-10-08 Frank Ch. Eigler <[email protected]> + + * Makefile.am (uninstall-local): Uninstall the new profile.d files. + +2020-10-01 Frank Ch. Eigler <[email protected]> + + PR25461 + * profile.sh.in, profile.csh.in: New files for /etc/profile.d + to define $DEBUGINFOD_URLS. + * elfutils.spec.in: Configure with --enable-debuginfod-urls. + * Makefile.am: Install them. + +2020-09-18 Mark Wielaard <[email protected]> + + * elfutils.spec.in: Add BuildRequires for libzstd-devel and zstd. + * libdw.pc.in: Requires.private libzstd. + +2020-09-08 Mark Wielaard <[email protected]> + + * elfutils.spec.in: Update for 0.181. + +2020-06-16 Mark Wielaard <[email protected]> + + * upload-release.sh: Use /usr/bin/env bash. + 2020-06-11 Mark Wielaard <[email protected]> * elfutils.spec.in: Update for 0.189. diff --git a/config/Makefile.am b/config/Makefile.am index 11f17df0..ef28dab6 100644 --- a/config/Makefile.am +++ b/config/Makefile.am @@ -30,12 +30,19 @@ ## 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 if DEBUGINFOD pkgconfig_DATA += libdebuginfod.pc + +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 + +uninstall-local: + rm -f $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh endif if MAINTAINER_MODE diff --git a/config/debuginfod.service b/config/debuginfod.service index 8fca343f..b64d8cb9 100644 --- a/config/debuginfod.service +++ b/config/debuginfod.service @@ -9,7 +9,8 @@ User=debuginfod Group=debuginfod #CacheDirectory=debuginfod ExecStart=/usr/bin/debuginfod -d /var/cache/debuginfod/debuginfod.sqlite -p $DEBUGINFOD_PORT $DEBUGINFOD_VERBOSE $DEBUGINFOD_PRAGMAS $DEBUGINFOD_PATHS -TimeoutStopSec=10 +# Stopping can take a long time if scanning of large archives is in progress +TimeoutStopSec=60 PrivateTmp=yes [Install] diff --git a/config/elfutils.spec.in b/config/elfutils.spec.in index 7388829c..c01b5f88 100644 --- a/config/elfutils.spec.in +++ b/config/elfutils.spec.in @@ -24,6 +24,7 @@ BuildRequires: flex BuildRequires: zlib-devel BuildRequires: bzip2-devel BuildRequires: xz-devel +BuildRequires: libzstd-devel # For debuginfod BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33 @@ -33,6 +34,7 @@ BuildRequires: pkgconfig(libarchive) >= 3.1.2 # For tests need to bunzip2 test files. BuildRequires: bzip2 +BuildRequires: zstd # For the run-debuginfod-find.sh test case in %check for /usr/sbin/ss BuildRequires: iproute BuildRequires: bsdtar @@ -179,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 @@ -189,6 +191,8 @@ mkdir -p ${RPM_BUILD_ROOT}%{_prefix} %make_install chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/lib*.so* +mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/cache/debuginfod +touch ${RPM_BUILD_ROOT}%{_localstatedir}/cache/debuginfod/debuginfod.sqlite # XXX Nuke unpackaged files ( cd ${RPM_BUILD_ROOT} @@ -294,7 +298,8 @@ fi %{_libdir}/libdebuginfod.so.* %{_bindir}/debuginfod-find %{_mandir}/man1/debuginfod-find.1* - +%config(noreplace) %{_sysconfdir}/profile.d/* + %files debuginfod-client-devel %defattr(-,root,root) %{_libdir}/pkgconfig/libdebuginfod.pc @@ -305,13 +310,13 @@ fi %files debuginfod %defattr(-,root,root) %{_bindir}/debuginfod -%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/debuginfod +%config(noreplace) %{_sysconfdir}/sysconfig/debuginfod %{_unitdir}/debuginfod.service %{_sysconfdir}/sysconfig/debuginfod %{_mandir}/man8/debuginfod.8* %dir %attr(0700,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod -%verify(not md5 size mtime) %attr(0600,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod/debuginfod.sqlite +%ghost %attr(0600,debuginfod,debuginfod) %{_localstatedir}/cache/debuginfod/debuginfod.sqlite %pre debuginfod getent group debuginfod >/dev/null || groupadd -r debuginfod @@ -327,6 +332,28 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Sat Oct 31 2020 Mark Wielaard <[email protected]> 0.182-1 +- backends: Support for tilegx has been removed. +- config: New /etc/profile.d files to provide default $DEBUGINFOD_URLS. +- debuginfod: More efficient package traversal, tolerate various + errors during scanning, grooming progress is more visible and + interruptible, more prometheus metrics. +- debuginfod-client: Now supports compressed (kernel) ELF images. +- libdwfl: Add ZSTD compression support. + +* Tue Sep 8 2020 Mark Wielaard <[email protected]> 0.181-1 +- libelf: elf_update now compensates (fixes up) a bad sh_addralign + for SHF_COMPRESSED sections. +- libdebuginfod: configure now takes --enable-libdebuginfod=dummy or + --disable-libdebuginfod for bootstrapping. + DEBUGINFOD_URLS now accepts "scheme-free" urls + (guessing at what the user meant, either http:// or file://) +- readelf, elflint: Handle aarch64 bti, pac bits in dynamic table and + gnu property notes. +- libdw, readelf: Recognize DW_CFA_AARCH64_negate_ra_state. Allows + unwinding on arm64 for code that is compiled for PAC + (Pointer Authentication Code) as long as it isn't enabled. + * Thu Jun 11 2020 Mark Wielaard <[email protected]> 0.180-1 - elflint: Allow SHF_EXCLUDE as generic section flag when --gnu is given. - libdw, readelf: Handle GCC LTO .gnu.debuglto_ prefix. diff --git a/config/libdw.pc.in b/config/libdw.pc.in index 3fc283db..2e83a432 100644 --- a/config/libdw.pc.in +++ b/config/libdw.pc.in @@ -17,6 +17,6 @@ Requires: libelf = @VERSION@ # We support various compressed ELF images, but don't export any of the # data structures or functions. zlib (gz) is always required, bzip2 (bz2) -# and lzma (xz) are optional. But bzip2 doesn't have a pkg-config file. -Requires.private: zlib @LIBLZMA@ +# lzma (xz) and zstd () are optional. But bzip2 doesn't have a pkg-config file. +Requires.private: zlib @LIBLZMA@ @LIBZSTD@ Libs.private: @BZ2_LIB@ 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 diff --git a/config/upload-release.sh b/config/upload-release.sh index b52642ea..18c91c0e 100755 --- a/config/upload-release.sh +++ b/config/upload-release.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # Must be run in the source directory. # Should have passed make distcheck. |
