guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/15: gnu: ndctl: Fix version reporting.


From: guix-commits
Subject: 01/15: gnu: ndctl: Fix version reporting.
Date: Thu, 6 Jan 2022 20:47:55 -0500 (EST)

nckx pushed a commit to branch master
in repository guix.

commit f17f3e59f8bcabe97fa6d314e6fd26dc4b2c5a7d
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Fri Jan 7 23:51:59 2022 +0100

    gnu: ndctl: Fix version reporting.
    
    * gnu/packages/disk.scm (ndctl)[arguments]: Add a 'fix-version phase.
---
 gnu/packages/disk.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm
index ac8b561e79..9c25d940eb 100644
--- a/gnu/packages/disk.scm
+++ b/gnu/packages/disk.scm
@@ -833,6 +833,11 @@ passphrases.")
                  (lambda _
                    (substitute* "util/parse-configs.c"
                      (("iniparser/") ""))))
+               (add-after 'unpack 'fix-version
+                 ;; Our VERSION's always better than the build's poor guess.
+                 (lambda _
+                   (with-output-to-file "version"
+                     (lambda _ (display #$version)))))
                (add-after 'unpack 'patch-FHS-file-names
                  (lambda _
                    (substitute* "git-version-gen"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]