package/weston: fix build with headers < 4.4
PATCH v4 1/1 package/weston: fix build with headers < 4.4
weston includes input-event-codes.h since version 5.0.91 and
https://github.com/wayland-project/weston/commit/6e229ca26381bc8191fd9af1e439c311da709aff
input-event-codes.h is available only since kernel 4.4 and
https://github.com/torvalds/linux/commit/f902dd893427eade90f7eaf858e5ff8b150a5a12
To fix this build failure, replace include on linux/input-event-codes.h by linux/input.h
Fixes:
- http://autobuild.buildroot.org/results/210c2759900f15ea0030d088f6f45cd8bb199b29
---
Changes v3 -> v4:
- Fix commit message
Changes v2 -> v3 (after upstream review):
- Always include linux/input.h
Changes v1 -> v2 (after review of Yann E. Morin):
- Add a patch to drop include on input-event-codes.h instead of requiring headers >= 4.4
.../0002-Fix-build-with-kernel-4.4.patch | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 package/weston/0002-Fix-build-with-kernel-4.4.patch
package/weston/0002-Fix-build-with-kernel-4.4.patch new file +40 -0
@@ -0,0 +1,40 @@ +From 137b811ecd566086f7eb42c1e49e7c0cf27fb85e Mon Sep 17 00:00:00 2001 +From: Fabrice Fontaine <[email protected]> +Date: Mon, 10 Jun 2019 12:02:03 +0200 +Subject: [PATCH] Fix build with kernel < 4.4 + +weston includes input-event-codes.h since version 5.0.91 and +https://github.com/wayland-project/weston/commit/6e229ca26381bc8191fd9af1e439c311da709aff + +input-event-codes.h is available only since kernel 4.4 and +https://github.com/torvalds/linux/commit/f902dd893427eade90f7eaf858e5ff8b150a5a12 + +To fix this build failure, replace include on linux/input-event-codes.h +by linux/input.h + +Fixes: + - http://autobuild.buildroot.org/results/210c2759900f15ea0030d088f6f45cd8bb199b29 + +Signed-off-by: Fabrice Fontaine <[email protected]> +[Upstream status: +https://gitlab.freedesktop.org/wayland/weston/merge_requests/184] +--- + compositor/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/compositor/main.c b/compositor/main.c +index 945f99ae..bf4062af 100644 +--- a/compositor/main.c ++++ b/compositor/main.c +@@ -42,7 +42,7 @@ + #include <sys/socket.h> + #include <libinput.h> + #include <libevdev/libevdev.h> +-#include <linux/input-event-codes.h> ++#include <linux/input.h> + #include <sys/time.h> + #include <linux/limits.h> + +-- +2.20.1 +
Signature · 1 line
2.20.1
Arnout Vandecappelle
AppliedPATCH v4 1/1 package/weston: fix build with headers < 4.4
Quoted 6 lines · Fabrice Fontaine
weston includes
input-event-codes.hsince version 5.0.91 and
https://github.com/wayland-project/weston/commit/6e229ca26381bc8191fd9af1e439c311da709aff
input-event-codes.his available only since kernel 4.4 and
https://github.com/torvalds/linux/commit/f902dd893427eade90f7eaf858e5ff8b150a5a12
Quoted 7 lines
To fix this build failure, replace include on
linux/input-event-codes.hbylinux/input.hFixes:
- http://autobuild.buildroot.org/results/210c2759900f15ea0030d088f6f45cd8bb199b29Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Arnout
[snip]
PATCH v4 1/1 package/weston: fix build with headers < 4.4
In reply to Fabrice FontaineQuoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
weston includes
input-event-codes.hsince version 5.0.91 and
https://github.com/wayland-project/weston/commit/6e229ca26381bc8191fd9af1e439c311da709aff
input-event-codes.his available only since kernel 4.4 and
https://github.com/torvalds/linux/commit/f902dd893427eade90f7eaf858e5ff8b150a5a12To fix this build failure, replace include on
linux/input-event-codes.hbylinux/input.h
Quoted 7 lines
Fixes:
- http://autobuild.buildroot.org/results/210c2759900f15ea0030d088f6f45cd8bb199b29Signed-off-by Fabrice Fontaine <[email protected]>---
Changes v3 -> v4:
- Fix commit message
Committed to 2019.05.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard