From 6481dbda5100e9b0ff9c5221280d2c0cadd663b7 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Wed, 9 Feb 2022 21:11:09 +0000 Subject: gnu: c-vise: Fix linkage. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/debug.scm (c-vise)[arguments][#:phases]: Fix linkage to clang and llvm shared libraries. Signed-off-by: Ludovic Courtès --- gnu/packages/debug.scm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gnu/packages/debug.scm') diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 94312e7c059..24d17d95b02 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -199,6 +199,11 @@ tools that process C/C++ code.") (arguments `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'fix-linkage + (lambda _ + (substitute* "clang_delta/CMakeLists.txt" + (("\\$\\{LLVM_LINK_LLVM_DYLIB\\}") "True") + ((" LLVM") " LLVMSupport")))) (add-before 'build 'hardcode-paths (lambda _ (substitute* "cvise.py" -- cgit v1.3 From df1959277c714e42a0bf286d51df0a084a6420e9 Mon Sep 17 00:00:00 2001 From: Chadwain Holness Date: Sun, 6 Mar 2022 01:24:36 -0500 Subject: gnu: cgdb: Reference gdb. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- gnu/packages/debug.scm | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'gnu/packages/debug.scm') diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 24d17d95b02..80685900ebb 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 -- cgit v1.3