git: 08c04a9fe9c4 - main - x11-wm/river: unbreak build after 5d998836b36f

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Wed, 10 Nov 2021 10:58:43 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=08c04a9fe9c43a41c5713ad8104a0271576c1a73

commit 08c04a9fe9c43a41c5713ad8104a0271576c1a73
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-11-10 09:24:08 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-11-10 10:58:09 +0000

    x11-wm/river: unbreak build after 5d998836b36f
    
    ./river/c.zig:18:20: error: C import failed
    pub usingnamespace @cImport({
                       ^
    ./zig-cache/o/daef1847f9aadef85fa78182104dcc98/cimport.h:4:10: note: 'linux/input-event-codes.h' file not found
             ^
    ./river/Cursor.zig:173:14: error: container 'c' has no member called 'setenv'
            if (c.setenv("XCURSOR_SIZE", size_str, 1) < 0) return error.OutOfMemory;
                 ^
    ./river/Cursor.zig:124:5: note: referenced here
        try self.setTheme(null, null);
        ^
    ./river/Seat.zig:105:5: note: referenced here
        try self.cursor.init(self);
        ^
    ./river/InputManager.zig:131:5: note: referenced here
        try seat_node.data.init(default_seat_name);
        ^
    ./river/Server.zig:121:5: note: referenced here
        try self.input_manager.init();
        ^
    ./river/main.zig:97:5: note: referenced here
        try server.init();
        ^
    ./river/InputConfig.zig:291:11: error: container 'c' has no member called 'libinput_device'
            *c.libinput_device,
              ^
    ./river/command/input.zig:200:22: error: container 'c' has no member called 'libevdev_event_code_from_name'
            const ret = c.libevdev_event_code_from_name(c.EV_KEY, args[3]);
                         ^
    ./river/command/input.zig:116:30: error: container 'c' has no member called 'libevdev_event_code_get_name'
                    mem.sliceTo(c.libevdev_event_code_get_name(c.EV_KEY, scroll_button.button), 0),
                                 ^
    ./river/command/map.zig:158:25: error: container 'c' has no member called 'libevdev_event_code_from_name'
        const event_code = c.libevdev_event_code_from_name(c.EV_KEY, name);
                            ^
    ./river/command/map.zig:85:24: note: referenced here
        const event_code = try parseEventCode(allocator, args[3], out);
                           ^
    ./river/command/spawn.zig:44:14: error: container 'c' has no member called 'setsid'
            if (c.setsid() < 0) unreachable;
                 ^
    
    Pointy hat to:  manu
---
 x11-wm/river/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/x11-wm/river/Makefile b/x11-wm/river/Makefile
index 51f8a5bb378a..7bb356e98b6c 100644
--- a/x11-wm/river/Makefile
+++ b/x11-wm/river/Makefile
@@ -9,7 +9,8 @@ COMMENT=	Dynamic tiling Wayland compositor
 LICENSE=	GPLv3+
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	wayland-protocols>0:graphics/wayland-protocols \
+BUILD_DEPENDS=	evdev-proto>0:devel/evdev-proto \
+		wayland-protocols>0:graphics/wayland-protocols \
 		wlroots>=0.14.0:x11-toolkits/wlroots \
 		zig>=0.8.0:lang/zig
 LIB_DEPENDS=	libevdev.so:devel/libevdev \