Bug 283868 - games/trackballs: Fails to build with sdl2_ttf 2.24.0
Summary: games/trackballs: Fails to build with sdl2_ttf 2.24.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Ganael LAPLANCHE
URL:
Keywords:
Depends on:
Blocks: 283865
  Show dependency treegraph
 
Reported: 2025-01-05 15:44 UTC by Daniel Engberg
Modified: 2025-01-07 17:58 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (martymac)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2025-01-05 15:44:14 UTC
/usr/bin/c++ -DDEFAULT_RESOLUTION=-1 -DHAVE_CONFIG_H -DLOCALEDIR=\"/usr/local/share/locale\" -DPACKAGE=\"trackballs\" -DSHARE_DIR=\"/usr/local/share/trackballs\" -DVERSION=\"1.3.4\" -D_REENTRANT -D_THREAD_SAFE -I/wrkdirs/usr/ports/games/trackballs/work/trackballs-1.3.4/src -I/usr/local/include/guile/2.2 -I/wrkdirs/usr/ports/games/trackballs/work/.build -I/usr/local/include/SDL2 -I/usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG   -pthread -MD -MT CMakeFiles/trackballs.dir/src/font.cc.o -MF CMakeFiles/trackballs.dir/src/font.cc.o.d -o CMakeFiles/trackballs.dir/src/font.cc.o -c /wrkdirs/usr/ports/games/trackballs/work/trackballs-1.3.4/src/font.cc
In file included from /wrkdirs/usr/ports/games/trackballs/work/trackballs-1.3.4/src/font.cc:25:
/usr/local/include/SDL2/SDL_ttf.h:165:16: error: typedef 'TTF_Font' cannot be referenced with a struct specifier
  165 | typedef struct TTF_Font TTF_Font;
      |                ^
/wrkdirs/usr/ports/games/trackballs/work/trackballs-1.3.4/src/glHelp.h:30:26: note: declared here
   30 | typedef struct _TTF_Font TTF_Font;
      |                          ^
1 error generated.

Using Poudriere, 14.2-RELEASE (amd64)
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-01-07 11:07:55 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5a2c00b01723f976032b8c13d17ce178350f9579

commit 5a2c00b01723f976032b8c13d17ce178350f9579
Author:     Ganael LAPLANCHE <martymac@FreeBSD.org>
AuthorDate: 2025-01-07 11:04:45 +0000
Commit:     Ganael LAPLANCHE <martymac@FreeBSD.org>
CommitDate: 2025-01-07 11:06:50 +0000

    games/trackballs: Fix build for sdl2_ttf upgrade

    PR:     283868
    Reported by:    diizzy

 games/trackballs/files/patch-src-glHelp.h (new) | 12 ++++++++++++
 1 file changed, 12 insertions(+)
Comment 2 Ganael LAPLANCHE freebsd_committer freebsd_triage 2025-01-07 11:08:34 UTC
Hello Daniel,

Thanks a lot for your report!

This is related to the following change upstream: https://github.com/libsdl-org/SDL_ttf/commit/22347419ee08e49d77411c680f15e314ef870ab7.

I have patched the port so it will build with the upgrade.

Cheers,

Ganael.
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2025-01-07 17:58:45 UTC
Thanks! :-)