gnu: gdb: Do not install libopcodes and libbfd.

* gnu/packages/gdb.scm (gdb)[arguments]: Add 'post-install' phase.
This commit is contained in:
Ludovic Courtès 2014-11-04 18:12:28 +01:00
parent b77b84717d
commit d611d0833f

View file

@ -51,7 +51,17 @@ (define-public gdb
(lambda _
(for-each patch-makefile-SHELL
(find-files "." "Makefile\\.in")))
%standard-phases)))
(alist-cons-after
'install 'post-install
(lambda* (#:key outputs #:allow-other-keys)
;; Like Binutils, GDB installs libbfd and libopcodes.
;; However, this leads to collisions when both are
;; installed, and really is none of its business,
;; conceptually. So remove them.
(for-each delete-file
(find-files (assoc-ref outputs "out")
"^lib(opcodes|bfd)\\.")))
%standard-phases))))
(inputs
`(("expat" ,expat)
("mpfr" ,mpfr)