package/sdl2: bump version to 2.0.14
PATCH 1/1 package/sdl2: bump version to 2.0.14
patch 0001: already applied upstream
patch 0002: adapt patch to 2.0.14
Signed-off-by Michael Fischer <[email protected]>
--- ...ctfb-SDL_DirectFB_render.c-fix-build.patch | 46 ------------------- ...o-kmsdrm-SDL_kmsdrmvideo.c-fix-build.patch | 34 +++++++------- package/sdl2/sdl2.hash | 4 +- package/sdl2/sdl2.mk | 2 +- 4 files changed, 20 insertions(+), 66 deletions(-) delete mode 100644 package/sdl2/0001-src-video-directfb-SDL_DirectFB_render.c-fix-build.patch
package/sdl2/0001-src-video-directfb-SDL_DirectFB_render.c-fix-build.patch deleted +0 -46
@@ -1,46 +0,0 @@ -From 7c6d466d98910a2896680351cc5cea1b7fb37ab9 Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Tue, 24 Mar 2020 13:33:40 +0100 -Subject: [PATCH] src/video/directfb/SDL_DirectFB_render.c: fix build - -Build with directfb is broken due to a spurious '}' and a missing 'E' -since version 2.0.12 and https://hg.libsdl.org/SDL/rev/2d5b5a5ccbfb: - -/home/buildroot/autobuild/run/instance-2/output-1/build/sdl2-2.0.12/src/video/directfb/SDL_DirectFB_render.c: In function 'SetBlendMode': -/home/buildroot/autobuild/run/instance-2/output-1/build/sdl2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:202:9: error: case label not within a switch statement - 202 | case SDL_BLENDMODE_MUL: - | ^~~~ - -/home/buildroot/autobuild/run/instance-2/output-1/build/sdl2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:205:67: error: 'DSBF_DSTCOLOR' undeclared (first use in this function); did you mean 'DSBF_DESTCOLOR'? - 205 | SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR)); - | ^~~~~~~~~~~~~ - -Fixes: - - http://autobuild.buildroot.org/results/83ccefee68c2800c0544e6f40fa8bc8ee6b67b77 - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Retrieved from: https://hg.libsdl.org/SDL/rev/769f80095217] ---- - src/video/directfb/SDL_DirectFB_render.c | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/src/video/directfb/SDL_DirectFB_render.c b/src/video/directfb/SDL_DirectFB_render.c -index 618009850..cc31fb8f4 100644 ---- a/src/video/directfb/SDL_DirectFB_render.c -+++ b/src/video/directfb/SDL_DirectFB_render.c -@@ -198,11 +198,10 @@ SetBlendMode(DirectFB_RenderData * data, int blendMode, - SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf, DSBF_SRCCOLOR)); - - break; -- } - case SDL_BLENDMODE_MUL: - data->blitFlags = DSBLIT_BLEND_ALPHACHANNEL; - data->drawFlags = DSDRAW_BLEND; -- SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR)); -+ SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DESTCOLOR)); - SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf, DSBF_INVSRCALPHA)); - - break; --- -2.25.1 -
package/sdl2/0002-src-video-kmsdrm-SDL_kmsdrmvideo.c-fix-build.patch +17 -17
@@ -15,25 +15,25 @@ Fixes: - http://autobuild.buildroot.org/results/fafd20a01591032662f9ca025fcea3478239cf3c Signed-off-by: Fabrice Fontaine <[email protected]> + [Upstream: https://hg.libsdl.org/SDL/rev/389ce8cfa2a3] ---- - src/video/kmsdrm/SDL_kmsdrmvideo.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c -index 216c45dab..459f96537 100644 ---- a/src/video/kmsdrm/SDL_kmsdrmvideo.c -+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c -@@ -391,7 +391,9 @@ KMSDRM_CreateSurfaces(_THIS, SDL_Window * window) - Uint32 height = dispdata->mode.vdisplay; - Uint32 surface_fmt = GBM_FORMAT_XRGB8888; - Uint32 surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING; + + +Fixes: + - Update patch to version 2.0.14 + +Signed-off-by: Michael Fischer <[email protected]> + +diff -purN a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c +--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c 2021-01-08 09:56:44.028217792 +0100 ++++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c 2021-01-08 09:55:52.295932111 +0100 +@@ -1407,7 +1407,9 @@ KMSDRM_CreateSurfaces(_THIS, SDL_Window + uint32_t surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING; + uint32_t width, height; + +#if SDL_VIDEO_OPENGL_EGL EGLContext egl_context; +#endif - if (!KMSDRM_gbm_device_is_format_supported(viddata->gbm, surface_fmt, surface_flags)) { - SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "GBM surface format not supported. Trying anyway."); --- -2.25.1 - + int ret = 0; +
package/sdl2/sdl2.hash +2 -2
@@ -1,4 +1,4 @@ -# Locally calculated after checking http://www.libsdl.org/release/SDL2-2.0.12.tar.gz.sig -sha256 349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863 SDL2-2.0.12.tar.gz +# Locally calculated after checking http://www.libsdl.org/release/SDL2-2.0.14.tar.gz.sig +sha256 d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc SDL2-2.0.14.tar.gz # Locally calculated sha256 ae4df3759a726538607b84c00ab8f8a5567d9f38ad5397486eb9b5c5f626caef COPYING.txt
package/sdl2/sdl2.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -SDL2_VERSION = 2.0.12 +SDL2_VERSION = 2.0.14 SDL2_SOURCE = SDL2-$(SDL2_VERSION).tar.gz SDL2_SITE = http://www.libsdl.org/release SDL2_LICENSE = Zlib
Signature · 1 line
2.29.2
Yann E. MORIN
AppliedPATCH 1/1 package/sdl2: bump version to 2.0.14
Michael, All,
On 2021-01-08 11:12 +0100, Michael Fischer spake thusly:
Quoted 4 lines
patch 0001: already applied upstream
patch 0002: adapt patch to 2.0.14Signed-off-by Michael Fischer <[email protected]>
Applied to master, with the following changes:
- renumber remaining patch
- fix space-typo in hash file
Thanks!
Regards,
Yann E. MORIN.
Quoted 138 lines
--- ...ctfb-SDL_DirectFB_render.c-fix-build.patch | 46 ------------------- ...o-kmsdrm-SDL_kmsdrmvideo.c-fix-build.patch | 34 +++++++------- package/sdl2/sdl2.hash | 4 +- package/sdl2/sdl2.mk | 2 +- 4 files changed, 20 insertions(+), 66 deletions(-) delete mode 100644 package/sdl2/0001-src-video-directfb-SDL_DirectFB_render.c-fix-build.patchpackage/sdl2/0001-src-video-directfb-SDL_DirectFB_render.c-fix-build.patch deleted +0
-46@@ -1,46 +0,0 @@ -From 7c6d466d98910a2896680351cc5cea1b7fb37ab9 Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine <[email protected]> -Date: Tue, 24 Mar 2020 13:33:40 +0100 -Subject: [PATCH] src/video/directfb/SDL_DirectFB_render.c: fix build - -Build with directfb is broken due to a spurious '}' and a missing 'E' -since version 2.0.12 and https://hg.libsdl.org/SDL/rev/2d5b5a5ccbfb: - -/home/buildroot/autobuild/run/instance-2/output-1/build/sdl2-2.0.12/src/video/directfb/SDL_DirectFB_render.c: In function 'SetBlendMode': -/home/buildroot/autobuild/run/instance-2/output-1/build/sdl2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:202:9: error: case label not within a switch statement - 202 | case SDL_BLENDMODE_MUL: - | ^~~~ - -/home/buildroot/autobuild/run/instance-2/output-1/build/sdl2-2.0.12/src/video/directfb/SDL_DirectFB_render.c:205:67: error: 'DSBF_DSTCOLOR' undeclared (first use in this function); did you mean 'DSBF_DESTCOLOR'? - 205 | SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR)); - | ^~~~~~~~~~~~~ - -Fixes: - - http://autobuild.buildroot.org/results/83ccefee68c2800c0544e6f40fa8bc8ee6b67b77 - -Signed-off-by: Fabrice Fontaine <[email protected]> -[Retrieved from: https://hg.libsdl.org/SDL/rev/769f80095217] ---- - src/video/directfb/SDL_DirectFB_render.c | 3 +-- - 1 file changed, 1 insertion(+), 2 deletions(-) - -diff --git a/src/video/directfb/SDL_DirectFB_render.c b/src/video/directfb/SDL_DirectFB_render.c -index 618009850..cc31fb8f4 100644 ---- a/src/video/directfb/SDL_DirectFB_render.c -+++ b/src/video/directfb/SDL_DirectFB_render.c -@@ -198,11 +198,10 @@ SetBlendMode(DirectFB_RenderData * data, int blendMode, - SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf, DSBF_SRCCOLOR)); - - break; -- } - case SDL_BLENDMODE_MUL: - data->blitFlags = DSBLIT_BLEND_ALPHACHANNEL; - data->drawFlags = DSDRAW_BLEND; -- SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR)); -+ SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DESTCOLOR)); - SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf, DSBF_INVSRCALPHA)); - - break; --- -2.25.1 -package/sdl2/0002-src-video-kmsdrm-SDL_kmsdrmvideo.c-fix-build.patch +17
-17@@ -15,25 +15,25 @@ Fixes: - http://autobuild.buildroot.org/results/fafd20a01591032662f9ca025fcea3478239cf3c Signed-off-by: Fabrice Fontaine <[email protected]> + [Upstream: https://hg.libsdl.org/SDL/rev/389ce8cfa2a3] ---- - src/video/kmsdrm/SDL_kmsdrmvideo.c | 2 ++ - 1 file changed, 2 insertions(+) - -diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c -index 216c45dab..459f96537 100644 ---- a/src/video/kmsdrm/SDL_kmsdrmvideo.c -+++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c -@@ -391,7 +391,9 @@ KMSDRM_CreateSurfaces(_THIS, SDL_Window * window) - Uint32 height = dispdata->mode.vdisplay; - Uint32 surface_fmt = GBM_FORMAT_XRGB8888; - Uint32 surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING; + + +Fixes: + - Update patch to version 2.0.14 + +Signed-off-by: Michael Fischer <[email protected]> + +diff -purN a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c +--- a/src/video/kmsdrm/SDL_kmsdrmvideo.c 2021-01-08 09:56:44.028217792 +0100 ++++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c 2021-01-08 09:55:52.295932111 +0100 +@@ -1407,7 +1407,9 @@ KMSDRM_CreateSurfaces(_THIS, SDL_Window + uint32_t surface_flags = GBM_BO_USE_SCANOUT | GBM_BO_USE_RENDERING; + uint32_t width, height; + +#if SDL_VIDEO_OPENGL_EGL EGLContext egl_context; +#endif - if (!KMSDRM_gbm_device_is_format_supported(viddata->gbm, surface_fmt, surface_flags)) { - SDL_LogWarn(SDL_LOG_CATEGORY_VIDEO, "GBM surface format not supported. Trying anyway."); --- -2.25.1 - + int ret = 0; +package/sdl2/sdl2.hash +2
-2@@ -1,4 +1,4 @@ -# Locally calculated after checking http://www.libsdl.org/release/SDL2-2.0.12.tar.gz.sig -sha256 349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863 SDL2-2.0.12.tar.gz +# Locally calculated after checking http://www.libsdl.org/release/SDL2-2.0.14.tar.gz.sig +sha256 d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc SDL2-2.0.14.tar.gz # Locally calculated sha256 ae4df3759a726538607b84c00ab8f8a5567d9f38ad5397486eb9b5c5f626caef COPYING.txtpackage/sdl2/sdl2.mk +1
-1@@ -4,7 +4,7 @@ # ################################################################################ -SDL2_VERSION = 2.0.12 +SDL2_VERSION = 2.0.14 SDL2_SOURCE = SDL2-$(SDL2_VERSION).tar.gz SDL2_SITE = http://www.libsdl.org/release SDL2_LICENSE = ZlibSignature · 6 lines
2.29.2 _______________________________________________ buildroot mailing list buildroot at busybox.net http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'