Bug 1213178

Summary: lddtree fails to run
Product: [openSUSE] openSUSE Distribution Reporter: Peter Urbanec <bugzilla.opensuse.org>
Component: MaintenanceAssignee: Mr Maintenance <maintenance>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Leap 15.5   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Peter Urbanec 2023-07-10 11:22:20 UTC
Leap 15.5 system with
 * pax-utils-1.3.7-bp155.1.5.x86_64
 * python3-pyelftools-0.29-150500.1.4.noarch


$ lddtree /lib64/libc.so.6
  File "/usr/bin/lddtree", line 53
    assert sys.version_info >= (3, 6), f"Python 3.6+ required, but found {sys.version}"
                                                                                      ^
SyntaxError: invalid syntax


Attempt a workaround by specifying a python3 interpreter:

$ python3 /usr/bin/lddtree /lib64/libc.so.6
Traceback (most recent call last):
  File "/usr/bin/lddtree", line 128, in <module>
    def dedupe(items: list[str]) -> list[str]:
TypeError: 'type' object is not subscriptable


This is a regression from Leap 15.4, where `lddtree` used to work without issues.
Comment 1 Ludwig Nussel 2023-08-15 12:01:49 UTC
I've fixed the wrong interpreter for Factory. As for Leap the situation is rather messed up. Someone decided to upgrade pax-utils even though lddtree does not work with python 3.6 anymore. So Leap should actually stay at pax-utils-1.2.8 as shipped with 15.4.
Morever, python-pyelftools was dropped from 15.5 du to same package in SLE. Apparently the package was then dropped from SLE again but not added to Leap again. So lddtree can't work anyway due to missing dependency. As package maintainer I can't fix this. Reassinging to maintenance(?) to downgrade pax-utils and re-introduce python-pyelftools from 15.4.
Comment 2 OBSbugzilla Bot 2023-08-15 12:35:04 UTC
This is an autogenerated message for OBS integration:
This bug (1213178) was mentioned in
https://build.opensuse.org/request/show/1104038 Factory / pax-utils