Wednesday, August 24, 2022

Re: [new] x11/alacritty

On Fri, Sep 03 2021, Frederic Cambus <fred@statdns.com> wrote:
> On Mon, Aug 12, 2019 at 07:39:23AM +0200, Theo Buehler wrote:
>> On Sun, Aug 11, 2019 at 11:30:09PM +0100, Stuart Henderson wrote:
>> > So the claimed advantage is that it's super fast, but actually it uses way
>> > more cpu than probably any other terminal emulator in the tree except
>> > cool-retro-term?
>>
>> Yes, it is blazing fast. matthieu's test of 'cat /etc/termcap' completes
>> in under 0.1s while xterm uses 0.2-0.3s. It does feel way snappier than
>> xterm in general.
>>
>> It looks like I made CPU use worse by about a factor of 2 due to using
>> vm.malloc_conf=CFJ. Still, ~5% is way more than it should need.
>>
>> Another advantage is that contrary to xterm it is trivial to configure
>> thanks to a self-documenting .yml config file.
>>
>> > Is this useful enough to be worth adding so much time to a bulk build?
>>
>> I doubt it.
>>
>> > It will likely need to be amd64-only.
>>
>> Probably. Testing on other archs would need more time than I currently
>> have.
>
> Resurrecting this as it seems the requirements are much more reasonable
> nowadays, and I can build the latest version in 4 minutes on my Ryzen 5
> PRO 2500U laptop:
>
> Finished release [optimized] target(s) in 4m 07s

Now that the build time is much smaller, what about enabling it on more
architectures? The diff below would enable it on all archs, including
powerpc64 and riscv64 (should be enabled soonish).

I won't argue over the usefulness of this port on said architectures
but all the rust archs have drm drivers for GPU acceleration so why not?

ok?



Index: .//Makefile
===================================================================
RCS file: /home/cvs/ports/x11/alacritty/Makefile,v
retrieving revision 1.6
diff -u -p -p -u -r1.6 Makefile
--- .//Makefile 11 Mar 2022 20:15:20 -0000 1.6
+++ .//Makefile 24 Aug 2022 22:26:13 -0000
@@ -1,5 +1,3 @@
-ONLY_FOR_ARCHS = amd64
-
COMMENT = cross-platform, GPU-accelerated terminal emulator
# devel/cargo MODULES adds DISTFILES, GH_* didn't
DISTFILES += ${DISTNAME}${EXTRACT_SUFX}
@@ -10,6 +8,7 @@ MAINTAINER = Eric Auge <eau+obsd@unix4fu
GH_ACCOUNT = alacritty
GH_PROJECT = alacritty
GH_TAGNAME = v0.10.0
+REVISION = 0

# Apache 2.0
PERMIT_PACKAGE = Yes
@@ -19,6 +18,8 @@ WANTLIB += c c++abi fontconfig freetype
MODULES = devel/cargo \
lang/python

+# for riscv64 and powerpc64, please keep: cc >= 1.0.73 and libc >= 0.2.113
+MODCARGO_CRATES_UPDATE = cc libc
MODCARGO_RUSTFLAGS += -L${PREFIX}/lib

# Disable wayland feature. Breaks the build if libxkbcommon is absent
Index: .//crates.inc
===================================================================
RCS file: /home/cvs/ports/x11/alacritty/crates.inc,v
retrieving revision 1.3
diff -u -p -p -u -r1.3 crates.inc
--- .//crates.inc 11 Mar 2022 20:15:20 -0000 1.3
+++ .//crates.inc 24 Aug 2022 21:20:29 -0000
@@ -8,7 +8,7 @@ MODCARGO_CRATES += bitflags 1.2.1 # MIT/
MODCARGO_CRATES += block 0.1.6 # MIT
MODCARGO_CRATES += bumpalo 3.9.1 # MIT/Apache-2.0
MODCARGO_CRATES += calloop 0.9.3 # MIT
-MODCARGO_CRATES += cc 1.0.72 # MIT/Apache-2.0
+MODCARGO_CRATES += cc 1.0.73 # MIT/Apache-2.0
MODCARGO_CRATES += cfg-if 0.1.10 # MIT/Apache-2.0
MODCARGO_CRATES += cfg-if 1.0.0 # MIT/Apache-2.0
MODCARGO_CRATES += cgl 0.3.2 # MIT / Apache-2.0
@@ -79,7 +79,7 @@ MODCARGO_CRATES += khronos_api 3.1.0 # A
MODCARGO_CRATES += lazy-bytes-cast 5.0.1 # BSL-1.0
MODCARGO_CRATES += lazy_static 1.4.0 # MIT/Apache-2.0
MODCARGO_CRATES += lazycell 1.3.0 # MIT/Apache-2.0
-MODCARGO_CRATES += libc 0.2.112 # MIT OR Apache-2.0
+MODCARGO_CRATES += libc 0.2.132 # MIT OR Apache-2.0
MODCARGO_CRATES += libloading 0.7.2 # ISC
MODCARGO_CRATES += linked-hash-map 0.5.4 # MIT/Apache-2.0
MODCARGO_CRATES += lock_api 0.4.5 # Apache-2.0/MIT
Index: .//distinfo
===================================================================
RCS file: /home/cvs/ports/x11/alacritty/distinfo,v
retrieving revision 1.2
diff -u -p -p -u -r1.2 distinfo
--- .//distinfo 29 Jan 2022 12:11:51 -0000 1.2
+++ .//distinfo 24 Aug 2022 21:20:29 -0000
@@ -9,7 +9,7 @@ SHA256 (cargo/bitflags-1.2.1.tar.gz) = z
SHA256 (cargo/block-0.1.6.tar.gz) = DYwf72kJQdPneI0yhRdZH+zGhMCECEcC1v8WQemTaZo=
SHA256 (cargo/bumpalo-3.9.1.tar.gz) = pKRaRqsfJBLlPToK3nb/rSAlgEKUVpquOHIxoM1uCJk=
SHA256 (cargo/calloop-0.9.3.tar.gz) = vy7sYe/laqHoE/USaVkpaTPPBwADDkMUeGxId5pmq4I=
-SHA256 (cargo/cc-1.0.72.tar.gz) = IqkTe5XqBoZOAYN1tyrft9tub2jPyN9aBNACiAUEhe4=
+SHA256 (cargo/cc-1.0.73.tar.gz) = L/8qaSezu4f5WV1nGWpwST9idoenHYeg1pIkLDP1jBE=
SHA256 (cargo/cfg-if-0.1.10.tar.gz) = R4W90clrKoRrK9fMAuhraz2/FOflNEbE9UySo2EECCI=
SHA256 (cargo/cfg-if-1.0.0.tar.gz) = uvHeQzl2FYi8Bhnjy8ASDuWC67dLU7Tvv3kRe9LaQP0=
SHA256 (cargo/cgl-0.3.2.tar.gz) = DO0FUSNOh6/uEkEdU1ZI3YnS5/NMeLdTOVVnr/PUR/8=
@@ -80,7 +80,7 @@ SHA256 (cargo/khronos_api-3.1.0.tar.gz)
SHA256 (cargo/lazy-bytes-cast-5.0.1.tar.gz) = ECV0mfCJzRVq2C0KnNV9lQH6LJiQaJkql+s8J4NvIGs=
SHA256 (cargo/lazy_static-1.4.0.tar.gz) = 4qutI/vEKzcA8vJ5hE3IMq2ysusGmy35GPRVxOGMxkY=
SHA256 (cargo/lazycell-1.3.0.tar.gz) = gw0Izh0dlB5rMGRfGg61ZDAT2DXON3ml/CCCYdvhD1U=
-SHA256 (cargo/libc-0.2.112.tar.gz) = GwPRfzZKOgQtXl1GsFO7v4LJLJQwxZLdTAZNxu6ZcSU=
+SHA256 (cargo/libc-0.2.132.tar.gz) = g3Hk5TQcOpbbEn6yRlrGgc7UxDPgHdDpOK2+8mupO6U=
SHA256 (cargo/libloading-0.7.2.tar.gz) = r+ID1mnsl5txKGGbrlpjt7QukgPBspFGB57gXi9gS1I=
SHA256 (cargo/linked-hash-map-0.5.4.tar.gz) = f7mzivkmCBQLhraTYEuf/MWCQkCkhNHs1HlbrLL+iPM=
SHA256 (cargo/lock_api-0.4.5.tar.gz) = cSpNCTyZduJOfbykHbiV2ry6w4619ARTk9F6lb37EQk=
@@ -211,7 +211,7 @@ SIZE (cargo/bitflags-1.2.1.tar.gz) = 167
SIZE (cargo/block-0.1.6.tar.gz) = 4077
SIZE (cargo/bumpalo-3.9.1.tar.gz) = 77507
SIZE (cargo/calloop-0.9.3.tar.gz) = 55389
-SIZE (cargo/cc-1.0.72.tar.gz) = 57495
+SIZE (cargo/cc-1.0.73.tar.gz) = 57880
SIZE (cargo/cfg-if-0.1.10.tar.gz) = 7933
SIZE (cargo/cfg-if-1.0.0.tar.gz) = 7934
SIZE (cargo/cgl-0.3.2.tar.gz) = 7557
@@ -282,7 +282,7 @@ SIZE (cargo/khronos_api-3.1.0.tar.gz) =
SIZE (cargo/lazy-bytes-cast-5.0.1.tar.gz) = 4354
SIZE (cargo/lazy_static-1.4.0.tar.gz) = 10443
SIZE (cargo/lazycell-1.3.0.tar.gz) = 12502
-SIZE (cargo/libc-0.2.112.tar.gz) = 571445
+SIZE (cargo/libc-0.2.132.tar.gz) = 595317
SIZE (cargo/libloading-0.7.2.tar.gz) = 27229
SIZE (cargo/linked-hash-map-0.5.4.tar.gz) = 16166
SIZE (cargo/lock_api-0.4.5.tar.gz) = 25199


--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE

No comments:

Post a Comment