me
/
guix
Archived
1
0
Fork 0

gnu: valgrind: Don't depend on GDB.

...but add a special 'valgrind/interactive' variant for end users.

* gnu/packages/valgrind.scm (valgrind)[inputs]: Remove.
[properties]: New field.
(valgrind/interactive): New public variable.
master
Marius Bakke 2020-06-27 12:16:17 +02:00
parent ac069ed9be
commit b611597af8
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 13 additions and 4 deletions

View File

@ -4,6 +4,7 @@
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> ;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2020 Efraim Flashner <efraim@flashner.co.il> ;;; Copyright © 2016, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -70,9 +71,6 @@
(mkdir-p dest) (mkdir-p dest)
(rename-file orig dest) (rename-file orig dest)
#t)))))) #t))))))
(inputs
;; GDB is needed to provide a sane default for `--db-command'.
`(("gdb" ,gdb)))
(native-inputs (native-inputs
`(("perl" ,perl))) `(("perl" ,perl)))
(home-page "https://www.valgrind.org/") (home-page "https://www.valgrind.org/")
@ -82,4 +80,15 @@
tools. There are Valgrind tools that can automatically detect many memory tools. There are Valgrind tools that can automatically detect many memory
management and threading bugs, and profile your programs in detail. You can management and threading bugs, and profile your programs in detail. You can
also use Valgrind to build new tools.") also use Valgrind to build new tools.")
(license gpl2+))) (license gpl2+)
;; Hide this variant so end users get the "interactive" Valgrind below.
(properties '((hidden? . #t)))))
(define-public valgrind/interactive
(package/inherit
valgrind
(inputs
;; GDB is needed to provide a sane default for `--db-command'.
`(("gdb" ,gdb)))
(properties '())))