From: Daniel Golle Date: Sun, 8 Dec 2024 12:17:56 +0000 (+0000) Subject: seatd: import upstream patch to fix build for PowerPC X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bed571414aa6249aab4e53d25b7296df381bf21d;p=feed%2Fvideo.git seatd: import upstream patch to fix build for PowerPC Backport patch merged upstream https://git.sr.ht/~kennylevinsen/seatd/commit/d57109285591594de5d37d9ad158e2616875be7c Signed-off-by: Daniel Golle --- diff --git a/libs/seatd/Makefile b/libs/seatd/Makefile index 3c85092..999a72d 100644 --- a/libs/seatd/Makefile +++ b/libs/seatd/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=seatd PKG_VERSION:=0.9.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://git.sr.ht/~kennylevinsen/seatd diff --git a/libs/seatd/patches/001-evdev-cast-ioctl-request-to-int.patch b/libs/seatd/patches/001-evdev-cast-ioctl-request-to-int.patch new file mode 100644 index 0000000..a12e385 --- /dev/null +++ b/libs/seatd/patches/001-evdev-cast-ioctl-request-to-int.patch @@ -0,0 +1,29 @@ +From d57109285591594de5d37d9ad158e2616875be7c Mon Sep 17 00:00:00 2001 +From: Daniel Golle +Date: Sat, 30 Nov 2024 00:43:00 +0000 +Subject: [PATCH] evdev: cast ioctl request to int + +Compile on PPC64 fails with error: +../common/evdev.c: In function 'evdev_revoke': +../common/evdev.c:26:26: error: overflow in conversion from 'long unsigned int' to 'int' changes value from '2147763601' to '-2147203695' [-Werror=overflow] + 26 | return ioctl(fd, EVIOCREVOKE, NULL); + +Prevent overflow warning by using explicit cast to int. + +Signed-off-by: Daniel Golle +Link: https://git.sr.ht/~kennylevinsen/seatd/commit/d57109285591594de5d37d9ad158e2616875be7c +--- + common/evdev.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/common/evdev.c ++++ b/common/evdev.c +@@ -23,7 +23,7 @@ int path_is_evdev(const char *path) { + } + + int evdev_revoke(int fd) { +- return ioctl(fd, EVIOCREVOKE, NULL); ++ return ioctl(fd, (int)EVIOCREVOKE, NULL); + } + #else + int path_is_evdev(const char *path) {