[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
87/217: gnu: gdb: Normalize indentation.
From: |
guix-commits |
Subject: |
87/217: gnu: gdb: Normalize indentation. |
Date: |
Sun, 14 Nov 2021 19:20:48 -0500 (EST) |
vagrantc pushed a commit to branch core-updates-frozen-batched-changes
in repository guix.
commit e1f2f1286d6189c1b2c83dd9a4cc94ba425427a9
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 0645729..5bdad02 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -49,25 +49,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)
@@ -77,34 +74,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)
@@ -123,16 +116,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.
@@ -187,8 +180,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")))))
- 82/217: gnu: curl: Honor #:tests?., (continued)
- 82/217: gnu: curl: Honor #:tests?., guix-commits, 2021/11/14
- 164/217: gnu: gdb: Update to 11.1 and remove gdb-9.2., guix-commits, 2021/11/14
- 162/217: gnu: zxing-cpp: Update to 1.2.0-0.00783db., guix-commits, 2021/11/14
- 160/217: gnu: mesa: Replace obsolete vulkan-overlay-layer build option., guix-commits, 2021/11/14
- 166/217: gnu: python2-lit: Remove package., guix-commits, 2021/11/14
- 172/217: gnu: dconf: Update to 0.40.0., guix-commits, 2021/11/14
- 179/217: gnu: Add polkit-duktape., guix-commits, 2021/11/14
- 190/217: gnu: python-requests: Update to 2.26.0., guix-commits, 2021/11/14
- 89/217: aux-files: sitecustomize: Cleanup and add explanatory comments., guix-commits, 2021/11/14
- 88/217: guix: packages: Fix repacking of plain tarballs., guix-commits, 2021/11/14
- 87/217: gnu: gdb: Normalize indentation.,
guix-commits <=
- 100/217: gnu: python-pytest-6: Fix version via setuptools-scm., guix-commits, 2021/11/14
- 106/217: gnu: at-spi2-atk: Break a dependency cycle between GTK+ and Inkscape., guix-commits, 2021/11/14
- 112/217: gnu: libcloudproviders-minimal: Introduce minimal variant., guix-commits, 2021/11/14
- 120/217: gnu: mit-krb5: Absorb 1.19.2 graft., guix-commits, 2021/11/14
- 138/217: profiles: Add a gdk-pixbuf-loaders-cache-file hook., guix-commits, 2021/11/14
- 143/217: gnu: elogind: Update to 246.10., guix-commits, 2021/11/14
- 152/217: gnu: python-dbus: Update to 1.2.18., guix-commits, 2021/11/14
- 167/217: gnu: python-lit: Update to 12.0.1., guix-commits, 2021/11/14
- 169/217: gnu: Add meson-0.59., guix-commits, 2021/11/14
- 171/217: gnu: gtkmm: Update to 4.4.0., guix-commits, 2021/11/14