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 760678 - fails to build with an unreleased python version
fails to build with an unreleased python version
Status: RESOLVED FIXED
Product: doxygen
Classification: Other
Component: documentation
1.8.11
Other Linux
: Normal normal
: ---
Assigned To: Dimitri van Heesch
Dimitri van Heesch
Depends on:
Blocks:
 
 
Reported: 2016-01-15 14:21 UTC by Matthias Klose
Modified: 2016-12-29 18:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (998 bytes, patch)
2016-01-15 14:21 UTC, Matthias Klose
none Details | Review
patch for python version handling (1.17 KB, patch)
2016-12-22 05:59 UTC, Orion Poplawski
none Details | Review

Description Matthias Klose 2016-01-15 14:21:14 UTC
Created attachment 319109 [details] [review]
patch

having a version like "3.5.1+" lets the doxygen build fail.
Comment 1 Orion Poplawski 2016-12-22 05:59:38 UTC
Created attachment 342369 [details] [review]
patch for python version handling

It also fails with 3.6.0rc1:

cd /builddir/build/BUILD/doxygen-1.8.12/x86_64-redhat-linux-gnu/doc && /usr/bin/python3.6 translator.py
Traceback (most recent call last):
  • File "translator.py", line 1993 in <module>
    major, minor, patch = (int(e) for e in platform.python_version_tuple())
  • File "translator.py", line 1993 in <genexpr>
    major, minor, patch = (int(e) for e in platform.python_version_tuple())
ValueError: invalid literal for int() with base 10: '0rc1'

So need something more generic.  Perhaps this is better.
Comment 2 Dimitri van Heesch 2016-12-24 15:19:37 UTC
I think it is even better to use sys.version_info[0] for the major number and sys.version_info[1] for the minor number.

I'll correct the script accordingly.
Comment 3 Dimitri van Heesch 2016-12-29 18:45:59 UTC
This bug was previously marked ASSIGNED, which means it should be fixed in
doxygen version 1.8.13. Please verify if this is indeed the case. Reopen the
bug if you think it is not fixed and please include any additional information 
that you think can be relevant (preferably in the form of a self-contained example).