All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/qt5/qt5webkit: fix compilation with linaro 7.3 / 7.5 toolchains
@ 2022-03-10 12:41 Nicolas Carrier
  2022-03-10 12:42 ` Nicolas Carrier
  2022-07-24 10:33 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Carrier @ 2022-03-10 12:41 UTC (permalink / raw)
  To: buildroot; +Cc: Peter Seiderer, Julien Corjon, Gaël Portay

An unitialized field in a structure, causes the following error:
    platform/audio/gstreamer/AudioFileReaderGStreamer.cpp:234:5: error: braces around scalar initializer for type ‘gboolean (*)(GstAppSink*, gpointer) {aka int (*)(_GstAppSink*, void*)}’

This commit applies a patch to qt5webkit to fix the compilation issue.

Signed-off-by: Nicolas Carrier <nicolas.carrier@orolia.com>
---
 ...x-AudioFileReaderGStreamer-compilation.patch | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
 create mode 100644 package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch

diff --git a/package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch b/package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch
new file mode 100644
index 0000000000..dc2dcdafb7
--- /dev/null
+++ b/package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch
@@ -0,0 +1,17 @@
+AudioFileReaderGStreamer.cpp: fix error: braces around scalar initializer
+
+Compilation error, with linaro toolchains Linaro ARM 2018.05 and Linaro ARM
+2019.12.
+
+Signed-off-by: Nicolas Carrier <nicolas.carrier@orolia.com>
+
+--- a/Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp	2022-03-09 16:44:12.597494891 +0100
++++ b/Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp	2020-03-04 18:16:37.000000000 +0100
+@@ -230,6 +230,7 @@ void AudioFileReader::handleNewDeinterle
+         [](GstAppSink* sink, gpointer userData) -> GstFlowReturn {
+             return static_cast<AudioFileReader*>(userData)->handleSample(sink);
+         },
++        nullptr, // new_event
+         { nullptr }
+     };
+     gst_app_sink_set_callbacks(GST_APP_SINK(sink), &callbacks, this, 0);
-- 
2.30.2

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/qt5/qt5webkit: fix compilation with linaro 7.3 / 7.5 toolchains
  2022-03-10 12:41 [Buildroot] [PATCH 1/1] package/qt5/qt5webkit: fix compilation with linaro 7.3 / 7.5 toolchains Nicolas Carrier
@ 2022-03-10 12:42 ` Nicolas Carrier
  2022-07-24 10:33 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Carrier @ 2022-03-10 12:42 UTC (permalink / raw)
  To: buildroot; +Cc: Peter Seiderer, Julien Corjon, Gaël Portay

I forgot to add, that I had this bug when testing the latest LTS version 2022.02, so if accepted, it
could be applied to it too, it would be great :)

On Thu, 2022-03-10 at 13:41 +0100, Nicolas Carrier wrote:
> An unitialized field in a structure, causes the following error:
>     platform/audio/gstreamer/AudioFileReaderGStreamer.cpp:234:5: error: braces around scalar
> initializer for type ‘gboolean (*)(GstAppSink*, gpointer) {aka int (*)(_GstAppSink*, void*)}’
> 
> This commit applies a patch to qt5webkit to fix the compilation issue.
> 
> Signed-off-by: Nicolas Carrier <nicolas.carrier@orolia.com>
> ---
>  ...x-AudioFileReaderGStreamer-compilation.patch | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch
> 
> diff --git a/package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch
> b/package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch
> new file mode 100644
> index 0000000000..dc2dcdafb7
> --- /dev/null
> +++ b/package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch
> @@ -0,0 +1,17 @@
> +AudioFileReaderGStreamer.cpp: fix error: braces around scalar initializer
> +
> +Compilation error, with linaro toolchains Linaro ARM 2018.05 and Linaro ARM
> +2019.12.
> +
> +Signed-off-by: Nicolas Carrier <nicolas.carrier@orolia.com>
> +
> +--- a/Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp     2022-03-09
> 16:44:12.597494891 +0100
> ++++ b/Source/WebCore/platform/audio/gstreamer/AudioFileReaderGStreamer.cpp     2020-03-04
> 18:16:37.000000000 +0100
> +@@ -230,6 +230,7 @@ void AudioFileReader::handleNewDeinterle
> +         [](GstAppSink* sink, gpointer userData) -> GstFlowReturn {
> +             return static_cast<AudioFileReader*>(userData)->handleSample(sink);
> +         },
> ++        nullptr, // new_event
> +         { nullptr }
> +     };
> +     gst_app_sink_set_callbacks(GST_APP_SINK(sink), &callbacks, this, 0);


_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/1] package/qt5/qt5webkit: fix compilation with linaro 7.3 / 7.5 toolchains
  2022-03-10 12:41 [Buildroot] [PATCH 1/1] package/qt5/qt5webkit: fix compilation with linaro 7.3 / 7.5 toolchains Nicolas Carrier
  2022-03-10 12:42 ` Nicolas Carrier
@ 2022-07-24 10:33 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2022-07-24 10:33 UTC (permalink / raw)
  To: Nicolas Carrier
  Cc: Peter Seiderer, Julien Corjon, Gaël Portay, buildroot

On Thu, 10 Mar 2022 13:41:06 +0100
Nicolas Carrier <nicolas.carrier@orolia.com> wrote:

> An unitialized field in a structure, causes the following error:
>     platform/audio/gstreamer/AudioFileReaderGStreamer.cpp:234:5: error: braces around scalar initializer for type ‘gboolean (*)(GstAppSink*, gpointer) {aka int (*)(_GstAppSink*, void*)}’
> 
> This commit applies a patch to qt5webkit to fix the compilation issue.
> 
> Signed-off-by: Nicolas Carrier <nicolas.carrier@orolia.com>
> ---
>  ...x-AudioFileReaderGStreamer-compilation.patch | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
>  create mode 100644 package/qt5/qt5webkit/0005-fix-AudioFileReaderGStreamer-compilation.patch

Thanks for your patch. I looked into this, and the problem is not
related to Linaro toolchains, but a compatibility issue with GStreamer
newer than 1.19.x, which changed this GstAppSinkCallbacks structure. I
identified the upstream fix for this problem, backported it, and added
an explanation.

See the resulting commit at:

  https://git.buildroot.org/buildroot/commit/?id=bb50b821702841fdc75bf8151555cd401f764f07

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2022-07-24 10:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-10 12:41 [Buildroot] [PATCH 1/1] package/qt5/qt5webkit: fix compilation with linaro 7.3 / 7.5 toolchains Nicolas Carrier
2022-03-10 12:42 ` Nicolas Carrier
2022-07-24 10:33 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.