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:\
:ctagscom=@EXUBERANT_CTAGS@:\
- :ctagslib=$libdir/gtags/exuberant-ctags.la:\
+ :ctagslib=@libdir@/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:\
:ctagscom=@UNIVERSAL_CTAGS@:\
- :ctagslib=$libdir/gtags/universal-ctags.la:\
+ :ctagslib=@libdir@/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:\
:ctagscom=@EXUBERANT_CTAGS@:\
- :pygmentslib=$libdir/gtags/pygments-parser.la:\
+ :pygmentslib=@libdir@/gtags/pygments-parser.la:\
:tc=common:\
:langmap=ABAP\:.abap:\
:langmap=ANTLR\:.G.g:\
signature.asc
Description: Digital signature
_______________________________________________ Bug-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-global
