[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
87/142: gnu: gdb: Normalize indentation.
From: |
guix-commits |
Subject: |
87/142: gnu: gdb: Normalize indentation. |
Date: |
Wed, 20 Oct 2021 14:56:46 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit 0a4d8d175a6f26758b9b7400eca1c8a3b0791d4c
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Oct 14 21:04:42 2021 -0400
gnu: gdb: Normalize indentation.
* gnu/packages/gdb.scm (gdb-10): Fix indentation and remove extraneous
newlines. Remove trailing #t.
(gdb-minimal): Fix indentation.
---
gnu/packages/gdb.scm | 100 ++++++++++++++++++++++++---------------------------
1 file changed, 46 insertions(+), 54 deletions(-)
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index c3cdaf1..4b1d600 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -48,25 +48,22 @@
(name "gdb")
(version "10.2")
(source (origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/gdb/gdb-"
- version ".tar.xz"))
- (sha256
- (base32
- "0aag1c0fw875pvhjg1qp7x8pf6gf92bjv5gcic5716scacyj58da"))
- (patches
- (search-patches "gdb-hurd.patch"))))
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/gdb/gdb-"
+ version ".tar.xz"))
+ (sha256
+ (base32
+ "0aag1c0fw875pvhjg1qp7x8pf6gf92bjv5gcic5716scacyj58da"))
+ (patches
+ (search-patches "gdb-hurd.patch"))))
(build-system gnu-build-system)
(outputs '("out" "debug"))
(arguments
`(#:tests? #f ; FIXME "make check" fails on single-processor systems.
-
#:out-of-source? #t
-
#:modules ((srfi srfi-1)
,@%gnu-build-system-modules)
-
#:phases (modify-phases %standard-phases
(add-after 'unpack 'patch-paths
(lambda* (#:key inputs #:allow-other-keys)
@@ -76,34 +73,30 @@
"gdbsupport/pathstuff.cc")
(("\"/bin/sh\"")
(format #f "~s" sh))))))
- (add-after
- 'configure 'post-configure
- (lambda _
- (for-each patch-makefile-SHELL
- (find-files "." "Makefile\\.in"))
- #t))
- (add-after
- 'install 'remove-libs-already-in-binutils
- (lambda* (#:key native-inputs inputs outputs
- #:allow-other-keys)
- ;; Like Binutils, GDB installs libbfd, libopcodes, etc.
- ;; However, this leads to collisions when both are
- ;; installed, and really is none of its business,
- ;; conceptually. So remove them.
- (let* ((binutils (or (assoc-ref inputs "binutils")
- (assoc-ref native-inputs
"binutils")))
- (out (assoc-ref outputs "out"))
- (files1 (with-directory-excursion binutils
- (append (find-files "lib")
- (find-files "include"))))
- (files2 (with-directory-excursion out
- (append (find-files "lib")
- (find-files "include"))))
- (common (lset-intersection string=?
- files1 files2)))
- (with-directory-excursion out
- (for-each delete-file common)
- #t)))))))
+ (add-after 'configure 'post-configure
+ (lambda _
+ (for-each patch-makefile-SHELL
+ (find-files "." "Makefile\\.in"))))
+ (add-after 'install 'remove-libs-already-in-binutils
+ (lambda* (#:key native-inputs inputs outputs
+ #:allow-other-keys)
+ ;; Like Binutils, GDB installs libbfd, libopcodes, etc.
+ ;; However, this leads to collisions when both are
+ ;; installed, and really is none of its business,
+ ;; conceptually. So remove them.
+ (let* ((binutils (or (assoc-ref inputs "binutils")
+ (assoc-ref native-inputs
"binutils")))
+ (out (assoc-ref outputs "out"))
+ (files1 (with-directory-excursion binutils
+ (append (find-files "lib")
+ (find-files "include"))))
+ (files2 (with-directory-excursion out
+ (append (find-files "lib")
+ (find-files "include"))))
+ (common (lset-intersection string=?
+ files1 files2)))
+ (with-directory-excursion out
+ (for-each delete-file common))))))))
(inputs
`(("bash" ,bash)
("expat" ,expat)
@@ -122,16 +115,16 @@
;; The Hurd needs -lshouldbeinlibc.
,@(if (hurd-target?) `(("hurd" ,hurd)) '())))
(native-inputs
- `(("texinfo" ,texinfo)
- ("dejagnu" ,dejagnu)
- ("pkg-config" ,pkg-config)
- ,@(if (hurd-target?)
- ;; When cross-compiling from x86_64-linux, make sure to use a
- ;; 32-bit MiG because we assume target i586-pc-gnu.
- `(("mig" ,(if (%current-target-system)
- mig/32-bit
- mig)))
- '())))
+ `(("texinfo" ,texinfo)
+ ("dejagnu" ,dejagnu)
+ ("pkg-config" ,pkg-config)
+ ,@(if (hurd-target?)
+ ;; When cross-compiling from x86_64-linux, make sure to use a
+ ;; 32-bit MiG because we assume target i586-pc-gnu.
+ `(("mig" ,(if (%current-target-system)
+ mig/32-bit
+ mig)))
+ '())))
;; TODO: Add support for the GDB_DEBUG_FILE_DIRECTORY environment
;; variable in GDB itself instead of relying on some glue code in
;; the Guix-provided .gdbinit file.
@@ -172,8 +165,7 @@ written in C, C++, Ada, Objective-C, Pascal and more.")
gdb-10)
(define-public gdb-minimal
- (package/inherit
- gdb
- (name "gdb-minimal")
- (inputs (fold alist-delete (package-inputs gdb)
- '("libxml2" "ncurses" "python-wrapper" "source-highlight")))))
+ (package/inherit gdb
+ (name "gdb-minimal")
+ (inputs (fold alist-delete (package-inputs gdb)
+ '("libxml2" "ncurses" "python-wrapper"
"source-highlight")))))
- 50/142: gnu: lib2geom: Update to 1.1., (continued)
- 50/142: gnu: lib2geom: Update to 1.1., guix-commits, 2021/10/20
- 52/142: Revert commits made to resolve a gdk-pixbuf+svg propagation issue., guix-commits, 2021/10/20
- 56/142: gnu: mozjs-78: Update to 78.13.0., guix-commits, 2021/10/20
- 59/142: Revert gstreamer update to 1.19.2., guix-commits, 2021/10/20
- 64/142: gnu: gst-plugins-ugly: Update to 1.18.5., guix-commits, 2021/10/20
- 71/142: gnu: dbus-c++: Fix build., guix-commits, 2021/10/20
- 65/142: gnu: gst-libav: Update to 1.18.5., guix-commits, 2021/10/20
- 74/142: gnu: python-keras: Skip a flaky test., guix-commits, 2021/10/20
- 75/142: gnu: glibc: Remove unneeded nscd patching., guix-commits, 2021/10/20
- 80/142: gnu: diffutils: Update to 3.8., guix-commits, 2021/10/20
- 87/142: gnu: gdb: Normalize indentation.,
guix-commits <=
- 83/142: gnu: gcc-5: Fix powerpc64le-linux build, guix-commits, 2021/10/20
- 103/142: build: glib-or-gtk-build-system: Simplify the wrap-all-programs phase., guix-commits, 2021/10/20
- 97/142: gnu: Add python-flit-core., guix-commits, 2021/10/20
- 84/142: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/10/20
- 99/142: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/10/20
- 03/142: gnu: rust: Update to 1.50., guix-commits, 2021/10/20
- 19/142: gnu: gstreamer: Update to 1.18.4., guix-commits, 2021/10/20
- 32/142: gnu: python-docutils: Update to 0.17.1., guix-commits, 2021/10/20
- 33/142: gnu: bluez: Update to 5.59., guix-commits, 2021/10/20
- 35/142: gnu: gnupg: Update to 2.2.30., guix-commits, 2021/10/20