Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 890301 - app-misc/pax-utils-1.3.6[python_single_target_python3_8] crashes lddtree (because the code uses Python >=3.9 features)
Summary: app-misc/pax-utils-1.3.6[python_single_target_python3_8] crashes lddtree (bec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-09 18:54 UTC by Sebastian Pipping
Modified: 2023-01-09 20:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Pipping gentoo-dev 2023-01-09 18:54:06 UTC
Hi!

I just ran into this lddtree crash:

  $ lddtree /usr/lib64/gstreamer-1.0/libgstlibvisual.so 
  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

  $ head -n1 /usr/bin/lddtree
  #!/usr/bin/python3.8

Use of "list[str]" (with lower "l"!) requires Python >=3.9.
The best fix for 1.3.6-r1 is likely this:

  --- PYTHON_COMPAT=( python3_{8..11} )
  +++ PYTHON_COMPAT=( python3_{9..11} )

What do you think?
Comment 1 Mike Gilbert gentoo-dev 2023-01-09 19:32:05 UTC
Dropping 3.8 seems fine to me.
Comment 2 Larry the Git Cow gentoo-dev 2023-01-09 20:22:34 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e84bc6ee265390852bf789098d13eae84fbe35e5

commit e84bc6ee265390852bf789098d13eae84fbe35e5
Author:     Sebastian Pipping <sping@gentoo.org>
AuthorDate: 2023-01-09 20:19:05 +0000
Commit:     Sebastian Pipping <sping@gentoo.org>
CommitDate: 2023-01-09 20:20:02 +0000

    app-misc/pax-utils: Drop broken Python 3.8 support from 1.3.6
    
    Closes: https://bugs.gentoo.org/890301
    Acked-by: Mike Gilbert <floppym@gentoo.org>
    Signed-off-by: Sebastian Pipping <sping@gentoo.org>

 app-misc/pax-utils/pax-utils-1.3.6-r1.ebuild | 77 ++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)
Comment 3 Larry the Git Cow gentoo-dev 2023-01-09 20:37:16 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4a648568f3ce3f1fa1f64da7f003e6c62240b17

commit b4a648568f3ce3f1fa1f64da7f003e6c62240b17
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-01-09 20:35:51 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-01-09 20:36:09 +0000

    app-misc/pax-utils: drop 1.3.6
    
    There's no sense in keeping broken versions around in ~arch.
    
    Bug: https://bugs.gentoo.org/890301
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 app-misc/pax-utils/pax-utils-1.3.6.ebuild | 77 -------------------------------
 1 file changed, 77 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4431cdf450fff9a3841dd6c73d339596e0e2f347

commit 4431cdf450fff9a3841dd6c73d339596e0e2f347
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2023-01-09 20:34:51 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2023-01-09 20:34:59 +0000

    app-misc/pax-utils: drop Python 3.8 from 9999
    
    Bug: https://bugs.gentoo.org/890301
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 app-misc/pax-utils/pax-utils-9999.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)