bug-global
[Top][All Lists]
Advanced

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

Re: use @libdir@ in gtags.conf.in


From: Shigio YAMAGUCHI
Subject: Re: use @libdir@ in gtags.conf.in
Date: Wed, 15 Jun 2016 15:08:04 +0900

Hi,
> user of openSUSE Leap found and reported issue where GNU Global could
> not find pygments parser. Generated gtags.conf doesn't seem to respect
> "libdir" passed to configure.
>
> I may not understood how ${libdir} is replaced in this file, but
> following patch fixed the problem for us and makes more sense to
> me. I'd appreciate review or explanation.

$libdir is replaced with the value of --libdir option of configure script.
You can see the value with this command line.

$ gtags --conf=libdir

Could you let me know the result of executing the above command?
Is the parser located in the directory?

Thank you in advance.

Regards,
Shigio


2016-06-15 6:36 GMT+09:00 Tomáš Čech <address@hidden>:
Hi,

user of openSUSE Leap found and reported issue where GNU Global could
not find pygments parser. Generated gtags.conf doesn't seem to respect
"libdir" passed to configure.

I may not understood how ${libdir} is replaced in this file, but
following patch fixed the problem for us and makes more sense to
me. I'd appreciate review or explanation.

Thanks in advance.

Best regards,

Tomas Cech

Index: global-6.5.4/gtags.conf.in
===================================================================
--- global-6.5.4.orig/gtags.conf.in     2016-03-27 06:04:42.000000000 +0200
+++ global-6.5.4/gtags.conf.in  2016-05-13 16:20:51.724108404 +0200
@@ -63,14 +63,14 @@
user-custom|User custom plugin parser:\
        :tc=common:\
        :langmap=c\:.c.h:\
-       :gtags_parser=c\:$libdir/gtags/user-custom.la:
+       :gtags_parser=c\:@libdir@/gtags/user-custom.la:
#
# Plug-in parser to use Exuberant Ctags.
#
exuberant-ctags|plugin-example|setting to use Exuberant Ctags plug-in parser:\
        :tc=common:\
        :address@hidden@:\
-       :ctagslib=$libdir/gtags/exuberant-ctags.la:\
+       :address@hidden@/gtags/exuberant-ctags.la:\
        :tc=common-ctags-maps:
#
# A common map for both Exuberant Ctags and Universal Ctags.
@@ -166,7 +166,7 @@
universal-ctags|setting to use Universal Ctags plug-in parser:\
        :tc=common:\
        :address@hidden@:\
-       :ctagslib=$libdir/gtags/universal-ctags.la:\
+       :address@hidden@/gtags/universal-ctags.la:\
        :tc=common-ctags-maps:\
        :langmap=Ada\:.adb.ads.Ada:\
# Please uncomment to use this entry.
@@ -233,7 +233,7 @@
#
pygments-parser|Pygments plug-in parser:\
        :address@hidden@:\
-       :pygmentslib=$libdir/gtags/pygments-parser.la:\
+       :address@hidden@/gtags/pygments-parser.la:\
        :tc=common:\
        :langmap=ABAP\:.abap:\
        :langmap=ANTLR\:.G.g:\

_______________________________________________
Bug-global mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-global




--
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

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