Alex Vong skribis:
> l...@gnu.org (Ludovic Courtès) writes:
>
>> Alex Vong skribis:
>>
> [...]
>>>
>>> I think you have isolated the problem! This test case does not work for
>>> me.
>>>
>>>
>>> I get the following output after building with
>>> (g++ -O2 -flto version.cxx):
>>
>> What if you com
l...@gnu.org (Ludovic Courtès) writes:
> Alex Vong skribis:
>
[...]
>>
>> I think you have isolated the problem! This test case does not work for
>> me.
>>
>>
>> I get the following output after building with
>> (g++ -O2 -flto version.cxx):
>
> What if you compile with ‘gcc’ (and rename to foo.c)
Alex Vong skribis:
> l...@gnu.org (Ludovic Courtès) writes:
[...]
>> #include
>>
>> const char *argp_program_version = "foo";
>> const char *argp_program_bug_address = "f...@example.org";
>>
>> static const struct argp_option options[] =
>> {
>> { "system", 's', "SYSTEM", 0,
>> "as
Hi Ludovic,
l...@gnu.org (Ludovic Courtès) writes:
> Hi Alex,
>
> Alex Vong skribis:
>
[...]
>
>> I get this output instead:
>>
>> $ LC_ALL=C ./guix-daemon --version
>> ./guix-daemon: unrecognized option '--version'
>> Try `guix-daemon --help' or `guix-daemon --usage' for more information.
>>
>>
Hi Alex,
Alex Vong skribis:
> l...@gnu.org (Ludovic Courtès) writes:
>
>> Hi!
>>
>> Alex Vong skribis:
>>
>>> 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 so
Hello,
l...@gnu.org (Ludovic Courtès) writes:
> Hi!
>
> Alex Vong skribis:
>
>> 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.
>
> How are they not workin
Hi!
Alex Vong skribis:
> 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.
How are they not working exactly? :-)
It definitely works for me:
--8<--
9a1e654145183a06b Mon Sep 17 00:00:00 2001
> From: Alex Vong
> 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_b
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 ins