[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/07: gnu: gdb: Distinguish between the "pinned" and the "default" vers
From: |
guix-commits |
Subject: |
06/07: gnu: gdb: Distinguish between the "pinned" and the "default" version. |
Date: |
Tue, 18 Apr 2023 11:53:07 -0400 (EDT) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 6b5c21e043c632e6287a2af7f336036571538da2
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Tue Apr 18 16:08:31 2023 +0200
gnu: gdb: Distinguish between the "pinned" and the "default" version.
* gnu/packages/gdb.scm (gdb/pinned): New variable.
* gnu/packages/rust.scm (rust)[native-inputs]: Use it instead of GDB.
---
gnu/packages/gdb.scm | 6 +++++-
gnu/packages/rust.scm | 2 +-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm
index b9fbf1480a..e2c4941e4e 100644
--- a/gnu/packages/gdb.scm
+++ b/gnu/packages/gdb.scm
@@ -161,11 +161,15 @@ written in C, C++, Ada, Objective-C, Pascal and more.")
;; GDB 12 builds fine on GNU/Hurd.
(supported-systems %supported-systems)))
-(define-public gdb
+(define-public gdb/pinned
;; This is the fixed version that packages depend on. Update it rarely
;; enough to avoid massive rebuilds.
gdb-11)
+(define-public gdb
+ ;; The "default" version.
+ gdb-11)
+
(define-public gdb-minimal
(package/inherit gdb-12
(name "gdb-minimal")
diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 4d7790cfc6..d07f4ef10c 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -788,7 +788,7 @@ safety and thread safety guarantees.")
(format #f "prefix = ~s" (assoc-ref outputs "rustfmt"))))
(invoke "./x.py" "install" "rustfmt")))))))
;; Add test inputs.
- (native-inputs (cons* `("gdb" ,gdb)
+ (native-inputs (cons* `("gdb" ,gdb/pinned)
`("procps" ,procps)
(package-native-inputs base-rust))))))
- branch core-updates updated (39ec7b86c0 -> dd9b1a1c25), guix-commits, 2023/04/18
- 07/07: gnu: gdb: Change default to 12.x., guix-commits, 2023/04/18
- 02/07: gnu: gdb: Use 'cross-mig' when targeting GNU/Hurd., guix-commits, 2023/04/18
- 04/07: gnu: gdb: Remove Hurd patch., guix-commits, 2023/04/18
- 05/07: ci: Add 'gdb-minimal' to the "core" package set., guix-commits, 2023/04/18
- 01/07: gnu: gcc-7, gcc-10, gcc-11: Hide packages., guix-commits, 2023/04/18
- 03/07: gnu: gdb-minimal: Update to 12.x., guix-commits, 2023/04/18
- 06/07: gnu: gdb: Distinguish between the "pinned" and the "default" version.,
guix-commits <=