Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 951216 - games-emulation/ppsspp: Common/Render/Text/draw_text_sdl.cpp:190:52: error: cannot convert ‘_TTF_Font*’ to ‘TTF_Font*’ in initialization
Summary: games-emulation/ppsspp: Common/Render/Text/draw_text_sdl.cpp:190:52: error: c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Maciej Barć
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2025-03-12 21:25 UTC by Kyle D.
Modified: 2025-03-15 19:55 UTC (History)
3 users (show)

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


Attachments
build log (build.log,430.31 KB, text/x-log)
2025-03-12 21:25 UTC, Kyle D.
Details
emerge info (emerge.info,22.07 KB, text/plain)
2025-03-12 21:26 UTC, Kyle D.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle D. 2025-03-12 21:25:58 UTC
Created attachment 920649 [details]
build log

I'm running into issues with ppsspp 1.18.1+ rebuilds and not quite sure how to fix them on my end:

Errors are as such:
...
/var/tmp/portage/games-emulation/ppsspp-1.18.1/work/ppsspp-1.18.1/Common/Render/Text/draw_text_sdl.cpp: In member function ‘uint32_t Text
DrawerSDL::CheckMissingGlyph(std::string_view)’:
/var/tmp/portage/games-emulation/ppsspp-1.18.1/work/ppsspp-1.18.1/Common/Render/Text/draw_text_sdl.cpp:190:52: error: cannot convert ‘_TTF_Font*’ to ‘TTF_Font*’ in initialization
  190 |         TTF_Font *font = fontMap_.find(fontHash_)->second;
      |                          ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
      |                                                    |
      |                                                    _TTF_Font*
In file included from /var/tmp/portage/games-emulation/ppsspp-1.18.1/work/ppsspp-1.18.1/Common/Render/Text/draw_text_sdl.cpp:14:
/var/tmp/portage/games-emulation/ppsspp-1.18.1/work/ppsspp-1.18.1/Common/Render/Text/draw_text_sdl.h:13:8: note: class type ‘_TTF_Font’ is incomplete
   13 | struct _TTF_Font;
      |        ^~~~~~~~~
...
Comment 1 Kyle D. 2025-03-12 21:26:48 UTC
Created attachment 920650 [details]
emerge info

Adding emerge info as well.
Comment 2 Kyle D. 2025-03-12 21:57:51 UTC
It seems that masking media-libs/sdl2-ttf-2.24.0 allowed ppsspp to build once again with errors. May need to adjust the ebuild to account for this, though there may also be an upstreamed fix that isn't in a point release quite yet.
Comment 3 Arve Barsnes 2025-03-14 16:38:16 UTC
Confirmed downgrade of media-libs/sdl2-ttf worked for me as well.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-14 16:41:11 UTC
There's patches in https://github.com/hrydgard/ppsspp/issues/19839.
Comment 5 Maciej Barć gentoo-dev 2025-03-15 16:17:44 UTC
In fact media-libs/sdl2-ttf is not even required by the ebuild.
Comment 6 Larry the Git Cow gentoo-dev 2025-03-15 19:55:39 UTC
The bug has been closed via the following commit(s):

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

commit 8d1ce5aab43e8e5d1e5b48dbc97b124f8799398e
Author:     Maciej Barć <xgqt@gentoo.org>
AuthorDate: 2025-03-15 16:36:13 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2025-03-15 19:55:31 +0000

    games-emulation/ppsspp: patch for sdl2-ttf
    
    Closes: https://bugs.gentoo.org/951216
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 .../ppsspp/files/ppsspp-1.18.1-sdl2-ttf.patch      | 74 ++++++++++++++++++++++
 ...pp-1.18.1-r1.ebuild => ppsspp-1.18.1-r2.ebuild} |  2 +
 2 files changed, 76 insertions(+)