Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-22 08:05:47

0001 # Copyright Spack Project Developers. See COPYRIGHT file for details.
0002 #
0003 # SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 
0005 from spack_repo.builtin.packages.elfutils.package import Elfutils as BuiltinElfutils
0006 
0007 from spack.package import *
0008 
0009 
0010 class Elfutils(BuiltinElfutils):
0011     __doc__ = BuiltinElfutils.__doc__
0012 
0013     # Allow debuginfod_find_source() to accept "./"-relative filenames, as
0014     # produced when Spack's compiler-wrapper -ffile-prefix-map targets a
0015     # relative ./build root rather than an absolute one. Upstream requires
0016     # filename[0] == '/'; without this, gdb's debuginfod client rejects
0017     # any "./"-prefixed DW_AT_name with EINVAL before contacting the
0018     # server at all. See debuginfod/debuginfod-client.c,
0019     # debuginfod_query_server_by_buildid().
0020     patch("elfutils-debuginfod-relative-source.patch", when="@0.181:+debuginfod")