[Buildroot] [PATCH v1] package/qt5base: fix input_event related compile failure
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sat May 9 21:15:34 UTC 2020
On Mon, 4 May 2020 23:45:52 +0200
Peter Seiderer <ps.report at gmx.net> wrote:
> Fixes:
>
> - http://autobuild.buildroot.net/results/af76190876656252eb6f60220cdb1d627a03b7c3
>
> evdevkeyboard/qevdevkeyboardhandler.cpp: In member function ‘void QEvdevKeyboardHandler::switchLed(int, bool)’:
> evdevkeyboard/qevdevkeyboardhandler.cpp:153:28: error: ‘struct input_event’ has no member named ‘time’; did you mean ‘type’?
> ::gettimeofday(&led_ie.time, 0);
> ^~~~
> type
>
> evdevtouch/qevdevtouchhandler.cpp: In member function ‘void QEvdevTouchScreenData::processInputEvent(input_event*)’:
> evdevtouch/qevdevtouchhandler.cpp:579:29: error: ‘struct input_event’ has no member named ‘time’; did you mean ‘type’?
> m_timeStamp = data->time.tv_sec + data->time.tv_usec / 1000000.0;
> ^~~~
> type
> evdevtouch/qevdevtouchhandler.cpp:579:49: error: ‘struct input_event’ has no member named ‘time’; did you mean ‘type’?
> m_timeStamp = data->time.tv_sec + data->time.tv_usec / 1000000.0;
> ^~~~
> type
>
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
> ...fix-input_event-time-related-compile.patch | 56 +++++++++++++++++++
> ...fix-input_event-time-related-compile.patch | 56 +++++++++++++++++++
> 2 files changed, 112 insertions(+)
> create mode 100644 package/qt5/qt5base/0005-evdevkeyboard-fix-input_event-time-related-compile.patch
> create mode 100644 package/qt5/qt5base/0006-evdevtouch-fix-input_event-time-related-compile.patch
I've applied to master, after adding the upstream details of each
patch, as they have now been merged upstream (thanks for your work!).
It would however be nice if you could remember to use "git format-patch
-N" when generating patches and/or to run "make check-package" which
would warn you about this :-)
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list