[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: gnu: valgrind: Don't depend on GDB.
From: |
guix-commits |
Subject: |
03/06: gnu: valgrind: Don't depend on GDB. |
Date: |
Sat, 27 Jun 2020 06:56:00 -0400 (EDT) |
mbakke pushed a commit to branch staging
in repository guix.
commit b611597af8641b388dc9f8935b85895a71e9fb52
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jun 27 12:16:17 2020 +0200
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.
---
gnu/packages/valgrind.scm | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/valgrind.scm b/gnu/packages/valgrind.scm
index 75e8529..c0ea891 100644
--- a/gnu/packages/valgrind.scm
+++ b/gnu/packages/valgrind.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2016, 2020 Efraim Flashner <efraim@flashner.co.il>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
+;;; Copyright © 2020 Marius Bakke <marius@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -70,9 +71,6 @@
(mkdir-p dest)
(rename-file orig dest)
#t))))))
- (inputs
- ;; GDB is needed to provide a sane default for `--db-command'.
- `(("gdb" ,gdb)))
(native-inputs
`(("perl" ,perl)))
(home-page "https://www.valgrind.org/")
@@ -82,4 +80,15 @@
tools. There are Valgrind tools that can automatically detect many memory
management and threading bugs, and profile your programs in detail. You can
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 '())))
- branch staging updated (a62df7c -> 25ceae9), guix-commits, 2020/06/27
- 03/06: gnu: valgrind: Don't depend on GDB.,
guix-commits <=
- 01/06: Merge branch 'master' into staging, guix-commits, 2020/06/27
- 02/06: gnu: libevdev: Remove obsolete workaround., guix-commits, 2020/06/27
- 05/06: gnu: gdb@8.2: Inherit from 'gdb-minimal'., guix-commits, 2020/06/27
- 04/06: gnu: Rust: Use 'gdb-minimal' for tests., guix-commits, 2020/06/27
- 06/06: gnu: valgrind: Update to 3.16.1., guix-commits, 2020/06/27