I started a leap 15.5 container on an aarch64-linux fedora asahi system, and ran into: ... (gdb) PASS: gdb.python/py-missing-debug.exp: initial checks: debug info no longer found source /data/vries/gdb/build/gdb/testsuite/outputs/gdb.python/py-missing-debug/py-missing-debug.py^M Python Exception <class 'ImportError'>: Module 'curses' is not installed.^M Use:^M sudo zypper install python36-curses^M to install it.^M Error occurred in Python: Module 'curses' is not installed.^M Use:^M sudo zypper install python36-curses^M to install it.^M (gdb) FAIL: gdb.python/py-missing-debug.exp: source python script ... So, I need to add python3-curses to my package list. But the FAIL should be an UNSUPPORTED instead.
https://sourceware.org/pipermail/gdb-patches/2024-September/211611.html
The master branch has been updated by Tom de Vries <vries@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=29c70787112e01cd52b53bf14bdcacb0a11e0725 commit 29c70787112e01cd52b53bf14bdcacb0a11e0725 Author: Tom de Vries <tdevries@suse.de> Date: Sun Sep 8 07:46:09 2024 +0200 [gdb/testsuite] Handle missing curses in gdb.python/py-missing-debug.exp On a system with python 3.6, module gdb.missing_debug imports module curses, so when running test-case gdb.python/py-missing-debug.exp on a system without that module installed, we run into: ... (gdb) source py-missing-debug.py^M Python Exception <class 'ImportError'>: Module 'curses' is not installed.^M Use:^M sudo zypper install python36-curses^M to install it.^M Error occurred in Python: Module 'curses' is not installed.^M Use:^M sudo zypper install python36-curses^M to install it.^M (gdb) FAIL: gdb.python/py-missing-debug.exp: source python script ... Fix this by issuing UNSUPPORTED instead, and bailing out. Tested on x86_64-linux. Approved-by: Kevin Buettner <kevinb@redhat.com> PR testsuite/31576 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31576
Fixed.