After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 628611 - gtk-doc >= 1.13 creates automagic dependencies on syntax highlighters
gtk-doc >= 1.13 creates automagic dependencies on syntax highlighters
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: 1.16
Assigned To: gtk-doc maintainers
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-02 12:25 UTC by Pacho Ramos
Modified: 2010-10-04 09:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
/0001-Allow-selection-of-a-specific-syntax-highlighter-bug.patch (2.62 KB, patch)
2010-09-26 16:50 UTC, Gilles Dartiguelongue
committed Details | Review

Description Pacho Ramos 2010-09-02 12:25:19 UTC
This was originally reported downstream at:
http://bugs.gentoo.org/show_bug.cgi?id=334489

configure checks for presence of "source-highlight", "highlight" and "vim", and
in case one of them is found its path is embedded in /usr/bin/gtkdoc-fixxref.
From build.log:

   checking for source-highlight... no
   checking for highlight... no
   checking for vim... /usr/bin/vim

Then, if vim was present when building gtk-doc and, later, I remove it, gtk-doc will fail.

Would be nice to be able to choose between highlighters with a configure switch like:
"--with-highlight=(none|vim|source-highlight|highlight|auto)"

Thanks a lot
Comment 1 Nirbheek Chauhan 2010-09-02 17:23:23 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=612028 is a related bug about this.
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2010-09-02 18:32:26 UTC
Sounds like a good idea. Anyone care to make a patch? Still in similar ways removing a library will cause all apps to fail that where linking against it.
Comment 3 Gilles Dartiguelongue 2010-09-26 16:50:04 UTC
Created attachment 171133 [details] [review]
/0001-Allow-selection-of-a-specific-syntax-highlighter-bug.patch

Here is a tentative patch. It allows selection of a particular highlighter, desactivation of the feature or automatic selection.
Comment 4 Stefan Sauer (gstreamer, gtkdoc dev) 2010-10-04 09:14:05 UTC
commit 8506e3b61dca2861b594c3cea2dc4e0470aad4fc
Author: Gilles Dartiguelongue <eva@gentoo.org>
Date:   Sun Sep 26 18:48:04 2010 +0200

    Allow selection of a specific syntax highlighter, bug #628611.
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2010-10-04 09:14:33 UTC
Comment on attachment 171133 [details] [review]
/0001-Allow-selection-of-a-specific-syntax-highlighter-bug.patch

Thanks for the patch!