public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Yaakov Selkowitz <yselkowi@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/jumpnbump] rawhide: Fix flatpak build
Date: Mon, 02 Nov 2026 19:57:38 GMT	[thread overview]
Message-ID: <179364945897.1.1105492944761080291.rpms-jumpnbump-30a266a82708@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/jumpnbump
            Branch : rawhide
            Commit : 30a266a8270848c577bfcb3cbfdf936066d2cd1d
            Author : Yaakov Selkowitz <yselkowi@redhat.com>
            Date   : 2026-10-20T20:59:57-04:00
            Stats  : +40/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/jumpnbump/c/30a266a8270848c577bfcb3cbfdf936066d2cd1d?branch=rawhide

            Log:
            Fix flatpak build

Like the FD.o 26.08 runtime, the F45 flatpak runtime does not include any
auxiliary SDL2_* libraries, so it cannot be assumed that they are in the
same prefix as SDL2(-compat) itself.

https://gitlab.com/LibreGames/jumpnbump/-/merge_requests/46

---
diff --git a/46.patch b/46.patch
new file mode 100644
index 0000000..7b06605
--- /dev/null
+++ b/46.patch
@@ -0,0 +1,38 @@
+From 8c25023265f2bfb3507d43938c7a6568939ece60 Mon Sep 17 00:00:00 2001
+From: Yaakov Selkowitz <yselkowi@redhat.com>
+Date: Tue, 20 Oct 2026 20:56:14 -0400
+Subject: [PATCH] Use pkgconfig to find all SDL2 libraries
+
+We cannot assume that SDL2_mixer/SDL2_net are in the same prefix as
+SDL2, e.g. the Freedesktop.org flatpak runtimes as of 26.08.
+---
+ Makefile | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 05923d8..2baf1e0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,7 +9,7 @@ GAMEDATADIR ?= $(DATADIR)
+ EXE ?=
+ 
+ CFLAGS ?= -Wall -O2 -ffast-math -funroll-loops -fno-common
+-SDL_CFLAGS = `sdl2-config --cflags`
++SDL_CFLAGS = `pkg-config --cflags SDL2_mixer SDL2_net sdl2`
+ DEFINES = -Dstricmp=strcasecmp -Dstrnicmp=strncasecmp -DNDEBUG -DUSE_SDL -DUSE_NET -DZLIB_SUPPORT -DBZLIB_SUPPORT
+ ifeq ($(SYSINSTALL), 1)
+ DEFINES += -DGAMEDATADIR="\"$(GAMEDATADIR)\""
+@@ -21,8 +21,8 @@ export DEFINES
+ export INCLUDES
+ 
+ LDFLAGS ?=
+-SDL_LIBS = `sdl2-config --libs`
+-LIBS = $(SDL_LIBS) -lSDL2_mixer -lSDL2_net -lbz2 -lz -lm
++SDL_LIBS = `pkg-config --libs SDL2_mixer SDL2_net sdl2`
++LIBS = $(SDL_LIBS) -lbz2 -lz -lm
+ 
+ TARGET = jumpnbump$(EXE)
+ SDL_TARGET = sdl.a
+-- 
+GitLab
+

diff --git a/jumpnbump.spec b/jumpnbump.spec
index bcd4069..583e648 100644
--- a/jumpnbump.spec
+++ b/jumpnbump.spec
@@ -7,6 +7,8 @@ Summary:        Cute multiplayer platform game with bunnies
 License:        GPL-2.0-or-later
 URL:            https://gitlab.com/LibreGames/jumpnbump
 Source0:        https://gitlab.com/LibreGames/jumpnbump/-/archive/%{version}/%{name}-%{version}.tar.gz
+# Use pkgconfig to find all SDL2 libraries
+Patch0:         https://gitlab.com/LibreGames/jumpnbump/-/merge_requests/46.patch
 
 BuildRequires:  gcc
 BuildRequires:  pkgconfig(bzip2)

                 reply	other threads:[~2026-11-02 19:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179364945897.1.1105492944761080291.rpms-jumpnbump-30a266a82708@fedoraproject.org \
    --to=yselkowi@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox