From 4f559f27407b8ece24ad22107f30f99f74c90169 Mon Sep 17 00:00:00 2001 From: Amit Shah Date: Thu, 30 Jun 2022 15:22:45 +0000 Subject: [PATCH] Allow building without default debuginfod_url Building with `--without=with_debuginfod_url` will not configure a debuginfod_url by default. This is useful for downstreams like Amazon Linux that do not (yet) provide a debuginfod server. --- elfutils.spec | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/elfutils.spec b/elfutils.spec index e594809..11e7613 100644 --- a/elfutils.spec +++ b/elfutils.spec @@ -1,6 +1,6 @@ Name: elfutils Version: 0.187 -%global baserelease 6 +%global baserelease 7 Release: %{baserelease}%{?dist} URL: http://elfutils.org/ %global source_url ftp://sourceware.org/pub/elfutils/%{version}/ @@ -68,6 +68,8 @@ BuildRequires: gettext-devel %global with_sysusers 1 %endif +%bcond with_debuginfod_url 1 + # Patches # For s390x... FDO package notes are bogus. @@ -271,7 +273,11 @@ RPM_OPT_FLAGS="${RPM_OPT_FLAGS} -Wformat" trap 'cat config.log' EXIT +%if %{with with_debuginfod_url} %configure CFLAGS="$RPM_OPT_FLAGS" --enable-debuginfod-urls=https://debuginfod.fedoraproject.org/ +%else +%configure CFLAGS="$RPM_OPT_FLAGS" +%endif trap '' EXIT %make_build @@ -395,7 +401,9 @@ fi %{_mandir}/man1/debuginfod-find.1* %{_mandir}/man7/debuginfod*.7* %config(noreplace) %{_sysconfdir}/profile.d/* +%if %{with with_debuginfod_url} %config(noreplace) %{_sysconfdir}/debuginfod/* +%endif %files debuginfod-client-devel %{_libdir}/pkgconfig/libdebuginfod.pc @@ -434,6 +442,9 @@ exit 0 %systemd_postun_with_restart debuginfod.service %changelog +* Wed Jul 27 2022 Amit Shah - 0.187-7 +- Allow building without default debuginfod URL + * Thu Jul 21 2022 Fedora Release Engineering - 0.187-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild