Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

65 linhas
2.7 KiB

  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org>
  3. ;;;
  4. ;;; This file is part of GNU Guix.
  5. ;;;
  6. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  7. ;;; under the terms of the GNU General Public License as published by
  8. ;;; the Free Software Foundation; either version 3 of the License, or (at
  9. ;;; your option) any later version.
  10. ;;;
  11. ;;; GNU Guix is distributed in the hope that it will be useful, but
  12. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ;;; GNU General Public License for more details.
  15. ;;;
  16. ;;; You should have received a copy of the GNU General Public License
  17. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  18. (define-module (gnu packages valgrind)
  19. #:use-module (guix packages)
  20. #:use-module (guix download)
  21. #:use-module (guix build-system gnu)
  22. #:use-module (guix licenses)
  23. #:use-module (gnu packages gdb)
  24. #:use-module (gnu packages perl)
  25. #:use-module (gnu packages))
  26. (define-public valgrind
  27. (package
  28. (name "valgrind")
  29. (version "3.8.1")
  30. (source (origin
  31. (method url-fetch)
  32. (uri (string-append "http://valgrind.org/downloads/valgrind-"
  33. version ".tar.bz2"))
  34. (sha256
  35. (base32
  36. "1nsqk70ry3221sd62s4f0njcrncppszs4xxjcak13lxyfq2y0fs7"))
  37. (patches (list (search-patch "valgrind-glibc.patch")))))
  38. (build-system gnu-build-system)
  39. (arguments
  40. '(#:phases (alist-cons-after
  41. 'install 'patch-suppression-files
  42. (lambda* (#:key outputs #:allow-other-keys)
  43. ;; Don't assume the FHS.
  44. (let* ((out (assoc-ref outputs "out"))
  45. (dir (string-append out "/lib/valgrind")))
  46. (substitute* (find-files dir "\\.supp$")
  47. (("obj:/lib") "obj:*/lib")
  48. (("obj:/usr/X11R6/lib") "obj:*/lib")
  49. (("obj:/usr/lib") "obj:*/lib"))
  50. #t))
  51. %standard-phases)))
  52. (inputs `(;; GDB is needed to provide a sane default for `--db-command'.
  53. ("gdb" ,gdb)))
  54. (native-inputs `(("perl" ,perl)))
  55. (home-page "http://www.valgrind.org/")
  56. (synopsis "Debugging and profiling tool suite")
  57. (description
  58. "Valgrind is an instrumentation framework for building dynamic analysis
  59. tools. There are Valgrind tools that can automatically detect many memory
  60. management and threading bugs, and profile your programs in detail. You can
  61. also use Valgrind to build new tools.")
  62. (license gpl2+)))