[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
86/149: gnu: gdb: Patch references to /bin/sh and add debug output.
From: |
guix-commits |
Subject: |
86/149: gnu: gdb: Patch references to /bin/sh and add debug output. |
Date: |
Tue, 26 Oct 2021 23:52:26 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit a957e273f71738a39ee36aa78b391ab8e381fddc
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Tue Sep 14 16:09:47 2021 -0400
gnu: gdb: Patch references to /bin/sh and add debug output.
* gnu/packages/gdb.scm (gdb-10)[outputs]: Add a debug output.
[phases]{patch-paths}: New phase.
[inputs]: Add bash.
---
gnu/packages/gdb.scm | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index e51e17d..c3cdaf1 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -24,6 +24,7 @@
(define-module (gnu packages gdb)
#:use-module (gnu packages)
+ #:use-module (gnu packages bash)
#:use-module (gnu packages hurd)
#:use-module (gnu packages ncurses)
#:use-module (gnu packages readline)
@@ -57,6 +58,7 @@
(search-patches "gdb-hurd.patch"))))
(build-system gnu-build-system)
+ (outputs '("out" "debug"))
(arguments
`(#:tests? #f ; FIXME "make check" fails on single-processor systems.
@@ -66,6 +68,14 @@
,@%gnu-build-system-modules)
#:phases (modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((sh (string-append (assoc-ref inputs "bash")
+ "/bin/sh")))
+ (substitute* '("gdb/ser-pipe.c"
+ "gdbsupport/pathstuff.cc")
+ (("\"/bin/sh\"")
+ (format #f "~s" sh))))))
(add-after
'configure 'post-configure
(lambda _
@@ -95,7 +105,8 @@
(for-each delete-file common)
#t)))))))
(inputs
- `(("expat" ,expat)
+ `(("bash" ,bash)
+ ("expat" ,expat)
("mpfr" ,mpfr)
("gmp" ,gmp)
("readline" ,readline)
- 57/149: gnu: Add a missing copyright., (continued)
- 57/149: gnu: Add a missing copyright., guix-commits, 2021/10/26
- 62/149: gnu: gst-plugins-good: Update to 1.18.5., guix-commits, 2021/10/26
- 66/149: gnu: gst-editing-services: Update to 1.18.5., guix-commits, 2021/10/26
- 63/149: gnu: gst-plugins-bad: Update to 1.18.5., guix-commits, 2021/10/26
- 75/149: gnu: glibc: Remove unneeded nscd patching., guix-commits, 2021/10/26
- 72/149: gnu: libnice: Update to 0.1.18-0.47a9633., guix-commits, 2021/10/26
- 68/149: gnu: gstreamer-docs: Update to 1.18.5., guix-commits, 2021/10/26
- 77/149: gnu: tzdata: Update to 2021c., guix-commits, 2021/10/26
- 80/149: gnu: diffutils: Update to 3.8., guix-commits, 2021/10/26
- 85/149: gnu: Add ld-gold-wrapper., guix-commits, 2021/10/26
- 86/149: gnu: gdb: Patch references to /bin/sh and add debug output.,
guix-commits <=
- 89/149: aux-files: sitecustomize: Cleanup and add explanatory comments., guix-commits, 2021/10/26
- 90/149: gnu: glade3: Remove sitecustomize.py workaround., guix-commits, 2021/10/26
- 94/149: gnu: fontconfig: Add a search path for XDG_DATA_DIRS., guix-commits, 2021/10/26
- 98/149: gnu: Add python-tomli., guix-commits, 2021/10/26
- 99/149: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/10/26
- 102/149: gnu: meson: Patch to allow installing to independent prefixes., guix-commits, 2021/10/26
- 104/149: build: glib-or-gtk-build-system: Fix indentation., guix-commits, 2021/10/26
- 105/149: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/10/26
- 107/149: gnu: lsof: Disable the LTlock test., guix-commits, 2021/10/26
- 109/149: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/10/26