[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
88/115: gnu: gdb: Normalize indentation.
From: |
guix-commits |
Subject: |
88/115: gnu: gdb: Normalize indentation. |
Date: |
Fri, 15 Oct 2021 09:49:15 -0400 (EDT) |
apteryx pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit dc81bb9b67b5ac40be6472a7ba729303af28de27
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")))))
- 77/115: gnu: tzdata: Update to 2021c., (continued)
- 77/115: gnu: tzdata: Update to 2021c., guix-commits, 2021/10/15
- 83/115: gnu: curl: Honor #:tests?., guix-commits, 2021/10/15
- 75/115: gnu: glibc: Remove unneeded nscd patching., guix-commits, 2021/10/15
- 78/115: gnu: gtk+-2: Fix ‘builder’ test., guix-commits, 2021/10/15
- 79/115: gnu: diffutils: Fix signal processing., guix-commits, 2021/10/15
- 80/115: gnu: diffutils: Update to 3.8., guix-commits, 2021/10/15
- 84/115: gnu: gcc-5: Fix powerpc64le-linux build, guix-commits, 2021/10/15
- 81/115: gnu: glib: Skip ‘testfilemonitor’ test., guix-commits, 2021/10/15
- 86/115: gnu: Add ld-gold-wrapper., guix-commits, 2021/10/15
- 87/115: gnu: gdb: Patch references to /bin/sh and add debug output., guix-commits, 2021/10/15
- 88/115: gnu: gdb: Normalize indentation.,
guix-commits <=
- 92/115: gnu: rust: Bootstrap rust from 1.39.0 and optimize build time., guix-commits, 2021/10/15
- 72/115: gnu: libnice: Update to 0.1.18-0.47a9633., guix-commits, 2021/10/15
- 85/115: gnu: make-ld-wrapper: Add a LINKER argument., guix-commits, 2021/10/15
- 102/115: gnu: python-pathlib2: Update to 2.3.6., guix-commits, 2021/10/15
- 108/115: gnu: inkscape: Remove the legacy 0.92 version., guix-commits, 2021/10/15
- 100/115: gnu: python-setuptools-scm: Update to 6.3.2, guix-commits, 2021/10/15
- 101/115: gnu: python-pytest-6: Fix version via setuptools-scm., guix-commits, 2021/10/15
- 105/115: build: glib-or-gtk-build-system: Fix indentation., guix-commits, 2021/10/15
- 107/115: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/10/15
- 109/115: gnu: mesa: Update to 21.2.4., guix-commits, 2021/10/15