Bug 253850 - games/supertuxkart: fix build with latest SDL2
Summary: games/supertuxkart: fix build with latest SDL2
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: Jan Beich
URL:
Keywords: buildisok, patch
Depends on:
Blocks: 252371
  Show dependency treegraph
 
Reported: 2021-02-25 17:20 UTC by Val Packett
Modified: 2021-09-19 12:21 UTC (History)
2 users (show)

See Also:
jbeich: maintainer-feedback-


Attachments
stk-sdl.patch (2.60 KB, patch)
2021-02-25 17:20 UTC, Val Packett
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Val Packett 2021-02-25 17:20:19 UTC
Created attachment 222828 [details]
stk-sdl.patch

SDL2 update is prepared in bug 252371.

Ahead of that, import the build fix from upstream repo like other distributions did, e.g. https://bugs.gentoo.org/761814
Comment 1 Automation User 2021-03-14 01:04:56 UTC
Build and package info is available at https://gitlab.com/swills/freebsd-ports/pipelines/270063854
Comment 2 Val Packett 2021-04-26 11:19:31 UTC
ping
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-09-19 12:20:52 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=4016f76db3a9e41aa48b932993a254393ae1f0e4

commit 4016f76db3a9e41aa48b932993a254393ae1f0e4
Author:     Greg V <greg@unrelenting.technology>
AuthorDate: 2021-02-25 17:20:19 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-09-19 12:18:47 +0000

    games/supertuxkart: unbreak build with sdl2 >= 2.0.14

    src/input/gamepad_config.cpp:35:1: error: static_assert failed due to requirement 'SDL_CONTROLLER_BUTTON_MAX - 1 == SDL_CONTROLLER_BUTTON_DPAD_RIGHT' "non continous name"
    static_assert(SDL_CONTROLLER_BUTTON_MAX - 1 == SDL_CONTROLLER_BUTTON_DPAD_RIGHT, "non continous name");
    ^             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    PR:             253850
    Approved by:    maintainer timeout (7 months)

 games/supertuxkart/Makefile | 5 ++++-
 games/supertuxkart/distinfo | 2 ++
 2 files changed, 6 insertions(+), 1 deletion(-)