unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 1/2] daemon: Fix '--version'.
@ 2016-08-24  1:34 Alex Vong
  2016-08-29  1:31 ` (ping!) " Alex Vong
  2016-08-29 16:12 ` Ludovic Courtès
  0 siblings, 2 replies; 9+ messages in thread
From: Alex Vong @ 2016-08-24  1:34 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

Hi guixes,

This one and the next patch fix '--version' of guix-daemon and
guix-register. Currently, they are not working, which is the reason why
help2man gives error when building from source.


[-- Attachment #2: 0001-daemon-Fix-version.patch --]
[-- Type: text/x-diff, Size: 1602 bytes --]

From 06d97b6de29aedeec7efe6f9a1e654145183a06b Mon Sep 17 00:00:00 2001
From: Alex Vong <alexvong1995@gmail.com>
Date: Wed, 24 Aug 2016 08:25:48 +0800
Subject: [PATCH 1/2] daemon: Fix '--version'.

* nix/nix-daemon/guix-daemon.cc (argp_program_version): Assigning
  instead of declaring.
  (argp_program_bug_address): Likewise.
---
 nix/nix-daemon/guix-daemon.cc | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/nix/nix-daemon/guix-daemon.cc b/nix/nix-daemon/guix-daemon.cc
index d5d33a5..41b56cb 100644
--- a/nix/nix-daemon/guix-daemon.cc
+++ b/nix/nix-daemon/guix-daemon.cc
@@ -1,5 +1,6 @@
 /* GNU Guix --- Functional package management for GNU
    Copyright (C) 2012, 2013, 2014, 2015, 2016 Ludovic Courtès <ludo@gnu.org>
+   Copyright (C) 2016 Alex Vong <alexvong1995@gmail.com>
 
    This file is part of GNU Guix.
 
@@ -53,10 +54,6 @@ extern void run (Strings args);
 static const char guix_textdomain[] = "guix";
 
 
-const char *argp_program_version =
-  "guix-daemon (" PACKAGE_NAME ") " PACKAGE_VERSION;
-const char *argp_program_bug_address = PACKAGE_BUGREPORT;
-
 static char doc[] =
   n_("guix-daemon -- perform derivation builds and store accesses")
   "\v\n"
@@ -344,6 +341,8 @@ main (int argc, char *argv[])
       settings.useBuildHook = false;
 #endif
 
+      argp_program_version = "guix-daemon (" PACKAGE_NAME ") " PACKAGE_VERSION;
+      argp_program_bug_address = PACKAGE_BUGREPORT;
       argp_parse (&argp, argc, argv, 0, 0, 0);
 
       /* Effect all the changes made via 'settings.set'.  */
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-09-02 12:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24  1:34 [PATCH 1/2] daemon: Fix '--version' Alex Vong
2016-08-29  1:31 ` (ping!) " Alex Vong
2016-08-29 16:12 ` Ludovic Courtès
2016-08-30  4:29   ` Alex Vong
2016-08-31 21:13     ` Ludovic Courtès
2016-09-01  6:23       ` Alex Vong
2016-09-01 12:15         ` Ludovic Courtès
2016-09-02  1:00           ` Alex Vong
2016-09-02 12:41             ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).