Skip to contentSkip to conversation

libsdl2: upgrade to 2.0.14

PATCH In review Yann Dirson 4 participants 9 messages Feb 1, 2021 – Feb 4, 2021 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libsdl2: upgrade to 2.0.14

From: Yann Dirson <[email protected]>

This version does not support tslib any more, as can be seen by the failed AUH run.

---
 .../libsdl2/directfb-renderfillrect-fix.patch | 33 -------------
 ...ectfb-spurious-curly-brace-missing-e.patch | 49 -------------------
 .../{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb}  |  6 +--
 3 files changed, 1 insertion(+), 87 deletions(-)
 delete mode 100644 meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch
 delete mode 100644 meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch
 rename meta/recipes-graphics/libsdl2/{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb} (91%)
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -33
deleted file mode 100644
index 83d4f4b1ec..0000000000
@@ -1,33 +0,0 @@
-# HG changeset patch
-# User Sam Lantinga <[email protected]>
-# Date 1590793369 25200
-# Node ID a90089f75990e8b07a1dcf931c5f8a580ae343bf
-# Parent  a9b4bd264f3cbedc4f3287b3ec6b32311370ba85
-Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
-
-Lacky
-
-It looks like refactoring of SDL2 internal API has broken SDL_RenderFillRect for DirectFB. In new version function SDL_RenderFillRect returns 0, but rectangle is not visible.
-
-Replacing "count" with "len" in the argument list for SDL_memcpy in DirectFB_QueueFillRects fixes problem.
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id a90089f75990.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-diff -r a9b4bd264f3c -r a90089f75990 src/video/directfb/SDL_DirectFB_render.c
---- a/src/video/directfb/SDL_DirectFB_render.c	Thu May 21 00:06:09 2020 -0400
-+++ b/src/video/directfb/SDL_DirectFB_render.c	Fri May 29 16:02:49 2020 -0700
-@@ -626,7 +626,7 @@
-     }
-
-     cmd->data.draw.count = count;
--    SDL_memcpy(verts, rects, count);
-+    SDL_memcpy(verts, rects, len);
-     return 0;
- }
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -49

49 lines not on this page · raw message

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -5
similarity index 91%
rename from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
rename to meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb
index 5fa99821c4..872592fdae 100644
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"
-SRC_URI[sha256sum] = "349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"
+SRC_URI[sha256sum] = "d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"
 
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       = "--enable-jack,--disable-jack,jack"
 PACKAGECONFIG[kmsdrm]     = "--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"
 PACKAGECONFIG[opengl]     = "--enable-video-opengl,--disable-video-opengl,virtual/libgl"
 PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
-PACKAGECONFIG[tslib]      = "--enable-input-tslib,--disable-input-tslib,tslib"
 PACKAGECONFIG[wayland]    = "--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"
 PACKAGECONFIG[x11]        = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"
 
Signature · 1 line
2.29.2
#1 lore raw

Hi,

tslib support is often relevant for embedded projects with simple (resistive) touch screens. Would it make sense to keep the 2.0.12 recipe and offer both in parallel?

Cheers,
Mark

Quoted 148 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This version does not support tslib any more, as can be seen by the failed AUH run.

---
 .../libsdl2/directfb-renderfillrect-fix.patch | 33 -------------
 ...ectfb-spurious-curly-brace-missing-e.patch | 49 -------------------
 .../{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb}  |  6 +--
 3 files changed, 1 insertion(+), 87 deletions(-)
 delete mode 100644 meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch
 delete mode 100644 meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch
 rename meta/recipes-graphics/libsdl2/{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb} (91%)
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -33
deleted file mode 100644
index 83d4f4b1ec..0000000000
@@ -1,33 +0,0 @@
-# HG changeset patch
-# User Sam Lantinga <[email protected]>
-# Date 1590793369 25200
-# Node ID a90089f75990e8b07a1dcf931c5f8a580ae343bf
-# Parent  a9b4bd264f3cbedc4f3287b3ec6b32311370ba85
-Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
-
-Lacky
-
-It looks like refactoring of SDL2 internal API has broken SDL_RenderFillRect for DirectFB. In new version function SDL_RenderFillRect returns 0, but rectangle is not visible.
-
-Replacing "count" with "len" in the argument list for SDL_memcpy in DirectFB_QueueFillRects fixes problem.
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id a90089f75990.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-diff -r a9b4bd264f3c -r a90089f75990 src/video/directfb/SDL_DirectFB_render.c
---- a/src/video/directfb/SDL_DirectFB_render.c Thu May 21 00:06:09 2020 -0400
-+++ b/src/video/directfb/SDL_DirectFB_render.c Fri May 29 16:02:49 2020 -0700
-@@ -626,7 +626,7 @@
-     }
-
-     cmd->data.draw.count = count;
--    SDL_memcpy(verts, rects, count);
-+    SDL_memcpy(verts, rects, len);
-     return 0;
- }
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -49
deleted file mode 100644
index aa351a89ba..0000000000
@@ -1,49 +0,0 @@
-# HG changeset patch
-# User Fabrice Fontaine <[email protected]>
-# Date 1585069551 25200
-# Node ID 769f800952179633ec6c3e6bc1bc1d40e401750a
-# Parent  63387e8920f58f608288f247824ec5f4c286691f
-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]>
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id 769f80095217.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-
-diff -r 63387e8920f5 -r 769f80095217 src/video/directfb/SDL_DirectFB_render.c
---- a/src/video/directfb/SDL_DirectFB_render.c Mon Mar 23 14:10:25 2020 -0700
-+++ b/src/video/directfb/SDL_DirectFB_render.c Tue Mar 24 10:05:51 2020 -0700
-@@ -198,11 +198,10 @@
-             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;
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -6
similarity index 91%
rename from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
rename to meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb
index 5fa99821c4..872592fdae 100644
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"
-SRC_URI[sha256sum] = "349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"
+SRC_URI[sha256sum] = "d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"
 
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       = "--enable-jack,--disable-jack,jack"
 PACKAGECONFIG[kmsdrm]     = "--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"
 PACKAGECONFIG[opengl]     = "--enable-video-opengl,--disable-video-opengl,virtual/libgl"
 PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
-PACKAGECONFIG[tslib]      = "--enable-input-tslib,--disable-input-tslib,tslib"
 PACKAGECONFIG[wayland]    = "--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"
 PACKAGECONFIG[x11]        = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"
 
--

2.29.2

#2 lore raw
Quoted 6 lines · Mark Jonas

Hi,

tslib support is often relevant for embedded projects with simple (resistive) touch screens. Would it make sense to keep the 2.0.12 recipe and offer both in parallel?

What do others think ?

We could use a libsdl2.inc with the common stuff, of just keep the current 2.0.12
version as is. Maybe even move the 2.0.12 recipe to meta-oe, where tslib seems
to live nowadays, although that could make the recipe harder to find for those who
need it.

I'd suggest if that support is still needed, to approach libsdl upstream with a patch
restoring the tslib support ? Maybe we could even carry such a patch in yocto until
upstream does something ? That could be better than just carying an old version.

Quoted 198 lines

Cheers,
Mark

Quoted 6 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This version does not support tslib any more, as can be seen by the failed AUH run.

Quoted 8 lines
---
 .../libsdl2/directfb-renderfillrect-fix.patch | 33 -------------
 ...ectfb-spurious-curly-brace-missing-e.patch | 49 -------------------
 .../{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb}  |  6 +--
 3 files changed, 1 insertion(+), 87 deletions(-)
 delete mode 100644

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 1 line
 delete mode 100644

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 1 line
 rename meta/recipes-graphics/libsdl2/{libsdl2_2.0.12.bb =>

libsdl2_2.0.14.bb} (91%)

Quoted 2 lines

diff --git

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch b/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 3 lines

deleted file mode 100644
index 83d4f4b1ec..0000000000
---

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch line 10

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -10
@@ -1,33 +0,0 @@
-# HG changeset patch
-# User Sam Lantinga <[email protected]>
-# Date 1590793369 25200
-# Node ID a90089f75990e8b07a1dcf931c5f8a580ae343bf
-# Parent  a9b4bd264f3cbedc4f3287b3ec6b32311370ba85
-Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
-
-Lacky
-
-It looks like refactoring of SDL2 internal API has broken

SDL_RenderFillRect for DirectFB. In new version function SDL_RenderFillRect returns 0, but rectangle is not visible.

Review line 12

Quoted 2 lines
(quoted diff) +0 -2
-
-Replacing "count" with "len" in the argument list for SDL_memcpy in

DirectFB_QueueFillRects fixes problem.

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 11 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -11
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id a90089f75990.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-diff -r a9b4bd264f3c -r a90089f75990

src/video/directfb/SDL_DirectFB_render.c

Review line 24

Quoted 1 line
(quoted diff) +0 -1
---- a/src/video/directfb/SDL_DirectFB_render.c Thu May 21 00:06:09 2020

-0400

Review line 25

Quoted 1 line
(quoted diff) +0 -1
-+++ b/src/video/directfb/SDL_DirectFB_render.c Fri May 29 16:02:49 2020

-0700

Quoted 9 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -8
-@@ -626,7 +626,7 @@
-     }
-
-     cmd->data.draw.count = count;
--    SDL_memcpy(verts, rects, count);
-+    SDL_memcpy(verts, rects, len);
-     return 0;
- }

diff --git

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch b/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 3 lines

deleted file mode 100644
index aa351a89ba..0000000000
---

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch line 9

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -9
@@ -1,49 +0,0 @@
-# HG changeset patch
-# User Fabrice Fontaine <[email protected]>
-# Date 1585069551 25200
-# Node ID 769f800952179633ec6c3e6bc1bc1d40e401750a
-# Parent  63387e8920f58f608288f247824ec5f4c286691f
-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':

Quoted 1 line

-/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

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch line 14

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -3
-  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'?

Quoted 1 line

- 205 |

SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR));

Quoted 1 line

- |

^~~~~~~~~~~~~

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 3 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -3
-
-Fixes:
- -

http://autobuild.buildroot.org/results/83ccefee68c2800c0544e6f40fa8bc8ee6b67b77

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -4
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-
---

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 10 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -10
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id 769f80095217.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-
-diff -r 63387e8920f5 -r 769f80095217

src/video/directfb/SDL_DirectFB_render.c

Quoted 1 line

---- a/src/video/directfb/SDL_DirectFB_render.c Mon Mar 23 14:10:25 2020

-0700

Quoted 1 line

-+++ b/src/video/directfb/SDL_DirectFB_render.c Tue Mar 24 10:05:51 2020

-0700

Quoted 2 lines

-@@ -198,11 +198,10 @@
- SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf,

DSBF_SRCCOLOR));

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -7
-
-             break;
--        }
-         case SDL_BLENDMODE_MUL:
-             data->blitFlags = DSBLIT_BLEND_ALPHACHANNEL;
-             data->drawFlags = DSDRAW_BLEND;
--            SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf,

DSBF_DSTCOLOR));

Quoted 1 line

-+ SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf,

DSBF_DESTCOLOR));

Quoted 1 line

- SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf,

DSBF_INVSRCALPHA));

Review

Quoted 3 lines
(quoted diff) +0 -2
-
-             break;
(quoted diff) +0 -0

b/meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb

Quoted 8 lines

similarity index 91%
rename from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb rename to meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb index 5fa99821c4..872592fdae 100644

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 28

Quoted 10 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -4
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"
-SRC_URI[sha256sum] =

"349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 25

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -0
+SRC_URI[sha256sum] =

"d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] =

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       =

"--enable-jack,--disable-jack,jack"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 61

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[kmsdrm]     =

"--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 62

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[opengl]     =

"--enable-video-opengl,--disable-video-opengl,virtual/libgl"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 63

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[pulseaudio] =

"--enable-pulseaudio,--disable-pulseaudio,pulseaudio"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 67

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
-PACKAGECONFIG[tslib]      =

"--enable-input-tslib,--disable-input-tslib,tslib"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 64

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[wayland]    =

"--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 65

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[x11]        =

"--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
--

2.29.2

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech
#3 lore raw

Certainly not in oe-core please. This looks like a problem you need to take upstream, and until then do any downgrades via private layer.

Alex

Quoted 235 lines · Yann Dirson
Quoted 6 lines · Mark Jonas

Hi,

tslib support is often relevant for embedded projects with simple (resistive) touch screens. Would it make sense to keep the 2.0.12 recipe and offer both in parallel?

What do others think ?

We could use a libsdl2.inc with the common stuff, of just keep the current 2.0.12
version as is. Maybe even move the 2.0.12 recipe to meta-oe, where tslib seems
to live nowadays, although that could make the recipe harder to find for those who
need it.

I'd suggest if that support is still needed, to approach libsdl upstream with a patch
restoring the tslib support ? Maybe we could even carry such a patch in yocto until
upstream does something ? That could be better than just carying an old version.

Quoted 182 lines

Cheers,
Mark

Quoted 6 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This version does not support tslib any more, as can be seen by the failed AUH run.

Quoted 8 lines
---
 .../libsdl2/directfb-renderfillrect-fix.patch | 33 -------------
 ...ectfb-spurious-curly-brace-missing-e.patch | 49 -------------------
 .../{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb}  |  6 +--
 3 files changed, 1 insertion(+), 87 deletions(-)
 delete mode 100644

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 1 line
 delete mode 100644

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 1 line
 rename meta/recipes-graphics/libsdl2/{libsdl2_2.0.12.bb =>

libsdl2_2.0.14.bb} (91%)

Quoted 2 lines

diff --git

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch b/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 3 lines

deleted file mode 100644
index 83d4f4b1ec..0000000000
---

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch line 10

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -10
@@ -1,33 +0,0 @@
-# HG changeset patch
-# User Sam Lantinga <[email protected]>
-# Date 1590793369 25200
-# Node ID a90089f75990e8b07a1dcf931c5f8a580ae343bf
-# Parent  a9b4bd264f3cbedc4f3287b3ec6b32311370ba85
-Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
-
-Lacky
-
-It looks like refactoring of SDL2 internal API has broken

SDL_RenderFillRect for DirectFB. In new version function SDL_RenderFillRect returns 0, but rectangle is not visible.

Review line 12

Quoted 2 lines
(quoted diff) +0 -2
-
-Replacing "count" with "len" in the argument list for SDL_memcpy in

DirectFB_QueueFillRects fixes problem.

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 11 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -11
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id a90089f75990.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-diff -r a9b4bd264f3c -r a90089f75990

src/video/directfb/SDL_DirectFB_render.c

Review line 24

Quoted 1 line
(quoted diff) +0 -1
---- a/src/video/directfb/SDL_DirectFB_render.c Thu May 21 00:06:09

2020 -0400

Review line 25

Quoted 1 line
(quoted diff) +0 -1
-+++ b/src/video/directfb/SDL_DirectFB_render.c Fri May 29 16:02:49

2020 -0700

Quoted 9 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -8
-@@ -626,7 +626,7 @@
-     }
-
-     cmd->data.draw.count = count;
--    SDL_memcpy(verts, rects, count);
-+    SDL_memcpy(verts, rects, len);
-     return 0;
- }

diff --git

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch b/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 3 lines

deleted file mode 100644
index aa351a89ba..0000000000
---

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch line 9

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -9
@@ -1,49 +0,0 @@
-# HG changeset patch
-# User Fabrice Fontaine <[email protected]>
-# Date 1585069551 25200
-# Node ID 769f800952179633ec6c3e6bc1bc1d40e401750a
-# Parent  63387e8920f58f608288f247824ec5f4c286691f
-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':

Quoted 1 line

-/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

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch line 14

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -3
-  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'?

Quoted 1 line

- 205 |

SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR));

Quoted 1 line

- |

^~~~~~~~~~~~~

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 3 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -3
-
-Fixes:
- -

http://autobuild.buildroot.org/results/83ccefee68c2800c0544e6f40fa8bc8ee6b67b77

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -4
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-
---

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 10 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -10
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id 769f80095217.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-
-diff -r 63387e8920f5 -r 769f80095217

src/video/directfb/SDL_DirectFB_render.c

Quoted 1 line

---- a/src/video/directfb/SDL_DirectFB_render.c Mon Mar 23 14:10:25

2020 -0700

Quoted 1 line

-+++ b/src/video/directfb/SDL_DirectFB_render.c Tue Mar 24 10:05:51

2020 -0700

Quoted 2 lines

-@@ -198,11 +198,10 @@
- SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf,

DSBF_SRCCOLOR));

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -7
-
-             break;
--        }
-         case SDL_BLENDMODE_MUL:
-             data->blitFlags = DSBLIT_BLEND_ALPHACHANNEL;
-             data->drawFlags = DSDRAW_BLEND;
--            SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf,

DSBF_DSTCOLOR));

Quoted 1 line

-+ SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf,

DSBF_DESTCOLOR));

Quoted 1 line

- SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf,

DSBF_INVSRCALPHA));

Review

Quoted 3 lines
(quoted diff) +0 -2
-
-             break;
(quoted diff) +0 -0

b/meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb

Quoted 8 lines

similarity index 91%
rename from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb rename to meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb index 5fa99821c4..872592fdae 100644

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 28

Quoted 10 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -4
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"
-SRC_URI[sha256sum] =

"349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 25

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -0
+SRC_URI[sha256sum] =

"d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] =

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       =

"--enable-jack,--disable-jack,jack"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 61

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[kmsdrm]     =

"--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 62

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[opengl]     =

"--enable-video-opengl,--disable-video-opengl,virtual/libgl"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 63

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[pulseaudio] =

"--enable-pulseaudio,--disable-pulseaudio,pulseaudio"

Quoted 16 lines

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 67

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
-PACKAGECONFIG[tslib]      =

"--enable-input-tslib,--disable-input-tslib,tslib"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 64

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[wayland]    =

"--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 65

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[x11]        =

"--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
--

2.29.2

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

It looks like tslib support was not in 2.0.12 version either, and probably was ripped out long time ago:
http://hg.libsdl.org/SDL/rev/a708852dbd5c

Alex

Quoted 246 lines · Alexander Kanavin via lists.openembedded.org

Certainly not in oe-core please. This looks like a problem you need to take upstream, and until then do any downgrades via private layer.

Alex

Quoted 235 lines · Yann Dirson
Quoted 6 lines · Mark Jonas

Hi,

tslib support is often relevant for embedded projects with simple (resistive) touch screens. Would it make sense to keep the 2.0.12 recipe and offer both in parallel?

What do others think ?

We could use a libsdl2.inc with the common stuff, of just keep the current 2.0.12
version as is. Maybe even move the 2.0.12 recipe to meta-oe, where tslib seems
to live nowadays, although that could make the recipe harder to find for those who
need it.

I'd suggest if that support is still needed, to approach libsdl upstream with a patch
restoring the tslib support ? Maybe we could even carry such a patch in yocto until
upstream does something ? That could be better than just carying an old version.

Quoted 182 lines

Cheers,
Mark

Quoted 6 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This version does not support tslib any more, as can be seen by the failed AUH run.

Quoted 8 lines
---
 .../libsdl2/directfb-renderfillrect-fix.patch | 33 -------------
 ...ectfb-spurious-curly-brace-missing-e.patch | 49 -------------------
 .../{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb}  |  6 +--
 3 files changed, 1 insertion(+), 87 deletions(-)
 delete mode 100644

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 1 line
 delete mode 100644

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 1 line
 rename meta/recipes-graphics/libsdl2/{libsdl2_2.0.12.bb =>

libsdl2_2.0.14.bb} (91%)

Quoted 2 lines

diff --git

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch b/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 3 lines

deleted file mode 100644
index 83d4f4b1ec..0000000000
---

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch line 10

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -10
@@ -1,33 +0,0 @@
-# HG changeset patch
-# User Sam Lantinga <[email protected]>
-# Date 1590793369 25200
-# Node ID a90089f75990e8b07a1dcf931c5f8a580ae343bf
-# Parent  a9b4bd264f3cbedc4f3287b3ec6b32311370ba85
-Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
-
-Lacky
-
-It looks like refactoring of SDL2 internal API has broken

SDL_RenderFillRect for DirectFB. In new version function SDL_RenderFillRect returns 0, but rectangle is not visible.

Review line 12

Quoted 2 lines
(quoted diff) +0 -2
-
-Replacing "count" with "len" in the argument list for SDL_memcpy in

DirectFB_QueueFillRects fixes problem.

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 11 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -11
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id a90089f75990.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-diff -r a9b4bd264f3c -r a90089f75990

src/video/directfb/SDL_DirectFB_render.c

Review line 24

Quoted 1 line
(quoted diff) +0 -1
---- a/src/video/directfb/SDL_DirectFB_render.c Thu May 21 00:06:09

2020 -0400

Review line 25

Quoted 1 line
(quoted diff) +0 -1
-+++ b/src/video/directfb/SDL_DirectFB_render.c Fri May 29 16:02:49

2020 -0700

Quoted 9 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -8
-@@ -626,7 +626,7 @@
-     }
-
-     cmd->data.draw.count = count;
--    SDL_memcpy(verts, rects, count);
-+    SDL_memcpy(verts, rects, len);
-     return 0;
- }

diff --git

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch b/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 3 lines

deleted file mode 100644
index aa351a89ba..0000000000
---

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch line 9

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -9
@@ -1,49 +0,0 @@
-# HG changeset patch
-# User Fabrice Fontaine <[email protected]>
-# Date 1585069551 25200
-# Node ID 769f800952179633ec6c3e6bc1bc1d40e401750a
-# Parent  63387e8920f58f608288f247824ec5f4c286691f
-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':

Quoted 1 line

-/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

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch line 14

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -3
-  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'?

Quoted 1 line

- 205 |

SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR));

Quoted 1 line

- |

     ^~~~~~~~~~~~~

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 3 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -3
-
-Fixes:
- -

http://autobuild.buildroot.org/results/83ccefee68c2800c0544e6f40fa8bc8ee6b67b77

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -4
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-
---

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 10 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -10
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id 769f80095217.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-
-diff -r 63387e8920f5 -r 769f80095217

src/video/directfb/SDL_DirectFB_render.c

Quoted 1 line

---- a/src/video/directfb/SDL_DirectFB_render.c Mon Mar 23 14:10:25

2020 -0700

Quoted 1 line

-+++ b/src/video/directfb/SDL_DirectFB_render.c Tue Mar 24 10:05:51

2020 -0700

Quoted 2 lines

-@@ -198,11 +198,10 @@
- SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf,

DSBF_SRCCOLOR));

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -7
-
-             break;
--        }
-         case SDL_BLENDMODE_MUL:
-             data->blitFlags = DSBLIT_BLEND_ALPHACHANNEL;
-             data->drawFlags = DSDRAW_BLEND;
--            SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf,

DSBF_DSTCOLOR));

Quoted 1 line

-+ SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf,

DSBF_DESTCOLOR));

Quoted 1 line

- SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf,

DSBF_INVSRCALPHA));

Review

Quoted 3 lines
(quoted diff) +0 -2
-
-             break;
(quoted diff) +0 -0

b/meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb

Quoted 8 lines

similarity index 91%
rename from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb rename to meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb index 5fa99821c4..872592fdae 100644

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 28

Quoted 10 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -4
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"
-SRC_URI[sha256sum] =

"349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 25

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -0
+SRC_URI[sha256sum] =

"d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] =

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       =

"--enable-jack,--disable-jack,jack"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 61

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[kmsdrm]     =

"--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 62

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[opengl]     =

"--enable-video-opengl,--disable-video-opengl,virtual/libgl"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 63

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[pulseaudio] =

"--enable-pulseaudio,--disable-pulseaudio,pulseaudio"

Quoted 16 lines

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 67

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
-PACKAGECONFIG[tslib]      =

"--enable-input-tslib,--disable-input-tslib,tslib"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 64

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[wayland]    =

"--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 65

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[x11]        =

"--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
--

2.29.2

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

A message that is not in the archive (sent off-list or not yet received): [email protected]

#7 lore raw

I digged a bit: I think libsdl 1.x might still have it, but libsdl 2.x definitely does not.

Alex

Quoted 259 lines · Alexander Kanavin via lists.openembedded.org

It looks like tslib support was not in 2.0.12 version either, and probably was ripped out long time ago:
http://hg.libsdl.org/SDL/rev/a708852dbd5c

Alex

Quoted 247 lines · Alexander Kanavin via lists.openembedded.org

Certainly not in oe-core please. This looks like a problem you need to take upstream, and until then do any downgrades via private layer.

Alex

Quoted 236 lines · Yann Dirson
Quoted 6 lines · Mark Jonas

Hi,

tslib support is often relevant for embedded projects with simple (resistive) touch screens. Would it make sense to keep the 2.0.12 recipe and offer both in parallel?

What do others think ?

We could use a libsdl2.inc with the common stuff, of just keep the current 2.0.12
version as is. Maybe even move the 2.0.12 recipe to meta-oe, where tslib seems
to live nowadays, although that could make the recipe harder to find for those who
need it.

I'd suggest if that support is still needed, to approach libsdl upstream with a patch
restoring the tslib support ? Maybe we could even carry such a patch in yocto until
upstream does something ? That could be better than just carying an old version.

Quoted 183 lines

Cheers,
Mark

Quoted 11 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This version does not support tslib any more, as can be seen by the failed AUH run.

---
 .../libsdl2/directfb-renderfillrect-fix.patch | 33 -------------
 ...ectfb-spurious-curly-brace-missing-e.patch | 49

-------------------

Quoted 3 lines
 .../{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb}  |  6 +--
 3 files changed, 1 insertion(+), 87 deletions(-)
 delete mode 100644

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 1 line
 delete mode 100644

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 1 line
 rename meta/recipes-graphics/libsdl2/{libsdl2_2.0.12.bb =>

libsdl2_2.0.14.bb} (91%)

Quoted 2 lines

diff --git

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch b/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 3 lines

deleted file mode 100644
index 83d4f4b1ec..0000000000
---

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch line 10

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -10
@@ -1,33 +0,0 @@
-# HG changeset patch
-# User Sam Lantinga <[email protected]>
-# Date 1590793369 25200
-# Node ID a90089f75990e8b07a1dcf931c5f8a580ae343bf
-# Parent  a9b4bd264f3cbedc4f3287b3ec6b32311370ba85
-Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
-
-Lacky
-
-It looks like refactoring of SDL2 internal API has broken

SDL_RenderFillRect for DirectFB. In new version function SDL_RenderFillRect returns 0, but rectangle is not visible.

Review line 12

Quoted 2 lines
(quoted diff) +0 -2
-
-Replacing "count" with "len" in the argument list for SDL_memcpy in

DirectFB_QueueFillRects fixes problem.

meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch

Quoted 11 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -11
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id a90089f75990.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-diff -r a9b4bd264f3c -r a90089f75990

src/video/directfb/SDL_DirectFB_render.c

Review line 24

Quoted 1 line
(quoted diff) +0 -1
---- a/src/video/directfb/SDL_DirectFB_render.c Thu May 21 00:06:09

2020 -0400

Review line 25

Quoted 1 line
(quoted diff) +0 -1
-+++ b/src/video/directfb/SDL_DirectFB_render.c Fri May 29 16:02:49

2020 -0700

Quoted 9 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -8
-@@ -626,7 +626,7 @@
-     }
-
-     cmd->data.draw.count = count;
--    SDL_memcpy(verts, rects, count);
-+    SDL_memcpy(verts, rects, len);
-     return 0;
- }

diff --git

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch b/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 3 lines

deleted file mode 100644
index aa351a89ba..0000000000
---

a/meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch line 9

Quoted 12 lines

+++ /dev/null

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -9
@@ -1,49 +0,0 @@
-# HG changeset patch
-# User Fabrice Fontaine <[email protected]>
-# Date 1585069551 25200
-# Node ID 769f800952179633ec6c3e6bc1bc1d40e401750a
-# Parent  63387e8920f58f608288f247824ec5f4c286691f
-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':

Quoted 1 line

-/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

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch line 14

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -3
-  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'?

Quoted 1 line

- 205 |

SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf, DSBF_DSTCOLOR));

Quoted 1 line

- |

     ^~~~~~~~~~~~~

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 3 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -3
-
-Fixes:
- -

http://autobuild.buildroot.org/results/83ccefee68c2800c0544e6f40fa8bc8ee6b67b77

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -4
-
-Signed-off-by: Fabrice Fontaine <[email protected]>
-
---

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 10 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -10
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id 769f80095217.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-
-diff -r 63387e8920f5 -r 769f80095217

src/video/directfb/SDL_DirectFB_render.c

Quoted 1 line

---- a/src/video/directfb/SDL_DirectFB_render.c Mon Mar 23 14:10:25

2020 -0700

Quoted 1 line

-+++ b/src/video/directfb/SDL_DirectFB_render.c Tue Mar 24 10:05:51

2020 -0700

Quoted 2 lines

-@@ -198,11 +198,10 @@
- SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf,

DSBF_SRCCOLOR));

meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -7
-
-             break;
--        }
-         case SDL_BLENDMODE_MUL:
-             data->blitFlags = DSBLIT_BLEND_ALPHACHANNEL;
-             data->drawFlags = DSDRAW_BLEND;
--            SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf,

DSBF_DSTCOLOR));

Quoted 1 line

-+ SDL_DFB_CHECK(destsurf->SetSrcBlendFunction(destsurf,

DSBF_DESTCOLOR));

Quoted 1 line

- SDL_DFB_CHECK(destsurf->SetDstBlendFunction(destsurf,

DSBF_INVSRCALPHA));

Review

Quoted 3 lines
(quoted diff) +0 -2
-
-             break;
(quoted diff) +0 -0

b/meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb

Quoted 8 lines

similarity index 91%
rename from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb rename to meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb index 5fa99821c4..872592fdae 100644

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 28

Quoted 10 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -4
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"
-SRC_URI[sha256sum] =

"349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 25

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -0
+SRC_URI[sha256sum] =

"d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] =

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       =

"--enable-jack,--disable-jack,jack"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 61

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[kmsdrm]     =

"--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 62

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[opengl]     =

"--enable-video-opengl,--disable-video-opengl,virtual/libgl"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 63

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[pulseaudio] =

"--enable-pulseaudio,--disable-pulseaudio,pulseaudio"

Quoted 16 lines

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 67

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
-PACKAGECONFIG[tslib]      =

"--enable-input-tslib,--disable-input-tslib,tslib"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 64

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[wayland]    =

"--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 65

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[x11]        =

"--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
--

2.29.2

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

#8 lore raw
In reply to Yann Dirson

Hello Yann,

Quoted 119 lines · Yann Dirson

From: Yann Dirson <[email protected]>

This version does not support tslib any more, as can be seen by the failed AUH run.

---
 .../libsdl2/directfb-renderfillrect-fix.patch | 33 -------------
 ...ectfb-spurious-curly-brace-missing-e.patch | 49 -------------------
 .../{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb}  |  6 +--
 3 files changed, 1 insertion(+), 87 deletions(-)
 delete mode 100644 meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch
 delete mode 100644 meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch
 rename meta/recipes-graphics/libsdl2/{libsdl2_2.0.12.bb => libsdl2_2.0.14.bb} (91%)
meta/recipes-graphics/libsdl2/libsdl2/directfb-renderfillrect-fix.patch deleted +0 -33
deleted file mode 100644
index 83d4f4b1ec..0000000000
@@ -1,33 +0,0 @@
-# HG changeset patch
-# User Sam Lantinga <[email protected]>
-# Date 1590793369 25200
-# Node ID a90089f75990e8b07a1dcf931c5f8a580ae343bf
-# Parent  a9b4bd264f3cbedc4f3287b3ec6b32311370ba85
-Fixed bug 5146 - SDL_RenderFillRect doesn't work in DirectFB
-
-Lacky
-
-It looks like refactoring of SDL2 internal API has broken SDL_RenderFillRect for DirectFB. In new version function SDL_RenderFillRect returns 0, but rectangle is not visible.
-
-Replacing "count" with "len" in the argument list for SDL_memcpy in DirectFB_QueueFillRects fixes problem.
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id a90089f75990.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-diff -r a9b4bd264f3c -r a90089f75990 src/video/directfb/SDL_DirectFB_render.c
---- a/src/video/directfb/SDL_DirectFB_render.c Thu May 21 00:06:09 2020 -0400
-+++ b/src/video/directfb/SDL_DirectFB_render.c Fri May 29 16:02:49 2020 -0700
-@@ -626,7 +626,7 @@
-     }
-
-     cmd->data.draw.count = count;
--    SDL_memcpy(verts, rects, count);
-+    SDL_memcpy(verts, rects, len);
-     return 0;
- }
meta/recipes-graphics/libsdl2/libsdl2/directfb-spurious-curly-brace-missing-e.patch deleted +0 -49
deleted file mode 100644
index aa351a89ba..0000000000
@@ -1,49 +0,0 @@
-# HG changeset patch
-# User Fabrice Fontaine <[email protected]>
-# Date 1585069551 25200
-# Node ID 769f800952179633ec6c3e6bc1bc1d40e401750a
-# Parent  63387e8920f58f608288f247824ec5f4c286691f
-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]>
-
---
-
-The patch was imported from the libsdl Mercurial repository
-(https://hg.libsdl.org/SDL) as of changeset id 769f80095217.
-
-Upstream-Status: Backport
-
-Signed-off-by: Mark Jonas <[email protected]>
-
-
-diff -r 63387e8920f5 -r 769f80095217 src/video/directfb/SDL_DirectFB_render.c
---- a/src/video/directfb/SDL_DirectFB_render.c Mon Mar 23 14:10:25 2020 -0700
-+++ b/src/video/directfb/SDL_DirectFB_render.c Tue Mar 24 10:05:51 2020 -0700
-@@ -198,11 +198,10 @@
-             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;
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
similarity index 91%
rename from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb
rename to meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb
index 5fa99821c4..872592fdae 100644

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 22

Quoted 5 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -2
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \

I believe the patch ac_check_define.patch can also be dropped, as it was applied upstream and is included in 2.0.14, see
http://hg.libsdl.org/SDL/rev/2c13b7ca1997

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 27

Quoted 5 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"

Wonder why md5sum was just dropped and rather not updated?

Quoted 19 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -3
-SRC_URI[sha256sum] = "349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"
+SRC_URI[sha256sum] = "d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"
 
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       = "--enable-jack,--disable-jack,jack"
 PACKAGECONFIG[kmsdrm]     = "--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"
 PACKAGECONFIG[opengl]     = "--enable-video-opengl,--disable-video-opengl,virtual/libgl"
 PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
-PACKAGECONFIG[tslib]      = "--enable-input-tslib,--disable-input-tslib,tslib"
 PACKAGECONFIG[wayland]    = "--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"
 PACKAGECONFIG[x11]        = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"
 
--

2.29.2

Signature · 2 lines
Regards,
Andrey.
#9 lore raw

Le mer. 3 févr. 2021 à 21:56, Andrey Zhizhikin <[email protected]> a écrit :

Quoted 7 lines

Hello Yann,

Quoted 5 lines

index 5fa99821c4..872592fdae 100644

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 
Quoted 9 lines

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 22

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -2
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \

I believe the patch ac_check_define.patch can also be dropped, as it was applied upstream and is included in 2.0.14, see
http://hg.libsdl.org/SDL/rev/2c13b7ca1997

hm, not sure what patch you're talking about, I don't see any by that name.

Quoted 8 lines

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 27

Quoted 5 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
 "
 
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"

Wonder why md5sum was just dropped and rather not updated?

It's an obsolete algorithm. AUH itself removes this in its patches.

Quoted 36 lines

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 28

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
-SRC_URI[sha256sum] =

"349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 25

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -0
+SRC_URI[sha256sum] =

"d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] =

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       =

"--enable-jack,--disable-jack,jack"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 61

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[kmsdrm]     =

"--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 62

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[opengl]     =

"--enable-video-opengl,--disable-video-opengl,virtual/libgl"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 63

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[pulseaudio] =

"--enable-pulseaudio,--disable-pulseaudio,pulseaudio"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 67

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
-PACKAGECONFIG[tslib]      =

"--enable-input-tslib,--disable-input-tslib,tslib"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 64

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[wayland]    =

"--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PACKAGECONFIG[jack] = · line 65

Quoted 1 line
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 PACKAGECONFIG[x11]        =

"--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"

Quoted 7 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
--

2.29.2

--
Regards,
Andrey.

Signature · 2 lines
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech
#10 lore raw

Hello Yann,

Quoted 22 lines · Yann Dirson
Quoted 8 lines · Andrey Zhizhikin

Hello Yann,

Quoted 5 lines

index 5fa99821c4..872592fdae 100644

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
@@ -18,14 +18,11 @@ PROVIDES = "virtual/libsdl2"
 
Quoted 8 lines

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 22

Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -2
 SRC_URI = "http://www.libsdl.org/release/SDL2-${PV}.tar.gz \
            file://more-gen-depends.patch \
-           file://directfb-spurious-curly-brace-missing-e.patch \
-           file://directfb-renderfillrect-fix.patch \

I believe the patch ac_check_define.patch can also be dropped, as it was applied upstream and is included in 2.0.14, see
http://hg.libsdl.org/SDL/rev/2c13b7ca1997

Quoted 1 line

hm, not sure what patch you're talking about, I don't see any by that name.

Ah, please discard this. That patch was introduced by commit 79ada27ec2 and was present in the master-next of poky. Latest master-next update does not have it anymore. :)

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -0
 "
 
Quoted 8 lines
Quoted 5 lines

meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb PROVIDES = "virtual/libsdl2" · line 27

Quoted 3 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +0 -1
 S = "${WORKDIR}/SDL2-${PV}"
 
-SRC_URI[md5sum] = "783b6f2df8ff02b19bb5ce492b99c8ff"

Wonder why md5sum was just dropped and rather not updated?

It's an obsolete algorithm. AUH itself removes this in its patches.

Got it, thanks for clarification.

Quoted 33 lines
Quoted 15 lines
Quoted 15 lines
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb renamed from meta/recipes-graphics/libsdl2/libsdl2_2.0.12.bb +1 -2
-SRC_URI[sha256sum] = "349268f695c02efbc9b9148a70b85e58cefbbf704abd3e91be654db7f1e2c863"
+SRC_URI[sha256sum] = "d8215b571a581be1332d2106f8036fcb03d12a70bae01e20f424976d275432bc"
 
 inherit autotools lib_package binconfig-disabled pkgconfig
 
@@ -64,7 +61,6 @@ PACKAGECONFIG[jack]       = "--enable-jack,--disable-jack,jack"
 PACKAGECONFIG[kmsdrm]     = "--enable-video-kmsdrm,--disable-video-kmsdrm,libdrm virtual/libgbm"
 PACKAGECONFIG[opengl]     = "--enable-video-opengl,--disable-video-opengl,virtual/libgl"
 PACKAGECONFIG[pulseaudio] = "--enable-pulseaudio,--disable-pulseaudio,pulseaudio"
-PACKAGECONFIG[tslib]      = "--enable-input-tslib,--disable-input-tslib,tslib"
 PACKAGECONFIG[wayland]    = "--enable-video-wayland,--disable-video-wayland,wayland-native wayland wayland-protocols libxkbcommon"
 PACKAGECONFIG[x11]        = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"
 
Quoted 11 lines
Quoted 6 lines

--
2.29.2

--
Regards,
Andrey.

--
Yann Dirson <[email protected]>
Blade / Shadow -- http://shadow.tech

Signature · 2 lines
Regards,
Andrey.