bug-global
[Top][All Lists]
Advanced

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

Re: use PACKAGE_NAME in version.c, not sysname


From: Shigio YAMAGUCHI
Subject: Re: use PACKAGE_NAME in version.c, not sysname
Date: Sat, 13 May 2023 07:09:02 +0900

Hello,

> The solution is to change line 66 of libutil/version.c so that it uses 
> PACKAGE_NAME instead of sysname.

This fix will be included in the next release.
Thank you!

Regards,
Shigio

On Fri, May 12, 2023 at 10:36 PM <hackerb9@member.fsf.org> wrote:
>
> I was trying to learn how to use GNU global with emacs and was surprised that 
> M-x semanticdb-enable-gnu-global-databases gave an error that it can't find 
> the version number of GNU Global. Turns out the problem is that --version no 
> longer identifies the program as *GNU* global. It simply says "global 
> (Global) 6.6.10".
>
> The solution is to change line 66 of libutil/version.c so that it uses 
> PACKAGE_NAME instead of sysname.
>
>     66 fprintf(stdout, "%s (%s) %s\n", name, PACKAGE_NAME, VERSION);
>
> After using PACKAGE_NAME, it works correctly:
>
> $ ./global/global --version
> global (GNU GLOBAL) 6.6.10
> Powered by Berkeley DB 1.85.
> Copyright (c) 1996-2023 Tama Communications Corporation
> License GPLv3+: GNU GPL version 3 or later 
> <http://www.gnu.org/licenses/gpl.html>
> This is free software; you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
>
> Thanks!
>
> --b9



-- 
Shigio YAMAGUCHI <shigio@gnu.org>
PGP fingerprint:
26F6 31B4 3D62 4A92 7E6F  1C33 969C 3BE3 89DD A6EB



reply via email to

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