[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
86/203: gnu: gdb: Patch references to /bin/sh and add debug output.
From: |
guix-commits |
Subject: |
86/203: gnu: gdb: Patch references to /bin/sh and add debug output. |
Date: |
Wed, 3 Nov 2021 21:10:07 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 73096eadadc3d27bd3970c0ad390895537cd7952
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.
(gdb-9.2)[phases]{patch-paths}: Override phase.
---
gnu/packages/gdb.scm | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index e51e17d..0645729 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)
@@ -35,9 +36,10 @@
#:use-module (gnu packages pretty-print)
#:use-module (gnu packages python)
#:use-module (gnu packages pkg-config)
+ #:use-module (guix download)
#:use-module ((guix licenses) #:select (gpl3+))
#:use-module (guix packages)
- #:use-module (guix download)
+ #:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module ((guix build utils) #:select (alist-replace))
#:use-module (srfi srfi-1))
@@ -57,6 +59,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 +69,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 +106,8 @@
(for-each delete-file common)
#t)))))))
(inputs
- `(("expat" ,expat)
+ `(("bash" ,bash)
+ ("expat" ,expat)
("mpfr" ,mpfr)
("gmp" ,gmp)
("readline" ,readline)
@@ -151,6 +163,20 @@ written in C, C++, Ada, Objective-C, Pascal and more.")
(sha256
(base32
"0mf5fn8v937qwnal4ykn3ji1y2sxk0fa1yfqi679hxmpg6pdf31n"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments gdb-11)
+ ((#:phases phases)
+ ;; Override the patch-paths phase as the pathstuff.c file was later
+ ;; renamed.
+ `(modify-phases ,phases
+ (replace 'patch-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((sh (string-append (assoc-ref inputs "bash")
+ "/bin/sh")))
+ (substitute* '("gdb/gdbsupport/pathstuff.c"
+ "gdb/ser-pipe.c")
+ (("\"/bin/sh\"")
+ (format #f "~s" sh))))))))))
(inputs
(alist-replace "guile" (list guile-2.0)
(package-inputs gdb-10)))))
- 57/203: gnu: Add a missing copyright., (continued)
- 57/203: gnu: Add a missing copyright., guix-commits, 2021/11/03
- 69/203: gnu: tensorflow: Enable parallel build (at least partially)., guix-commits, 2021/11/03
- 61/203: gnu: gst-plugins-base: Update to 1.18.5., guix-commits, 2021/11/03
- 64/203: gnu: gst-plugins-ugly: Update to 1.18.5., guix-commits, 2021/11/03
- 68/203: gnu: gstreamer-docs: Update to 1.18.5., guix-commits, 2021/11/03
- 73/203: bluez: Update to 5.61., guix-commits, 2021/11/03
- 75/203: gnu: glibc: Remove unneeded nscd patching., guix-commits, 2021/11/03
- 80/203: gnu: diffutils: Update to 3.8., guix-commits, 2021/11/03
- 76/203: gnu: glibc: Look for the current timezone in /etc/localtime., guix-commits, 2021/11/03
- 84/203: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/11/03
- 86/203: gnu: gdb: Patch references to /bin/sh and add debug output.,
guix-commits <=
- 87/203: gnu: gdb: Normalize indentation., guix-commits, 2021/11/03
- 81/203: build: qt-utils: Don't wrap .X-real files., guix-commits, 2021/11/03
- 91/203: gnu: rust: Bootstrap rust from 1.39.0 and optimize build time., guix-commits, 2021/11/03
- 103/203: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase., guix-commits, 2021/11/03
- 111/203: gnu: colord-minimal: Introduce minimal variant., guix-commits, 2021/11/03
- 97/203: gnu: Add python-flit-core., guix-commits, 2021/11/03
- 110/203: gnu: Add docbook-xsl-ns., guix-commits, 2021/11/03
- 105/203: gnu: at-spi2-core: Reverse inheritance relationship with minimal variant., guix-commits, 2021/11/03
- 113/203: gnu: gusb-minimal: Introduce minimal variant., guix-commits, 2021/11/03
- 109/203: gnu: json-glib-minimal: Introduce minimal variant., guix-commits, 2021/11/03