On Sun Nov 14, 2021 at 10:29:36PM +0100, Theo Buehler wrote:
> 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.
In x11/xkbcommon wayland is and was disabled.
>
> This is one way of fixing it. Perhaps there are better options...
>
> Compressed log attached if anyone wants to look.
I have also looked at alacritty but after seeing the following I left
again:
./crates.inc
173:MODCARGO_CRATES += wayland-client 0.28.6 # MIT
174:MODCARGO_CRATES += wayland-commons 0.28.6 # MIT
175:MODCARGO_CRATES += wayland-cursor 0.28.6 # MIT
176:MODCARGO_CRATES += wayland-egl 0.28.6 # MIT
177:MODCARGO_CRATES += wayland-protocols 0.28.6 # MIT
178:MODCARGO_CRATES += wayland-scanner 0.28.6 # MIT
179:MODCARGO_CRATES += wayland-sys 0.28.6 # MIT
For me it comes with it's own wayland :/
>
> 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