gnu: gdb: Use 'modify-phases'.
* gnu/packages/gdb.scm (gdb)[arguments]: Use 'modify-phases'.
This commit is contained in:
parent
c0a1ea2c75
commit
f19b9b96cd
1 changed files with 17 additions and 17 deletions
|
@ -1,5 +1,5 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -47,22 +47,22 @@
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:tests? #f ; FIXME "make check" fails on single-processor systems.
|
'(#:tests? #f ; FIXME "make check" fails on single-processor systems.
|
||||||
#:phases (alist-cons-after
|
#:phases (modify-phases %standard-phases
|
||||||
'configure 'post-configure
|
(add-after
|
||||||
(lambda _
|
'configure 'post-configure
|
||||||
(for-each patch-makefile-SHELL
|
(lambda _
|
||||||
(find-files "." "Makefile\\.in")))
|
(for-each patch-makefile-SHELL
|
||||||
(alist-cons-after
|
(find-files "." "Makefile\\.in"))))
|
||||||
'install 'post-install
|
(add-after
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
'install 'post-install
|
||||||
;; Like Binutils, GDB installs libbfd and libopcodes.
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; However, this leads to collisions when both are
|
;; Like Binutils, GDB installs libbfd and libopcodes.
|
||||||
;; installed, and really is none of its business,
|
;; However, this leads to collisions when both are
|
||||||
;; conceptually. So remove them.
|
;; installed, and really is none of its business,
|
||||||
(for-each delete-file
|
;; conceptually. So remove them.
|
||||||
(find-files (assoc-ref outputs "out")
|
(for-each delete-file
|
||||||
"^lib(opcodes|bfd)\\.")))
|
(find-files (assoc-ref outputs "out")
|
||||||
%standard-phases))))
|
"^lib(opcodes|bfd)\\.")))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("expat" ,expat)
|
`(("expat" ,expat)
|
||||||
("mpfr" ,mpfr)
|
("mpfr" ,mpfr)
|
||||||
|
|
Reference in a new issue