[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/4] environment: Add '--debug' flag.
From: |
David Craven |
Subject: |
[PATCH 4/4] environment: Add '--debug' flag. |
Date: |
Tue, 19 Jul 2016 18:49:16 +0200 |
* guix/scripts/environment.scm: Add '--debug' flag to add common debugging
packages (file, gdb, strace, valgrind) to environment.
---
guix/scripts/environment.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm
index ebe966f..073dcac 100644
--- a/guix/scripts/environment.scm
+++ b/guix/scripts/environment.scm
@@ -165,6 +165,8 @@ COMMAND or an interactive shell in that environment.\n"))
according to SPEC"))
(display (_ "
--bootstrap use bootstrap binaries to build the environment"))
+ (display (_ "
+ -d --debug add file, gdb, strace and valgrind to the
environment"))
(newline)
(show-build-options-help)
(newline)
@@ -249,6 +251,12 @@ COMMAND or an interactive shell in that environment.\n"))
(option '("bootstrap") #f #f
(lambda (opt name arg result)
(alist-cons 'bootstrap? #t result)))
+ (option '(#\d "debug") #f #f
+ (lambda (opt name arg result)
+ (alist-cons 'package `(ad-hoc-package ,"file")
+ (alist-cons 'package `(ad-hoc-package ,"gdb")
+ (alist-cons 'package `(ad-hoc-package ,"strace")
+ (alist-cons 'package `(ad-hoc-package ,"valgrind")
result))))))
%standard-build-options))
(define (pick-all alist key)
--
2.9.0
- [PATCH 0/4] Dipping my toes into guix source., David Craven, 2016/07/19
- [PATCH 3/4] lint: Add 'inputs-should-be-sorted' check., David Craven, 2016/07/19
- [PATCH 4/4] environment: Add '--debug' flag.,
David Craven <=
- Re: [PATCH 4/4] environment: Add '--debug' flag., Thompson, David, 2016/07/19
- Re: [PATCH 4/4] environment: Add '--debug' flag., Tobias Geerinckx-Rice, 2016/07/19
- Re: [PATCH 4/4] environment: Add '--debug' flag., David Craven, 2016/07/19
- Re: [PATCH 4/4] environment: Add '--debug' flag., David Craven, 2016/07/19
- Re: [PATCH 4/4] environment: Add '--debug' flag., Thompson, David, 2016/07/19
- Re: [PATCH 4/4] environment: Add '--debug' flag., David Craven, 2016/07/19
- Re: [PATCH 4/4] environment: Add '--debug' flag., Leo Famulari, 2016/07/20
- Re: [PATCH 4/4] environment: Add '--debug' flag., Ludovic Courtès, 2016/07/20
- Re: [PATCH 4/4] environment: Add '--debug' flag., David Craven, 2016/07/20
- Re: [PATCH 4/4] environment: Add '--debug' flag., Danny Milosavljevic, 2016/07/19