In my last bulk, alacritty failed to build. While it does not end up linking against xkbcommon, it does also not build if the libxkbcommon package is absent. A bit of digging revealed that libxkbcommon is picked up via the wayland feature.
This is one way of fixing it. Perhaps there are better options...
Compressed log attached if anyone wants to look.
Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/alacritty/Makefile,v
retrieving revision 1.3
diff -u -p -r1.3 Makefile
--- Makefile 2 Nov 2021 00:02:57 -0000 1.3
+++ Makefile 14 Nov 2021 21:18:05 -0000
@@ -12,7 +12,7 @@ MAINTAINER = Eric Auge <eau+obsd@unix4fu
GH_ACCOUNT = alacritty
GH_PROJECT = alacritty
GH_TAGNAME = v0.9.0
-REVISION = 1
+REVISION = 2
# Apache 2.0
PERMIT_PACKAGE = Yes
@@ -24,11 +24,16 @@ MODULES = devel/cargo \
MODCARGO_RUSTFLAGS += -L${PREFIX}/lib
+# Disable wayland feature. Breaks the build if libxkbcommon is absent
+# copypasta/wayland -> smithay-client-toolkit, glutin
+# ld: error: unable to find library -lxkbcommon
+MODCARGO_NO_DEFAULT_FEATURES = Yes
+MODCARGO_FEATURES = x11
+
MAKE_ENV = ${MODCARGO_ENV}
CONFIGURE_STYLE = cargo
-PATCHORIG = .openbsd.orig
SEPARATE_BUILD = Yes
RELEASE_DIR = ${MODCARGO_TARGET_DIR}/release
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/x11/alacritty/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST 30 Oct 2021 17:23:08 -0000 1.2
+++ pkg/PLIST 14 Nov 2021 21:19:14 -0000
@@ -13,8 +13,8 @@ share/fish/completions/alacritty.fish
share/terminfo/
share/terminfo/a/
share/terminfo/a/alacritty
-share/terminfo/a/alacritty-direct
@comment share/terminfo/a/alacritty+common
+share/terminfo/a/alacritty-direct
share/zsh/
share/zsh/site-functions/
share/zsh/site-functions/_alacritty
alacritty.log.xz
Description: Binary data
