From 031433402f060fdc473735827b385ccb6cb7ecdf Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Sat, 9 Aug 2025 10:48:12 +0200 Subject: imx-gst1.0-plugin: fix build against glibc 2.42 OE-core updated to glibc 2.42. This version no longer provides termio.h. Fixes | ...tools/gplay2/gplay2.c:29:10: fatal error: termio.h: No such file or directory Signed-off-by: Max Krummenacher --- ...01-gplay2-fix-termio.h-no-longer-existing.patch | 35 ++++++++++++++++++++++ .../gstreamer/imx-gst1.0-plugin_git.bb | 5 +++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 recipes-multimedia/gstreamer/imx-gst1.0-plugin/0001-gplay2-fix-termio.h-no-longer-existing.patch diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0001-gplay2-fix-termio.h-no-longer-existing.patch b/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0001-gplay2-fix-termio.h-no-longer-existing.patch new file mode 100644 index 000000000..cb314b38d --- /dev/null +++ b/recipes-multimedia/gstreamer/imx-gst1.0-plugin/0001-gplay2-fix-termio.h-no-longer-existing.patch @@ -0,0 +1,35 @@ +From b88aec4d7a8c8993c8c75f002a1f2af1635337d1 Mon Sep 17 00:00:00 2001 +From: Max Krummenacher +Date: Sat, 9 Aug 2025 08:20:50 +0000 +Subject: [PATCH] gplay2: fix termio.h no longer existing + +glibc 2.42 removed the long deprecated termio.h header which +in 2.41 only included termios.h and sys/ioctl.h. [1] + +Replacing it with sys/ioctl.h seems to provide all the needed +declaration for successfully compiling. + +[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS#l91 + +Upstream-Status: Pending +Signed-off-by: Max Krummenacher +--- + tools/gplay2/gplay2.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/gplay2/gplay2.c b/tools/gplay2/gplay2.c +index 9e406b9ea8c7..98b3ee5cf666 100755 +--- a/tools/gplay2/gplay2.c ++++ b/tools/gplay2/gplay2.c +@@ -26,7 +26,7 @@ + */ + + +-#include ++#include + #include + #include + #include +-- +2.42.0 + diff --git a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb index d7ac9b474..d7ac1e34d 100644 --- a/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb +++ b/recipes-multimedia/gstreamer/imx-gst1.0-plugin_git.bb @@ -38,7 +38,10 @@ RCONFLICTS:${PN} = "gst1.0-fsl-plugin" PV = "4.9.3+git${SRCPV}" -SRC_URI = "git://github.com/nxp-imx/imx-gst1.0-plugin.git;protocol=https;branch=${SRCBRANCH}" +SRC_URI = " \ + git://github.com/nxp-imx/imx-gst1.0-plugin.git;protocol=https;branch=${SRCBRANCH} \ + file://0001-gplay2-fix-termio.h-no-longer-existing.patch \ +" SRCBRANCH = "MM_04.09.03_2412_L6.12.y" SRCREV = "370510ef8137874339df18a2a35ec1d04d98fa0b" -- cgit v1.2.3-54-g00ecf