Subject: bug#77964: [PATCH sysadmin-team 1/2] gnu: spdlog: Pin version

From: Greg Hogan <[email-masked]>
Date: Wed, 23 Apr 2025 14:39:56 +0000

* gnu/packages/logging.scm (spdlog): Rename to ...
(spdlog-1.15): ... this.
(spdlog-1.13, spdlog-1.10): Inherit from spdlog-1.15.
(spdlog): Pin to spdlog-1.15.

Change-Id: I7b907cf2bbfa079bec28d4264a1dfc7f58037cd6
---
 gnu/packages/logging.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/logging.scm b/gnu/packages/logging.scm
index b5431566fe..a764fee5be 100644
--- a/gnu/packages/logging.scm
+++ b/gnu/packages/logging.scm
@@ -236,7 +236,7 @@ (define-public multitail
 output in multiple windows in a terminal.")
     (license license:gpl2+)))
 
-(define-public spdlog
+(define-public spdlog-1.15
   (package
     (name "spdlog")
     (version "1.15.1")
@@ -269,7 +269,7 @@ (define-public spdlog
     (license (list license:expat license:bsd-2))))
 
 (define-public spdlog-1.13
-  (package/inherit spdlog
+  (package/inherit spdlog-1.15
     (version "1.13.0")
     (source
      (origin
@@ -277,13 +277,13 @@ (define-public spdlog-1.13
        (uri (git-reference
              (url "https://github.com/gabime/spdlog")
              (commit (string-append "v" version))))
-       (file-name (git-file-name (package-name spdlog) version))
+       (file-name (git-file-name (package-name spdlog-1.15) version))
        (sha256
         (base32 "0zgdmdgnp2y36jrlk85d4fiyjkjd6anly8pambyc3f3v6sg02zyy"))))))
 
 (define-public spdlog-1.10
   (package
-    (inherit spdlog)
+    (inherit spdlog-1.15)
     (version "1.10.0")
     (source
      (origin
@@ -295,6 +295,8 @@ (define-public spdlog-1.10
        (sha256
         (base32 "02xz017ba9fssm1rp1fcfld7h79awbr6fqai9dxaqp02akp3davk"))))))
 
+(define-public spdlog spdlog-1.15)
+
 (define-public rsyslog
   (package
     (name "rsyslog")
-- 
2.49.0