#1121264 angband FTCBFS: ncurses wide char check broken

Package:
angband
Source:
angband
Description:
Single-player, text-based, dungeon simulation game
Submitter:
Helmut Grohne
Date:
2025-11-24 12:56:05 UTC
Severity:
normal
Tags:
#1121264#5
Date:
2025-11-23 12:14:34 UTC
From:
To:
angand used to cross build. The ncurses wide character test was guessing
that it would just work and all was fine. Then ncursesw6-config changed.
It now emits -ltinfow. This is unlike ncursesw.pc, which emits -ltinfo
instead. I'm Ccing the ncurses maintainers for a comment on this.
Possibly, this is a regression in ncurses.

Now the native angand build notices this and concludes that wide
characters are not supported. It succeeds. The cross build instead still
guesses that it would work and eventually fails linking -ltinfow.

I'm attaching a patch that restructures the test on the angand side to
correctly handle the situation at hand. Rather than putting the
AC_RUN_IFELSE check first, the AC_LINK_IFELSE goes first. Then the cross
build behaves the same as the native build. Please consider applying the
patch and forwarding it upstream.

Helmut

#1121264#10
Date:
2025-11-23 22:16:18 UTC
From:
To:
Am 23.11.2025 um 13:14 schrieb Helmut Grohne:

Yes and already fixed, see #1121208.  Have not looked at the rest of
the report, need to go to bed now.

Cheers,
       Sven

#1121264#15
Date:
2025-11-23 20:53:24 UTC
From:
To:
...

duplicate of #1121208

#1121264#18
Date:
2025-11-23 20:53:24 UTC
From:
To:
...

duplicate of #1121208

#1121264#23
Date:
2025-11-24 06:47:22 UTC
From:
To:
Control: severity -1 minor

Thank you for handling the ncurses side. Still, I think these are not
duplicates. The angband side is about improving the configure check. It
will become less relevant as ncurses returns to the previous behavior,
but it still is a defect.

Helmut