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 603238 - PATCH The perlmod generation does not produce valid perl source code
PATCH The perlmod generation does not produce valid perl source code
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2009-11-28 17:23 UTC by gnome
Modified: 2012-11-18 11:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Script and patch on Doxyfile to trigger the bug, and a patch (568 bytes, application/x-compressed-tar)
2009-11-28 17:23 UTC, gnome
Details

Description gnome 2009-11-28 17:23:45 UTC
Created attachment 148659 [details]
Script and patch on Doxyfile to trigger the bug, and a patch

How to reproduce:
* cd doxygen 
* Enabling GENERATE_PERLMOD in Doxyfile (using Doxygen.patch in patch.tgz)
* Run doxygen on the doxygen source code (version: 1.6.1-200910270, SVN rev: 712):
bin/doxygen Doxyfile 
* Run the sample script: trigger_bug.pl (provided in patch.tgz)

The output will be:

syntax error at doxygen_docs/perlmod/DoxyDocs.pm line 5140, near "]"
Unmatched right curly bracket at doxygen_docs/perlmod/DoxyDocs.pm line 10722, at end of line
Unmatched right curly bracket at doxygen_docs/perlmod/DoxyDocs.pm line 12847, at end of line
Unmatched right curly bracket at doxygen_docs/perlmod/DoxyDocs.pm line 12980, at end of line
Unmatched right curly bracket at doxygen_docs/perlmod/DoxyDocs.pm line 13069, at end of line
Unmatched right square bracket at doxygen_docs/perlmod/DoxyDocs.pm line 13095, at end of line
Unmatched right curly bracket at doxygen_docs/perlmod/DoxyDocs.pm line 13096, at end of line
Unmatched right square bracket at doxygen_docs/perlmod/DoxyDocs.pm line 13431, at end of line
Unmatched right curly bracket at doxygen_docs/perlmod/DoxyDocs.pm line 13432, at end of line
Unmatched right curly bracket at doxygen_docs/perlmod/DoxyDocs.pm line 13613, at end of line
doxygen_docs/perlmod/DoxyDocs.pm has too many errors.
Compilation failed in require at ../doxygen-patch-files/trigger_bug.pl line 3.


The error can be fixed with the patch in perlmodgen.cpp.patch.
Comment 1 Dimitri van Heesch 2009-12-28 13:01:28 UTC
Thanks. The patch is already included in the latest subversion update.
Comment 2 Dimitri van Heesch 2009-12-30 13:38:43 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.6.2. Please verify if this is indeed the case and reopen the
bug if you think it is not fixed (include any additional information that you
think can be relevant).