use @libdir@ in gtags.conf.in

Tomáš Čech <[email protected]>
Newsgroups gmane.comp.gnu.global.bugs
Message-ID <20160614213646.egxamx5eqisna2oh@venom>
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
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXYHjlAAoJEEoj40+gM0NtBgcQAI02OZu9qf3MnYDD1OmAXXEt
6Wzj0G5RMisBQ+FPXSS+4hMdQw4Mqg1hrfF6JsVrMyoBp8CP9c1EJP+H0KZ28aOh
S/u+J+65xguN365SJ9Y+OBpROaI7wZFtuiBd8pSwIgaXeRlH6W1efeGFGUYBjaU1
3R8XL6DNaQUNmfQA0HkmAaPNIFhaI44s2Wnexcl7zvHSmegG7aC0SxMtpKPHL2nP
WVHLGEQrBQM24e5XNpfEiHMaX9maabfbY6fmLG3n5ceLt0Od3uRXYquZtiXKeCWo
xkJUZDKJPW/l4aLwVF9NHmgHEDanN7RCkI8QaCWjGCts2FncMWcx2d7/Oej7YCK7
MLlRjw2lgBbJzjyR+63vtyXrC90e38xXf9YEuW6rKh/W56M8z7/N4yMdrz4X3QC1
TkXZcoeutu3JaRoL5ZXXC9AftSHHN3Tu2iZJm8kYgmZRBbIXQEt/Vi+/CpFqMM2+
C15juGMFzmTRkO0StPftzU9tNmIPAJ2ewYHbDAaMzXh2+Ype03M5R26mZrN45fos
IP0AJWROAwMMNfydFQx/rOnSicFl7HYBUt+q66QFSUPHCPqti9ev3pkkC6U9tOdO
v6meQdB5VM5kaKurNviNEDelB4xL85U+ueHjv1lke7X5B3WNewbEXpAcL8g31gDt
F9AVkB3zyniB3fEd38qE
=wiRD
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.