[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/03: gnu: gdb: Apply cross-build fix without changing the native varia
From: |
guix-commits |
Subject: |
01/03: gnu: gdb: Apply cross-build fix without changing the native variant. |
Date: |
Sat, 27 Jun 2020 04:05:23 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 361541d4a51b343694f9f14f150d3c6612490687
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sat Jun 27 10:01:09 2020 +0200
gnu: gdb: Apply cross-build fix without changing the native variant.
Commit 76129cd3edb1eb62778344de0b1b44365f82ee06 accidentally changed the gdb
derivation, causing too many rebuilds for the 'master' branch.
* gnu/packages/gdb.scm (gdb-9.1)[arguments]: Only apply cross-build fix when
cross-compiling.
---
gnu/packages/gdb.scm | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index 3a3792e..5c8ea0c 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -70,14 +70,20 @@
#t))
(add-after
'install 'remove-libs-already-in-binutils
- (lambda* (#:key inputs native-inputs outputs
+ (lambda* (#:key inputs outputs
+ ;; TODO: Inline the native-inputs addition and
+ ;; below usage in the next rebuild cycle.
+ ,@(if (%current-target-system)
+ '(native-inputs)
+ '())
#: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")))
+ (let* ((binutils ,@(if (%current-target-system)
+ '((assoc-ref native-inputs
"binutils"))
+ '((assoc-ref inputs "binutils"))))
(out (assoc-ref outputs "out"))
(files1 (with-directory-excursion binutils
(append (find-files "lib")