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 <[email protected]>: > 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:\ > > _______________________________________________ > Bug-global mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/bug-global > > -- Shigio YAMAGUCHI <[email protected]> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
_______________________________________________ Bug-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-global
