Bug 254035 - x11/alacritty: support backend options
Summary: x11/alacritty: support backend options
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mikael Urankar
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2021-03-05 14:35 UTC by Evgenii Khramtsov
Modified: 2021-03-12 13:56 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (mikael)


Attachments
patch (1.05 KB, patch)
2021-03-05 14:35 UTC, Evgenii Khramtsov
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evgenii Khramtsov 2021-03-05 14:35:15 UTC
Created attachment 223001 [details]
patch

Upstream supports backend selection: https://github.com/alacritty/alacritty/issues/3340

An obvious way to support backend selection is to only add CARGO_FEATURES to the port, but it would fail due to: https://github.com/rust-lang/cargo/issues/7727

One OS that supports disabling backends (e.g. Gentoo) does this by applying cargo options not to the root, but to the alacritty subdir: https://gitweb.gentoo.org/repo/gentoo.git/tree/x11-terms/alacritty/alacritty-9999.ebuild

Do the same and add backend options. This is needed for {Wayland,X11}-only builds.

portlint -A && poudriere testport: OK.
Comment 1 commit-hook freebsd_committer freebsd_triage 2021-03-12 11:38:14 UTC
A commit references this bug:

Author: mikael
Date: Fri Mar 12 11:38:07 UTC 2021
New revision: 568171
URL: https://svnweb.freebsd.org/changeset/ports/568171

Log:
  x11/alacritty: Add video backend option

  PR:		254035
  Submitted by:	Evgeniy Khramtsov

Changes:
  head/x11/alacritty/Makefile
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2021-03-12 11:38:36 UTC
Thanks!
Comment 3 Evgenii Khramtsov 2021-03-12 13:51:41 UTC
Ping. You committed 'OPTIONS_DEFAULT= WAYLAND' instead of 'OPTIONS_DEFAULT= WAYLAND X11' which was in the patch. This breaks X11 support for package users (see: https://www.freshports.org/x11/alacritty/). Please fix this before pkg cluster does a rebuild, thanks.
Comment 4 Mikael Urankar freebsd_committer freebsd_triage 2021-03-12 13:56:21 UTC
(In reply to Evgeniy Khramtsov from comment #3)
sorry, fixed in ports r568177