On Sun, Nov 14, 2021 at 10:39:55PM +0100, Rafael Sadowski wrote:
> 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.

Perhaps I should have explained in more detail.

I'm talking about alacritty's wayland feature. By default, alacritty
enables both its wayland and its x11 feature. The crates that made you
run away are there for the former. You can see this here:

$ tail -5  alacritty/Cargo.toml
[features]
default = ["wayland", "x11"]
x11 = ["copypasta/x11", "glutin/x11", "x11-dl", "png"]
wayland = ["copypasta/wayland", "glutin/wayland", "wayland-client"]
nightly = []

If copypasta is built with the wayland feature enabled, it pulls in
smithay-clipboard, which pulls in... and this then ends up failing to
build if and only if libxkbcommon is absent.

That stuff isn't packaged, so libxkbcommon is neither a BDEP nor an LDEP,
hence my suggestion of disabling the wayland feature, which is this part
of my diff:

> > +# 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

Reply via email to