Commit | Line | Data |
---|---|---|
e78a0ae5 | 1 | ;;; GNU Guix --- Functional package management for GNU |
5f36ea03 | 2 | ;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org> |
43640a33 | 3 | ;;; Copyright © 2015 Andreas Enge <andreas@enge.fr> |
1d6c8db5 | 4 | ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> |
5fd84e28 | 5 | ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il> |
e78a0ae5 LC |
6 | ;;; |
7 | ;;; This file is part of GNU Guix. | |
8 | ;;; | |
9 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
10 | ;;; under the terms of the GNU General Public License as published by | |
11 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
12 | ;;; your option) any later version. | |
13 | ;;; | |
14 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
15 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | ;;; GNU General Public License for more details. | |
18 | ;;; | |
19 | ;;; You should have received a copy of the GNU General Public License | |
20 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
21 | ||
22 | (define-module (gnu packages valgrind) | |
23 | #:use-module (guix packages) | |
24 | #:use-module (guix download) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (guix licenses) | |
27 | #:use-module (gnu packages gdb) | |
28 | #:use-module (gnu packages perl) | |
29 | #:use-module (gnu packages)) | |
30 | ||
31 | (define-public valgrind | |
32 | (package | |
33 | (name "valgrind") | |
e68168eb | 34 | (version "3.12.0") |
e78a0ae5 LC |
35 | (source (origin |
36 | (method url-fetch) | |
37 | (uri (string-append "http://valgrind.org/downloads/valgrind-" | |
38 | version ".tar.bz2")) | |
39 | (sha256 | |
40 | (base32 | |
e68168eb | 41 | "18bnrw9b1d55wi1wnl68n25achsp9w48n51n1xw4fwjjnaal7jk7")) |
fc1adab1 | 42 | (patches (search-patches "valgrind-enable-arm.patch")))) |
e78a0ae5 LC |
43 | (build-system gnu-build-system) |
44 | (arguments | |
5fd84e28 EF |
45 | '(#:phases |
46 | (modify-phases %standard-phases | |
47 | (add-after 'install 'patch-suppression-files | |
48 | (lambda* (#:key outputs #:allow-other-keys) | |
49 | ;; Don't assume the FHS. | |
50 | (let* ((out (assoc-ref outputs "out")) | |
51 | (dir (string-append out "/lib/valgrind"))) | |
52 | (substitute* (find-files dir "\\.supp$") | |
53 | (("obj:/lib") "obj:*/lib") | |
54 | (("obj:/usr/X11R6/lib") "obj:*/lib") | |
55 | (("obj:/usr/lib") "obj:*/lib")) | |
56 | #t)))))) | |
e78a0ae5 | 57 | (inputs `(;; GDB is needed to provide a sane default for `--db-command'. |
01eafd38 | 58 | ("gdb" ,gdb))) |
e78a0ae5 LC |
59 | (native-inputs `(("perl" ,perl))) |
60 | (home-page "http://www.valgrind.org/") | |
61 | (synopsis "Debugging and profiling tool suite") | |
62 | (description | |
63 | "Valgrind is an instrumentation framework for building dynamic analysis | |
64 | tools. There are Valgrind tools that can automatically detect many memory | |
35b9e423 | 65 | management and threading bugs, and profile your programs in detail. You can |
e78a0ae5 | 66 | also use Valgrind to build new tools.") |
67a86d3b LC |
67 | (license gpl2+) |
68 | ||
69 | ;; Building VEX on mips64el-linux fails with "opcode not supported on this | |
70 | ;; processor: mips3". | |
71 | (supported-systems (delete "mips64el-linux" %supported-systems)))) |