Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.6:Update
systemtap
configure.ac-fix-broken-libdebuginfod-library-a...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File configure.ac-fix-broken-libdebuginfod-library-auto-detection.patch of Package systemtap
From: Victor Kamensky <victor.kamensky7@gmail.com> Date: Sun, 17 Dec 2023 21:01:34 -0800 Subject: configure.ac: fix broken libdebuginfod library auto detection Git-repo: git://sourceware.org/git/systemtap.git Git-commit: 9f097c3f93ce892fc26cdd6c17daa1b10d3047c2 References: bsc#1223327 After 2e67b053e3796ee7cf29a39f9698729b52078406 "configury: rework debuginfod searches" commit, libdebuginfod.so library auto detection is broken. It was reported by Martin Jansa on openembedded-core mailing list [1]. Currently configure.ac does "AC_DEFINE([HAVE_LIBDEBUGINFOD], [1] ..." as long as no --without-debuginfod option is passed, regardless PKG_CHECK_MODULES check result. It seems to be bad copy/paste. Address the issue by moving the AC_DEFINE back to PKG_CHECK_MODULES action-if-found block. To reproduce the issue on FC system, one can do the following "sudo dnf remove elfutils-debuginfod-client-devel" and then try to build SystemTap util.cxx will fail to compile because of missing elfutils/debuginfod.h because config.h will have "#define HAVE_LIBDEBUGINFOD 1", while config.log and configure output indicates that check for libdebuginfod library failed. [1] https://lists.openembedded.org/g/openembedded-core/message/192109?p=%2C%2C%2C20%2C0%2C0%2C0%3A%3Acreated%2C0%2Csystemtap%2C20%2C2%2C0%2C102987514 Signed-off-by: Victor Kamensky <victor.kamensky7@gmail.com> Signed-off-by: <tonyj@suse.de> --- configure | 4 +--- configure.ac | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/configure b/configure index d3beeba56..b11466413 100755 --- a/configure +++ b/configure @@ -11634,12 +11634,10 @@ else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 printf "%s\n" "yes" >&6; } have_debuginfod=1 -fi printf "%s\n" "#define HAVE_LIBDEBUGINFOD 1" >>confdefs.h - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } +fi else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 printf "%s\n" "no" >&6; } diff --git a/configure.ac b/configure.ac index d9559c5c3..18cd7f84a 100644 --- a/configure.ac +++ b/configure.ac @@ -219,12 +219,11 @@ dnl take the user at his or her word elif test "x$with_debuginfod" != xno; then dnl check in the system pkgconfig PKG_CHECK_MODULES([debuginfod], [libdebuginfod >= 0.179], - [have_debuginfod=1], + [have_debuginfod=1 + AC_DEFINE([HAVE_LIBDEBUGINFOD], [1], [Define to 1 if debuginfod is enabled.])], [if test "x$with_debuginfod" = xyes; then AC_MSG_ERROR(["--with-debuginfod was given, but libdebuginfod is missing or unusable."]) fi]) - AC_DEFINE([HAVE_LIBDEBUGINFOD], [1], [Define to 1 if debuginfod is enabled.]) - AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor