From: Dmitry V. Levin Date: Sat, 31 Oct 2020 18:55:28 +0000 (+0300) Subject: Do not install profile.d/debuginfod.*sh files unless debuginfod is enabled X-Git-Tag: elfutils-0.182^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b503c358dde835d8a1ae3ebd4968755ff396f814;p=thirdparty%2Felfutils.git Do not install profile.d/debuginfod.*sh files unless debuginfod is enabled Fixes: 94708e964601 ("PR25461: add /etc/profile.d files for default $DEBUGINFOD_URLS") Fixes: fee123fb771f ("PR25461: uninstall /etc/profile.d files for distuninstallcheck") Signed-off-by: Dmitry V. Levin --- diff --git a/config/ChangeLog b/config/ChangeLog index d3ecd6c66..c532f7e68 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2020-10-31 Dmitry V. Levin + + * Makefile.am (install-data-local, uninstall-local): Conditionalize + on DEBUGINFOD. + 2020-10-30 Mark Wielaard * elfutils.spec.in: Update for 0.182. diff --git a/config/Makefile.am b/config/Makefile.am index e56f32a50..ef28dab69 100644 --- a/config/Makefile.am +++ b/config/Makefile.am @@ -36,7 +36,6 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libelf.pc libdw.pc if DEBUGINFOD pkgconfig_DATA += libdebuginfod.pc -endif install-data-local: $(INSTALL_DATA) profile.sh -D $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh @@ -44,6 +43,7 @@ install-data-local: uninstall-local: rm -f $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.sh $(DESTDIR)$(sysconfdir)/profile.d/debuginfod.csh +endif if MAINTAINER_MODE $(srcdir)/elfutils.spec.in: $(top_srcdir)/NEWS