Bug 1623

Summary: pybindgen rev809 is not able to build after Ubuntu 1210
Product: ns-3 Reporter: Hajime Tazaki <tazaki>
Component: python bindingsAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: ns-bugs
Priority: P5    
Version: ns-3.16   
Hardware: All   
OS: Linux   

Description Hajime Tazaki 2013-04-10 21:24:41 UTC
pybindgen can't build on Ubuntu 1210 due to a deprecated function of python bzrlib used in pybindgen rev:809, which is specified in current ns-3-dev.

Traceback (most recent call last):
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 97, in waf_entry_point
    run_commands()
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 151, in run_commands
    run_command(cmd_name)
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Scripting.py", line 143, in run_command
    ctx.execute()
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Configure.py", line 128, in execute
    super(ConfigurationContext,self).execute()
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 87, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/.waf-1.6.11-30618c54883417962c38f5d395f83584/waflib/Context.py", line 128, in recurse
    user_function(self)
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/wscript", line 289, in configure
    generate_version_py()
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/wscript", line 128, in generate_version_py
    version = get_version_from_bzr(path)
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/wscript", line 108, in get_version_from_bzr
    return _get_version_from_bzr_lib(path)
  File "/var/lib/jenkins/workspace/daily-mptcp/arch/sim/test/buildtop/source/pybindgen-user/wscript", line 53, in _get_version_from_bzr_lib
    history = branch.revision_history()
AttributeError: 'BzrBranch7' object has no attribute 'revision_history'

the following patch will solve the issue. though I've only tested under Ubuntu 12.10 64bits.

diff -r 4cac575735b3 bindings/python/wscript
--- a/bindings/python/wscript   Mon Apr 08 12:48:36 2013 -0700
+++ b/bindings/python/wscript   Thu Apr 11 10:21:14 2013 +0900
@@ -13,7 +13,7 @@
 after = TaskGen.after

 ## https://launchpad.net/pybindgen/
-REQUIRED_PYBINDGEN_VERSION = (0, 15, 0, 809)
+REQUIRED_PYBINDGEN_VERSION = (0, 16, 0, 825)
 REQUIRED_PYGCCXML_VERSION = (0, 9, 5)

# I think this bug is critical if we're going to support Ubuntu 1210 (and coming Ubuntu 1304).
Comment 1 Hajime Tazaki 2013-04-12 08:37:58 UTC
fixed with the changeset 9295	268f02304bf7.