FS#50321 - [pax-utils] Not compatible with python-pyelftools 0.24
Attached to Project:
Community Packages
Opened by Doug Newgard (Scimmia) - Tuesday, 09 August 2016, 03:16 GMT
Last edited by Timothy Redaelli (tredaelli) - Friday, 19 August 2016, 08:45 GMT
Opened by Doug Newgard (Scimmia) - Tuesday, 09 August 2016, 03:16 GMT
Last edited by Timothy Redaelli (tredaelli) - Friday, 19 August 2016, 08:45 GMT
|
Details
The API of pyelftools changed with 0.24, now lddtree is
non-functional:
File "/usr/bin/lddtree", line 789, in <module> sys.exit(main(sys.argv[1:])) File "/usr/bin/lddtree", line 751, in main display=p, debug=options.debug) File "/usr/bin/lddtree", line 448, in ParseELF libs.append(bstr(t.needed)) File "/usr/bin/lddtree", line 75, in bstr return buf.decode('utf-8') AttributeError: 'str' object has no attribute 'decode' I get a lot of bug reports after soname bumps because of partial updates or AUR packages, I generally recommend this tool to help people track down what is really the problem. Having it not work creates more of a problem for me. I'll look at patching it (shouldn't be hard), but it might be a few days. Upstream here is Gentoo, and they don't have this new version of pyelftools yet, so it's not fixed there. I'll file a report, but again, when I can. |
This task depends upon
Closed by Timothy Redaelli (tredaelli)
Friday, 19 August 2016, 08:45 GMT
Reason for closing: Upstream
Additional comments about closing: Disabled python-pyelftools support in 1.1.6-2. It will be re-enabled when upstream will support it.
Friday, 19 August 2016, 08:45 GMT
Reason for closing: Upstream
Additional comments about closing: Disabled python-pyelftools support in 1.1.6-2. It will be re-enabled when upstream will support it.
Comment by minus (minus7) -
Saturday, 13 August 2016, 14:27 GMT
As a workaround changing the line 75 to just `return buf` makes at
least basic usage work.