Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] SDL2: update to 2.28.0
@ 2023-06-29 21:26 tranzystorek-io
  2023-07-02  9:56 ` tranzystorek-io
  2023-07-02 10:42 ` [PR PATCH] [Closed]: " tranzystorek-io
  0 siblings, 2 replies; 3+ messages in thread
From: tranzystorek-io @ 2023-06-29 21:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1248 bytes --]

There is a new pull request by tranzystorek-io against master on the void-packages repository

https://github.com/tranzystorek-io/void-packages sdl
https://github.com/void-linux/void-packages/pull/44730

SDL2: update to 2.28.0
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/44730.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sdl-44730.patch --]
[-- Type: text/x-diff, Size: 3215 bytes --]

From eaac39f26386e3bce38a9cf6599241f3b98c9379 Mon Sep 17 00:00:00 2001
From: Marcin Puc <tranzystorek.io@protonmail.com>
Date: Thu, 29 Jun 2023 22:54:14 +0200
Subject: [PATCH] SDL2: update to 2.28.0

---
 .../SDL2/patches/fix-libdecor-api-usage.patch | 36 +++++++++++++++++++
 srcpkgs/SDL2/template                         |  4 +--
 2 files changed, 38 insertions(+), 2 deletions(-)
 create mode 100644 srcpkgs/SDL2/patches/fix-libdecor-api-usage.patch

diff --git a/srcpkgs/SDL2/patches/fix-libdecor-api-usage.patch b/srcpkgs/SDL2/patches/fix-libdecor-api-usage.patch
new file mode 100644
index 000000000000..b59ad6907512
--- /dev/null
+++ b/srcpkgs/SDL2/patches/fix-libdecor-api-usage.patch
@@ -0,0 +1,36 @@
+From 5d9013beb9a9d443441de12935720f41c231d061 Mon Sep 17 00:00:00 2001
+From: Anonymous Maarten <anonymous.maarten@gmail.com>
+Date: Fri, 26 May 2023 23:00:56 +0200
+Subject: [PATCH] wayland: don't use libdecor_frame_get_* functions when header
+ doesn't have it
+
+and we're statically linking to the library.
+This fixes building SDL with -DSDL_WAYLAND_SHARED=OFF
+
+(cherry picked from commit 5b5b67df203e9f8391e7e53aa5de54abf14c482e)
+(cherry picked from commit e6f635ca172027f57542b715787ac5b50f3f6d33)
+---
+ src/video/wayland/SDL_waylandsym.h | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/src/video/wayland/SDL_waylandsym.h b/src/video/wayland/SDL_waylandsym.h
+index 4d6cdc95474a..c59bb30c9c81 100644
+--- a/src/video/wayland/SDL_waylandsym.h
++++ b/src/video/wayland/SDL_waylandsym.h
+@@ -217,6 +217,7 @@ SDL_WAYLAND_SYM(bool, libdecor_configuration_get_window_state, (struct libdecor_
+                                                                 enum libdecor_window_state *))
+ SDL_WAYLAND_SYM(int, libdecor_dispatch, (struct libdecor *, int))
+ 
++#if defined(SDL_VIDEO_DRIVER_WAYLAND_DYNAMIC_LIBDECOR) || defined(SDL_HAVE_LIBDECOR_GET_MIN_MAX)
+ /* Only found in libdecor 0.1.1 or higher, so failure to load them is not fatal. */
+ SDL_WAYLAND_SYM_OPT(void, libdecor_frame_get_min_content_size, (struct libdecor_frame *,\
+                                                             int *,\
+@@ -226,6 +227,8 @@ SDL_WAYLAND_SYM_OPT(void, libdecor_frame_get_max_content_size, (struct libdecor_
+                                                             int *))
+ #endif
+ 
++#endif
++
+ #undef SDL_WAYLAND_MODULE
+ #undef SDL_WAYLAND_SYM
+ #undef SDL_WAYLAND_SYM_OPT
diff --git a/srcpkgs/SDL2/template b/srcpkgs/SDL2/template
index d8fb73d1dd1a..007bee85ca23 100644
--- a/srcpkgs/SDL2/template
+++ b/srcpkgs/SDL2/template
@@ -1,6 +1,6 @@
 # Template file for 'SDL2'
 pkgname=SDL2
-version=2.26.5
+version=2.28.0
 revision=1
 build_style=cmake
 configure_args="-DSDL_ALSA=ON -DSDL_ESD=OFF -DSDL_RPATH=OFF
@@ -15,7 +15,7 @@ license="Zlib"
 homepage="https://www.libsdl.org/"
 changelog="https://raw.githubusercontent.com/libsdl-org/SDL/SDL2/WhatsNew.txt"
 distfiles="https://www.libsdl.org/release/SDL2-${version}.tar.gz"
-checksum=ad8fea3da1be64c83c45b1d363a6b4ba8fd60f5bde3b23ec73855709ec5eabf7
+checksum=d215ae4541e69d628953711496cd7b0e8b8d5c8d811d5b0f98fdc7fd1422998a
 
 # Package build options
 build_options="gles opengl pulseaudio pipewire sndio vulkan wayland x11"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SDL2: update to 2.28.0
  2023-06-29 21:26 [PR PATCH] SDL2: update to 2.28.0 tranzystorek-io
@ 2023-07-02  9:56 ` tranzystorek-io
  2023-07-02 10:42 ` [PR PATCH] [Closed]: " tranzystorek-io
  1 sibling, 0 replies; 3+ messages in thread
From: tranzystorek-io @ 2023-07-02  9:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 171 bytes --]

New comment by tranzystorek-io on void-packages repository

https://github.com/void-linux/void-packages/pull/44730#issuecomment-1616559487

Comment:
Superseded by #44782 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Closed]: SDL2: update to 2.28.0
  2023-06-29 21:26 [PR PATCH] SDL2: update to 2.28.0 tranzystorek-io
  2023-07-02  9:56 ` tranzystorek-io
@ 2023-07-02 10:42 ` tranzystorek-io
  1 sibling, 0 replies; 3+ messages in thread
From: tranzystorek-io @ 2023-07-02 10:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]

There's a closed pull request on the void-packages repository

SDL2: update to 2.28.0
https://github.com/void-linux/void-packages/pull/44730

Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-02 10:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-29 21:26 [PR PATCH] SDL2: update to 2.28.0 tranzystorek-io
2023-07-02  9:56 ` tranzystorek-io
2023-07-02 10:42 ` [PR PATCH] [Closed]: " tranzystorek-io

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).