* [Buildroot] [PATCH 1/1] package/sdl2: fix build with gcc6
@ 2016-12-25 18:49 Bernd Kuhls
2016-12-26 15:30 ` Romain Naour
2016-12-27 16:59 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Bernd Kuhls @ 2016-12-25 18:49 UTC (permalink / raw)
To: buildroot
Fixes
http://autobuild.buildroot.net/results/b99/b997c2b6307deb48a42e9b317715a00b65f90149/
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
package/sdl2/0002-gcc6.patch | 64 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 64 insertions(+)
create mode 100644 package/sdl2/0002-gcc6.patch
diff --git a/package/sdl2/0002-gcc6.patch b/package/sdl2/0002-gcc6.patch
new file mode 100644
index 000000000..6b5e901df
--- /dev/null
+++ b/package/sdl2/0002-gcc6.patch
@@ -0,0 +1,64 @@
+
+# HG changeset patch
+# User Sam Lantinga <slouken@libsdl.org>
+# Date 1479201270 28800
+# Node ID ea44906e19b837f4d5b309525ca79ed9d00b1897
+# Parent 6b2307dbec54f0bf4d5d8abf86241e29f3a03562
+Fixed bug 3490 - Build failure with --enable-video-directfb
+
+felix
+
+Building SDL 2.0.5, or even the Mercurial snapshot (r10608) with GCC 6.2.1 and --enable-video-directfb generates a number of compiler diagnostics and fails.
+
+Downloaded from upstream repo
+https://hg.libsdl.org/SDL/rev/ea44906e19b8
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -r 6b2307dbec54 -r ea44906e19b8 src/video/directfb/SDL_DirectFB_render.c
+--- a/src/video/directfb/SDL_DirectFB_render.c Tue Nov 15 01:12:27 2016 -0800
++++ b/src/video/directfb/SDL_DirectFB_render.c Tue Nov 15 01:14:30 2016 -0800
+@@ -1273,7 +1273,7 @@
+ Uint32 format, void * pixels, int pitch)
+ {
+ Uint32 sdl_format;
+- void * laypixels;
++ unsigned char* laypixels;
+ int laypitch;
+ DFBSurfacePixelFormat dfb_format;
+ DirectFB_RenderData *data = (DirectFB_RenderData *) renderer->driverdata;
+@@ -1303,7 +1303,7 @@
+ SDL_Window *window = renderer->window;
+ SDL_DFB_WINDOWDATA(window);
+ Uint32 sdl_format;
+- void * laypixels;
++ unsigned char* laypixels;
+ int laypitch;
+ DFBSurfacePixelFormat dfb_format;
+
+diff -r 6b2307dbec54 -r ea44906e19b8 src/video/directfb/SDL_DirectFB_shape.c
+--- a/src/video/directfb/SDL_DirectFB_shape.c Tue Nov 15 01:12:27 2016 -0800
++++ b/src/video/directfb/SDL_DirectFB_shape.c Tue Nov 15 01:14:30 2016 -0800
+@@ -37,17 +37,19 @@
+ SDL_WindowShaper*
+ DirectFB_CreateShaper(SDL_Window* window) {
+ SDL_WindowShaper* result = NULL;
++ SDL_ShapeData* data;
++ int resized_properly;
+
+ result = malloc(sizeof(SDL_WindowShaper));
+ result->window = window;
+ result->mode.mode = ShapeModeDefault;
+ result->mode.parameters.binarizationCutoff = 1;
+ result->userx = result->usery = 0;
+- SDL_ShapeData* data = SDL_malloc(sizeof(SDL_ShapeData));
++ data = SDL_malloc(sizeof(SDL_ShapeData));
+ result->driverdata = data;
+ data->surface = NULL;
+ window->shaper = result;
+- int resized_properly = DirectFB_ResizeWindowShape(window);
++ resized_properly = DirectFB_ResizeWindowShape(window);
+ SDL_assert(resized_properly == 0);
+
+ return result;
+
--
2.11.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/sdl2: fix build with gcc6
2016-12-25 18:49 [Buildroot] [PATCH 1/1] package/sdl2: fix build with gcc6 Bernd Kuhls
@ 2016-12-26 15:30 ` Romain Naour
2016-12-27 16:59 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Romain Naour @ 2016-12-26 15:30 UTC (permalink / raw)
To: buildroot
Hi Bernd,
Le 25/12/2016 ? 19:49, Bernd Kuhls a ?crit :
> Fixes
> http://autobuild.buildroot.net/results/b99/b997c2b6307deb48a42e9b317715a00b65f90149/
Tested-by: Romain Naour <romain.naour@gmail.com>
[Build tested]
Best regards,
Romain
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/sdl2/0002-gcc6.patch | 64 ++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 64 insertions(+)
> create mode 100644 package/sdl2/0002-gcc6.patch
>
> diff --git a/package/sdl2/0002-gcc6.patch b/package/sdl2/0002-gcc6.patch
> new file mode 100644
> index 000000000..6b5e901df
> --- /dev/null
> +++ b/package/sdl2/0002-gcc6.patch
> @@ -0,0 +1,64 @@
> +
> +# HG changeset patch
> +# User Sam Lantinga <slouken@libsdl.org>
> +# Date 1479201270 28800
> +# Node ID ea44906e19b837f4d5b309525ca79ed9d00b1897
> +# Parent 6b2307dbec54f0bf4d5d8abf86241e29f3a03562
> +Fixed bug 3490 - Build failure with --enable-video-directfb
> +
> +felix
> +
> +Building SDL 2.0.5, or even the Mercurial snapshot (r10608) with GCC 6.2.1 and --enable-video-directfb generates a number of compiler diagnostics and fails.
> +
> +Downloaded from upstream repo
> +https://hg.libsdl.org/SDL/rev/ea44906e19b8
> +
> +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> +
> +diff -r 6b2307dbec54 -r ea44906e19b8 src/video/directfb/SDL_DirectFB_render.c
> +--- a/src/video/directfb/SDL_DirectFB_render.c Tue Nov 15 01:12:27 2016 -0800
> ++++ b/src/video/directfb/SDL_DirectFB_render.c Tue Nov 15 01:14:30 2016 -0800
> +@@ -1273,7 +1273,7 @@
> + Uint32 format, void * pixels, int pitch)
> + {
> + Uint32 sdl_format;
> +- void * laypixels;
> ++ unsigned char* laypixels;
> + int laypitch;
> + DFBSurfacePixelFormat dfb_format;
> + DirectFB_RenderData *data = (DirectFB_RenderData *) renderer->driverdata;
> +@@ -1303,7 +1303,7 @@
> + SDL_Window *window = renderer->window;
> + SDL_DFB_WINDOWDATA(window);
> + Uint32 sdl_format;
> +- void * laypixels;
> ++ unsigned char* laypixels;
> + int laypitch;
> + DFBSurfacePixelFormat dfb_format;
> +
> +diff -r 6b2307dbec54 -r ea44906e19b8 src/video/directfb/SDL_DirectFB_shape.c
> +--- a/src/video/directfb/SDL_DirectFB_shape.c Tue Nov 15 01:12:27 2016 -0800
> ++++ b/src/video/directfb/SDL_DirectFB_shape.c Tue Nov 15 01:14:30 2016 -0800
> +@@ -37,17 +37,19 @@
> + SDL_WindowShaper*
> + DirectFB_CreateShaper(SDL_Window* window) {
> + SDL_WindowShaper* result = NULL;
> ++ SDL_ShapeData* data;
> ++ int resized_properly;
> +
> + result = malloc(sizeof(SDL_WindowShaper));
> + result->window = window;
> + result->mode.mode = ShapeModeDefault;
> + result->mode.parameters.binarizationCutoff = 1;
> + result->userx = result->usery = 0;
> +- SDL_ShapeData* data = SDL_malloc(sizeof(SDL_ShapeData));
> ++ data = SDL_malloc(sizeof(SDL_ShapeData));
> + result->driverdata = data;
> + data->surface = NULL;
> + window->shaper = result;
> +- int resized_properly = DirectFB_ResizeWindowShape(window);
> ++ resized_properly = DirectFB_ResizeWindowShape(window);
> + SDL_assert(resized_properly == 0);
> +
> + return result;
> +
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH 1/1] package/sdl2: fix build with gcc6
2016-12-25 18:49 [Buildroot] [PATCH 1/1] package/sdl2: fix build with gcc6 Bernd Kuhls
2016-12-26 15:30 ` Romain Naour
@ 2016-12-27 16:59 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2016-12-27 16:59 UTC (permalink / raw)
To: buildroot
Hello,
On Sun, 25 Dec 2016 19:49:52 +0100, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/b99/b997c2b6307deb48a42e9b317715a00b65f90149/
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> package/sdl2/0002-gcc6.patch | 64 ++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 64 insertions(+)
> create mode 100644 package/sdl2/0002-gcc6.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-12-27 16:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-25 18:49 [Buildroot] [PATCH 1/1] package/sdl2: fix build with gcc6 Bernd Kuhls
2016-12-26 15:30 ` Romain Naour
2016-12-27 16:59 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox