From 722bbc11f1b62a7e377c63b5007c3336e6b42b60 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Tue, 15 Jul 2025 20:05:16 +0200 Subject: [PATCH] gnu: gdb: Swap inheritance between gdb@12 and gdb@14. This does not change the derivations, but will make it easier to drop the older version. * gnu/packages/gdb.scm (gdb/pinned): Inherit from... (gdb-14): ...this instead of vice versa. Change-Id: I3e55e92edeba5710ba45e1d846eab6860e8c9436 --- gnu/packages/gdb.scm | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/gnu/packages/gdb.scm b/gnu/packages/gdb.scm index e09acd39145106586b7f4221673c6c32be3e5979..2966b8f87e3fce75ff48ddf4a2bce572a0c5b1ad 100644 --- a/gnu/packages/gdb.scm +++ b/gnu/packages/gdb.scm @@ -47,19 +47,17 @@ #:use-module ((guix build utils) #:select (alist-replace)) #:use-module (srfi srfi-1)) -(define-public gdb/pinned - ;; This is the fixed version that packages depend on. Update it rarely - ;; enough to avoid massive rebuilds. +(define-public gdb-14 (package (name "gdb") - (version "12.1") + (version "14.2") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/gdb/gdb-" version ".tar.xz")) (sha256 (base32 - "1vczsqcbh5y0gx7qrclpna0qzx26sk7lra6y8qzxam1biyzr65qf")))) + "0wkprsjyyh204fdjlkaz20k847l88i9y8m9zqsv15vcd3l3dhk9d")))) (build-system gnu-build-system) (outputs '("out" "debug")) (arguments @@ -148,21 +146,22 @@ doing while it runs or what it was doing just before a crash. It allows you to specify the runtime conditions, to define breakpoints, and to change how the program is running to try to fix bugs. It can be used to debug programs written in C, C++, Ada, Objective-C, Pascal and more.") - (properties `((hidden? . #t))) (license gpl3+))) -(define-public gdb-14 +(define-public gdb/pinned + ;; This is the fixed version that packages depend on. Update it rarely + ;; enough to avoid massive rebuilds. (package - (inherit gdb/pinned) - (version "14.2") + (inherit gdb-14) + (version "12.1") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/gdb/gdb-" version ".tar.xz")) (sha256 (base32 - "0wkprsjyyh204fdjlkaz20k847l88i9y8m9zqsv15vcd3l3dhk9d")))) - (properties '()))) + "1vczsqcbh5y0gx7qrclpna0qzx26sk7lra6y8qzxam1biyzr65qf")))) + (properties `((hidden? . #t))))) (define-public gdb-15 (package