Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/sdl2: fix build error on powerpc/powerpc64
@ 2016-12-25 18:13 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:13 UTC (permalink / raw)
  To: buildroot

Fixes
http://autobuild.buildroot.net/results/ffd/ffd689f1ba34ad43f52c38fe37da393a9d8b9d5e/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/sdl2/0001-ppc.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 package/sdl2/0001-ppc.patch

diff --git a/package/sdl2/0001-ppc.patch b/package/sdl2/0001-ppc.patch
new file mode 100644
index 000000000..016110306
--- /dev/null
+++ b/package/sdl2/0001-ppc.patch
@@ -0,0 +1,47 @@
+Fixed bug 3466 - Can't build 2.0.5 on ppc64
+
+/home/fedora/SDL2-2.0.5/src/video/SDL_blit_N.c: In function 'calc_swizzle32':
+/home/fedora/SDL2-2.0.5/src/video/SDL_blit_N.c:127:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
+const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
+^ 
+
+Downloaded from upstream repo
+https://hg.libsdl.org/SDL/rev/5184186d4366
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -r 71d4148e32de -r 5184186d4366 src/video/SDL_blit_N.c
+--- a/src/video/SDL_blit_N.c	Wed Oct 19 21:22:42 2016 -0700
++++ b/src/video/SDL_blit_N.c	Sat Oct 22 11:01:55 2016 -0700
+@@ -118,12 +118,6 @@
+         16, 8, 0, 24,
+         0, NULL
+     };
+-    if (!srcfmt) {
+-        srcfmt = &default_pixel_format;
+-    }
+-    if (!dstfmt) {
+-        dstfmt = &default_pixel_format;
+-    }
+     const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
+                                                        0x04, 0x04, 0x04, 0x04,
+                                                        0x08, 0x08, 0x08, 0x08,
+@@ -136,6 +130,14 @@
+     Uint32 gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift);
+     Uint32 bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift);
+     Uint32 amask;
++
++    if (!srcfmt) {
++        srcfmt = &default_pixel_format;
++    }
++    if (!dstfmt) {
++        dstfmt = &default_pixel_format;
++    }
++
+     /* Use zero for alpha if either surface doesn't have alpha */
+     if (dstfmt->Amask) {
+         amask =
+
+
+
+
-- 
2.11.0

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

* [Buildroot] [PATCH 1/1] package/sdl2: fix build error on powerpc/powerpc64
  2016-12-25 18:13 [Buildroot] [PATCH 1/1] package/sdl2: fix build error on powerpc/powerpc64 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:13, Bernd Kuhls a ?crit :
> Fixes
> http://autobuild.buildroot.net/results/ffd/ffd689f1ba34ad43f52c38fe37da393a9d8b9d5e/

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/0001-ppc.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 47 insertions(+)
>  create mode 100644 package/sdl2/0001-ppc.patch
> 
> diff --git a/package/sdl2/0001-ppc.patch b/package/sdl2/0001-ppc.patch
> new file mode 100644
> index 000000000..016110306
> --- /dev/null
> +++ b/package/sdl2/0001-ppc.patch
> @@ -0,0 +1,47 @@
> +Fixed bug 3466 - Can't build 2.0.5 on ppc64
> +
> +/home/fedora/SDL2-2.0.5/src/video/SDL_blit_N.c: In function 'calc_swizzle32':
> +/home/fedora/SDL2-2.0.5/src/video/SDL_blit_N.c:127:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
> +const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
> +^ 
> +
> +Downloaded from upstream repo
> +https://hg.libsdl.org/SDL/rev/5184186d4366
> +
> +Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> +
> +diff -r 71d4148e32de -r 5184186d4366 src/video/SDL_blit_N.c
> +--- a/src/video/SDL_blit_N.c	Wed Oct 19 21:22:42 2016 -0700
> ++++ b/src/video/SDL_blit_N.c	Sat Oct 22 11:01:55 2016 -0700
> +@@ -118,12 +118,6 @@
> +         16, 8, 0, 24,
> +         0, NULL
> +     };
> +-    if (!srcfmt) {
> +-        srcfmt = &default_pixel_format;
> +-    }
> +-    if (!dstfmt) {
> +-        dstfmt = &default_pixel_format;
> +-    }
> +     const vector unsigned char plus = VECUINT8_LITERAL(0x00, 0x00, 0x00, 0x00,
> +                                                        0x04, 0x04, 0x04, 0x04,
> +                                                        0x08, 0x08, 0x08, 0x08,
> +@@ -136,6 +130,14 @@
> +     Uint32 gmask = RESHIFT(srcfmt->Gshift) << (dstfmt->Gshift);
> +     Uint32 bmask = RESHIFT(srcfmt->Bshift) << (dstfmt->Bshift);
> +     Uint32 amask;
> ++
> ++    if (!srcfmt) {
> ++        srcfmt = &default_pixel_format;
> ++    }
> ++    if (!dstfmt) {
> ++        dstfmt = &default_pixel_format;
> ++    }
> ++
> +     /* Use zero for alpha if either surface doesn't have alpha */
> +     if (dstfmt->Amask) {
> +         amask =
> +
> +
> +
> +
> 

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

* [Buildroot] [PATCH 1/1] package/sdl2: fix build error on powerpc/powerpc64
  2016-12-25 18:13 [Buildroot] [PATCH 1/1] package/sdl2: fix build error on powerpc/powerpc64 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:13:27 +0100, Bernd Kuhls wrote:
> Fixes
> http://autobuild.buildroot.net/results/ffd/ffd689f1ba34ad43f52c38fe37da393a9d8b9d5e/
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
>  package/sdl2/0001-ppc.patch | 47 +++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 47 insertions(+)
>  create mode 100644 package/sdl2/0001-ppc.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:13 [Buildroot] [PATCH 1/1] package/sdl2: fix build error on powerpc/powerpc64 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