Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 932139

Summary: games-simulation/pmars-sdl-0.9.2e-r1 - curdisp.c: error: invalid use of incomplete typedef WINDOW {aka struct _win_st}
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 930805    
Attachments: emerge-info.txt
emerge-history.txt.xz
environment
etc.clang.tar.xz
etc.portage.tar.xz
games-simulation:pmars-sdl-0.9.2e-r1:20240517-205622.log
qlist-info.txt.xz

Description Toralf Förster gentoo-dev 2024-05-18 07:51:11 UTC
In file included from sim.c:56:
curdisp.c: In function cur_display_init:
curdisp.c:250:34: warning: '0' flag used with %s gnu_printf format [-Wformat=]
  250 |     sprintf(preStatusLine, "%0.20s [0]: %%-5d Cycle: %%-6d", warrior[0].name);
      |                                  ^
curdisp.c: In function agets5:
curdisp.c:431:26: error: invalid use of incomplete typedef WINDOW {aka struct _win_st}
  431 |           if (ox = curwin->_curx) {
      |                          ^~

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_no_multilib_systemd-20240514-141532

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 18.1.5
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.5
Python 3.11.9
Available Ruby profiles:
  [1]   ruby31 (with Rubygems)
  [2]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.22.3 linux/amd64

  HEAD of ::gentoo
commit 29f9cc61ede010efa76ff687f28277b74cdfe865
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri May 17 19:33:43 2024 +0000

    2024-05-17 19:33:42 UTC

emerge -qpvO games-simulation/pmars-sdl
[ebuild  N    ] games-simulation/pmars-sdl-0.9.2e-r1  USE="-X -sdl"
Comment 1 Toralf Förster gentoo-dev 2024-05-18 07:51:11 UTC
Created attachment 893267 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-05-18 07:51:13 UTC
Created attachment 893268 [details]
emerge-history.txt.xz
Comment 3 Toralf Förster gentoo-dev 2024-05-18 07:51:14 UTC
Created attachment 893269 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-05-18 07:51:15 UTC
Created attachment 893270 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-05-18 07:51:16 UTC
Created attachment 893271 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-05-18 07:51:17 UTC
Created attachment 893272 [details]
games-simulation:pmars-sdl-0.9.2e-r1:20240517-205622.log
Comment 7 Toralf Förster gentoo-dev 2024-05-18 07:51:18 UTC
Created attachment 893273 [details]
qlist-info.txt.xz
Comment 8 Larry the Git Cow gentoo-dev 2024-11-17 03:49:45 UTC
The bug has been closed via the following commit(s):

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

commit f9fa51dc6c9febe526943d56483881b147f1990a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-17 03:22:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-17 03:49:21 +0000

    games-simulation/pmars-sdl: EAPI 8, ncurses opaque struct fixes, C23
    
    Closes: https://bugs.gentoo.org/932139
    Signed-off-by: Sam James <sam@gentoo.org>

 .../pmars-sdl/files/pmars-sdl-0.9.2e-c23.patch     |  11 +++
 .../files/pmars-sdl-0.9.2e-ncurses-opaque.patch    |  45 +++++++++
 .../pmars-sdl/pmars-sdl-0.9.2e-r2.ebuild           | 104 +++++++++++++++++++++
 3 files changed, 160 insertions(+)