From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vmicros1.altlinux.org (vmicros1.altlinux.org [194.107.17.57]) by sourceware.org (Postfix) with ESMTP id AD5C0386F461 for ; Mon, 2 Nov 2020 18:10:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org AD5C0386F461 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=altlinux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=ldv@altlinux.org Received: from mua.local.altlinux.org (mua.local.altlinux.org [192.168.1.14]) by vmicros1.altlinux.org (Postfix) with ESMTP id B999A72C8B0 for ; Mon, 2 Nov 2020 21:10:03 +0300 (MSK) Received: by mua.local.altlinux.org (Postfix, from userid 508) id A748E7CC819; Mon, 2 Nov 2020 21:10:03 +0300 (MSK) Date: Mon, 2 Nov 2020 08:00:00 +0000 From: "Dmitry V. Levin" To: elfutils-devel@sourceware.org Cc: Vitaly Chikunov Subject: [PATCH] config: Conditionalize on LIBDEBUGINFOD instead of DEBUGINFOD Message-ID: <20201102080000.GA22615@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-10.1 required=5.0 tests=BAYES_00, DATE_IN_PAST_06_12, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2020 18:10:06 -0000 When elfutils is configured using --enable-libdebuginfod --disable-debuginfod, that is, when the library is built and installed but the server is not, it makes sense to install libdebuginfod.pc because the latter complements the library rather than the server. Likewise, it makes sense to install profile.d/debuginfod.*sh files along with libdebuginfod because the library can use DEBUGINFOD_URLS environment variable as well as the server. This change does not affect --enable-debuginfod mode as the latter requires --enable-libdebuginfod. Fixes: fed3c3ceeaa6 ("Do not install libdebuginfod.pc unless debuginfod is enabled") Fixes: b503c358dde8 ("Do not install profile.d/debuginfod.*sh files unless debuginfod is enabled") Signed-off-by: Dmitry V. Levin --- config/ChangeLog | 5 +++++ config/Makefile.am | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/ChangeLog b/config/ChangeLog index c532f7e6..e69e7e21 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,8 @@ +2020-11-02 Dmitry V. Levin + + * Makefile.am (pkgconfig_DATA, install-data-local, uninstall-local): + Conditionalize on LIBDEBUGINFOD instead of DEBUGINFOD. + 2020-10-31 Dmitry V. Levin * Makefile.am (install-data-local, uninstall-local): Conditionalize diff --git a/config/Makefile.am b/config/Makefile.am index ef28dab6..a66f5490 100644 --- a/config/Makefile.am +++ b/config/Makefile.am @@ -34,7 +34,7 @@ EXTRA_DIST = elfutils.spec.in known-dwarf.awk 10-default-yama-scope.conf \ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libelf.pc libdw.pc -if DEBUGINFOD +if LIBDEBUGINFOD pkgconfig_DATA += libdebuginfod.pc install-data-local: -- ldv