[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/10: gnu: cgdb: Reference gdb.
From: |
guix-commits |
Subject: |
06/10: gnu: cgdb: Reference gdb. |
Date: |
Sun, 6 Mar 2022 16:51:08 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit df1959277c714e42a0bf286d51df0a084a6420e9
Author: Chadwain Holness <chadwainholness@gmail.com>
AuthorDate: Sun Mar 6 01:24:36 2022 -0500
gnu: cgdb: Reference gdb.
* gnu/packages/debug.scm (cgdb)[inputs]: Add gdb, bash-minimal
[arguments]: Add phase to fix hardcoded gdb and sh paths
Add configure flags for cross-compilation
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/debug.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm
index 24d17d95b0..80685900eb 100644
--- a/gnu/packages/debug.scm
+++ b/gnu/packages/debug.scm
@@ -760,9 +760,25 @@ use than similar tools like @command{mtrace}.")
(base32 "1w8ib2vg3pg68d9hh97fw5042c73i9nqavdddc87n9bpscjbaf0d"))))
(build-system gnu-build-system)
(inputs
- (list ncurses readline))
+ (list bash-minimal ncurses readline gdb))
(native-inputs
(list flex texinfo))
+ (arguments
+ `(#:configure-flags
+ (list
+ (string-append "ac_cv_rl_version=" ,(package-version readline))
+ "ac_cv_file__dev_ptmx=no"
+ "ac_cv_file__proc_self_status=no"
+ "ac_cv_func_setpgrp_void=no")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((gdb (search-input-file inputs "bin/gdb"))
+ (sh (search-input-file inputs "bin/sh")))
+ (substitute* "lib/util/fork_util.cpp"
+ (("GDB = \"gdb\"") (string-append "GDB = \"" gdb "\"")))
+ (substitute* "cgdb/cgdb.cpp" (("/bin/sh") sh))))))))
(home-page "https://cgdb.github.io")
(synopsis "Console front-end to the GNU debugger")
(description
- branch master updated (f75becbb36 -> afb9f27523), guix-commits, 2022/03/06
- 02/10: http-client: Add response headers to '&http-get-error'., guix-commits, 2022/03/06
- 03/10: import: github: Gracefully handle rate limit exhaustion., guix-commits, 2022/03/06
- 05/10: import: github: Reuse HTTP connection for the /tags URL fallback., guix-commits, 2022/03/06
- 06/10: gnu: cgdb: Reference gdb.,
guix-commits <=
- 09/10: gnu: Add jtdx., guix-commits, 2022/03/06
- 01/10: tests: Add (guix http-client) tests., guix-commits, 2022/03/06
- 07/10: gnu: gnome-shell-extension-gsconnect: Update to 48, guix-commits, 2022/03/06
- 10/10: gnu: Add python-xmldiff., guix-commits, 2022/03/06
- 04/10: http-client: Correctly handle redirects when #:keep-alive? #t., guix-commits, 2022/03/06
- 08/10: gnu: Add python-stltools., guix-commits, 2022/03/06