Bug 2160 - Waf Fails to recognize pygccxml version 1.6.2
Waf Fails to recognize pygccxml version 1.6.2
Status: RESOLVED FIXED
Product: dce
Classification: Unclassified
Component: other
unspecified
PC Linux
: P5 major
Assigned To: Hajime Tazaki
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-07-21 15:33 EDT by Matías Richart
Modified: 2015-08-05 20:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matías Richart 2015-07-21 15:33:57 EDT
The same bug reported here for ns-3 is happening in dce https://www.nsnam.org/bugzilla/show_bug.cgi?id=2013.

A simple patch:
--- a/bindings/python/wscript
+++ b/bindings/python/wscript
@@ -269,6 +269,7 @@ int main ()
                             "import pygccxml; print pygccxml.__version__"],
                             stdout=subprocess.PIPE).communicate()[0]
     pygccxml_version_str = out.strip()
+    pygccxml_version_str = pygccxml_version_str.lstrip('v')
     pygccxml_version = tuple([int(x) for x in pygccxml_version_str.split('.')])
     conf.msg('Checking for pygccxml version', pygccxml_version_str)
     if not (pygccxml_version >= REQUIRED_PYGCCXML_VERSION):
Comment 1 Hajime Tazaki 2015-08-05 20:12:33 EDT
thanks for the report. applied a fix in 94504bca3547.