guix-commits
[Top][All Lists]
Advanced

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

02/03: gnu: jami: Fix version string.


From: guix-commits
Subject: 02/03: gnu: jami: Fix version string.
Date: Fri, 14 Jan 2022 17:43:10 -0500 (EST)

apteryx pushed a commit to branch master
in repository guix.

commit bd872a6f7505d13d59c7c32009913dbfd4cb81f9
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Jan 14 16:53:44 2022 -0500

    gnu: jami: Fix version string.
    
    * gnu/packages/jami.scm (jami)[phases]{fix-version-string}: New phase.
---
 gnu/packages/jami.scm | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/jami.scm b/gnu/packages/jami.scm
index 72282bc68e..b0d9479ba2 100644
--- a/gnu/packages/jami.scm
+++ b/gnu/packages/jami.scm
@@ -572,7 +572,16 @@ decentralized calling using P2P-DHT.")
          (add-after 'unpack 'change-directory/maybe
            (lambda _
              ;; Allow building from the tarball or a git checkout.
-             (false-if-exception (chdir "client-qt")))))))
+             (false-if-exception (chdir "client-qt"))))
+         (add-after 'change-directory/maybe 'fix-version-string
+           (lambda _
+             (substitute* "src/version.h"
+               (("VERSION_STRING")
+                "BUILD_DATE")           ;to avoid a redefinition error
+               (("// clang-format on.*" anchor)
+                (string-append "const char VERSION_STRING[] = \""
+                               ,version "\";\n"
+                               anchor))))))))
     (native-inputs
      (list pkg-config python qttools doxygen graphviz))
     (inputs



reply via email to

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