From d611d0833fd36a03c8f69e9893f30a066104bb8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 4 Nov 2014 18:12:28 +0100 Subject: [PATCH] gnu: gdb: Do not install libopcodes and libbfd. * gnu/packages/gdb.scm (gdb)[arguments]: Add 'post-install' phase. --- gnu/packages/gdb.scm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm index aea1a9730d..8826eb44ee 100644 --- a/gnu/packages/gdb.scm +++ b/gnu/packages/gdb.scm @@ -51,7 +51,17 @@ (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)