;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013, 2014, 2022 Ludovic Courtès ;;; Copyright © 2015 Andreas Enge ;;; Copyright © 2015 Mark H Weaver ;;; Copyright © 2016, 2020, 2022 Efraim Flashner ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2020 Marius Bakke ;;; Copyright © 2022 Denis Carikli ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages valgrind) #:use-
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'design/interface_wrapper.v')
0 files changed, 0 insertions, 0 deletions
"valgrind-fix-default-debuginfo-path.patch")))) (inputs ;; GDB is needed to provide a sane default for `--db-command'. (list gdb `(,(canonical-package glibc) "debug"))) (arguments (substitute-keyword-arguments (package-arguments valgrind) ((#:phases phases #~%standard-phases) #~(modify-phases #$phases (add-before 'configure 'patch-default-debuginfo-path (lambda* (#:key inputs #:allow-other-keys) ;; This helps Valgrind find the debug symbols of ld.so. ;; Without it, Valgrind does not work in a Guix shell ;; container and cannot be used as-is during packages tests ;; phases. ;; TODO: Remove on the next rebuild cycle, when libc is not ;; longer fully stripped. (define libc-debug (string-append (ungexp (this-package-input "glibc") "debug") "/lib/debug")) (substitute* '("coregrind/m_debuginfo/readelf.c" "docs/xml/manual-core-adv.xml" "docs/xml/manual-core.xml") (("DEFAULT_DEBUGINFO_PATH") libc-debug)) ;; We also need to account for the bigger path in ;; the malloc-ed variables. (substitute* '("coregrind/m_debuginfo/readelf.c") (("DEBUGPATH_EXTRA_BYTES_1") (number->string (+ (string-length libc-debug) (string-length "/.build-id//.debug") 1)))) (substitute* '("coregrind/m_debuginfo/readelf.c") (("DEBUGPATH_EXTRA_BYTES_2") (number->string (+ (string-length libc-debug) (string-length "/usr/lib/debug") 1)))))))))) (properties '()))) (define-public valgrind-3.20 (package (inherit valgrind/interactive) (version "3.20.0") (source (origin (inherit (package-source valgrind/interactive)) (uri (list (string-append "https://sourceware.org/pub/valgrind" "/valgrind-" version ".tar.bz2") (string-append "ftp://sourceware.org/pub/valgrind" "/valgrind-" version ".tar.bz2"))) (sha256 (base32 "1ipkp6yi202pml2r0qwflysmq86dkqd8iyi1y51d6y70vcqw0dl5")) (patches (search-patches "valgrind-fix-default-debuginfo-path.patch"))))))