pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libopeninput: use external libevdev headers, fix ctype usage



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Fri Feb 27 16:01:26 2026 +0100
Changeset:	8ad3a64e6865177fc1b14703579f932f1e2060f8

Modified Files:
	libopeninput/Makefile
	libopeninput/distinfo
Added Files:
	libopeninput/patches/patch-meson.build
	libopeninput/patches/patch-src_util-prop-parsers.c

Log Message:
libopeninput: use external libevdev headers, fix ctype usage

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8ad3a64e6865177fc1b14703579f932f1e2060f8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libopeninput/Makefile                              |  4 ++++
 libopeninput/distinfo                              |  2 ++
 libopeninput/patches/patch-meson.build             | 15 +++++++++++++++
 libopeninput/patches/patch-src_util-prop-parsers.c | 15 +++++++++++++++
 4 files changed, 36 insertions(+)

diffs:
diff --git a/libopeninput/Makefile b/libopeninput/Makefile
index 388189fa72..1af851bdde 100644
--- a/libopeninput/Makefile
+++ b/libopeninput/Makefile
@@ -20,6 +20,10 @@ LDFLAGS+=	-levdev
 PKGCONFIG_OVERRIDE+=		output/meson-private/libinput.pc
 PKGCONFIG_OVERRIDE_STAGE=	post-build
 
+post-extract:
+	# remove internal libevdev header
+	${RM} -rf ${WRKSRC}/include/libevdev
+
 .include "../../devel/meson/build.mk"
 .include "../../devel/libepoll-shim/buildlink3.mk"
 .include "../../devel/libudev-bsd/buildlink3.mk"
diff --git a/libopeninput/distinfo b/libopeninput/distinfo
index 22ec9f798d..f9b7093e91 100644
--- a/libopeninput/distinfo
+++ b/libopeninput/distinfo
@@ -3,5 +3,7 @@ $NetBSD$
 BLAKE2s (libopeninput-1.26.2-5e93d5c82d455c3901c2cb9b40dbbe5358a88e30.tar.gz) = 633e65ec1d232fb9311a2c9651017811c2c394ee66f48ee191879236dfdcc44b
 SHA512 (libopeninput-1.26.2-5e93d5c82d455c3901c2cb9b40dbbe5358a88e30.tar.gz) = 66bc91cc789a7fcd0b7e5c1ef8d35853f5f4c80adae9ca1c3db8984ccaede01757c904ac1a878c34e2eb0cfeff92114040821be6eed6d8874f9ffa2845c697fd
 Size (libopeninput-1.26.2-5e93d5c82d455c3901c2cb9b40dbbe5358a88e30.tar.gz) = 1058625 bytes
+SHA1 (patch-meson.build) = 3add688ac7200ac350c9e48b6e706c86464823d5
+SHA1 (patch-src_util-prop-parsers.c) = 9e119446757420e7e8d508b350c8220c8f7742b9
 SHA1 (patch-src_wscons.c) = a8c69a31f222aa4684b3dfac475fba0a002afe82
 SHA1 (patch-src_wscons.h) = 23dfb69f63dab9130337ea5738a99f95be3b0498
diff --git a/libopeninput/patches/patch-meson.build b/libopeninput/patches/patch-meson.build
new file mode 100644
index 0000000000..596a2cc49d
--- /dev/null
+++ b/libopeninput/patches/patch-meson.build
@@ -0,0 +1,15 @@
+$NetBSD$
+
+* Use external libevdev.h
+
+--- meson.build.orig	2026-02-27 15:47:49.719316226 +0100
++++ meson.build
+@@ -146,7 +146,7 @@ pkgconfig = import('pkgconfig')
+ if host_machine.system() == 'openbsd' or host_machine.system() == 'netbsd'
+ 	dep_udev = dependency('libudev')
+ 	dep_mtdev = []
+-	dep_libevdev = []
++	dep_libevdev = dependency('libevdev')
+ else
+ 	dep_udev = dependency('libudev')
+ 	dep_mtdev = dependency('mtdev', version : '>= 1.1.0')
diff --git a/libopeninput/patches/patch-src_util-prop-parsers.c b/libopeninput/patches/patch-src_util-prop-parsers.c
new file mode 100644
index 0000000000..14d0ff933a
--- /dev/null
+++ b/libopeninput/patches/patch-src_util-prop-parsers.c
@@ -0,0 +1,15 @@
+$NetBSD$
+
+* Fix ctype usage
+
+--- src/util-prop-parsers.c.orig	2026-02-27 15:55:33.037318106 +0100
++++ src/util-prop-parsers.c
+@@ -65,7 +65,7 @@ parse_mouse_dpi_property(const char *pro
+ 		if (*prop == '*') {
+ 			prop++;
+ 			is_default = true;
+-			if (!isdigit(prop[0]))
++			if (!isdigit((unsigned char)prop[0]))
+ 				return 0;
+ 		}
+ 


Home | Main Index | Thread Index | Old Index