pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/fastfetch



Module Name:    pkgsrc
Committed By:   vins
Date:           Sun Jun  7 08:08:21 UTC 2026

Modified Files:
        pkgsrc/sysutils/fastfetch: Makefile distinfo options.mk

Log Message:
fastfetch: update to 2.64.2

changes (since 2.62.1)

# 2.64.2

Bugfixes:
* Fixes image rendering being wiped quickly (#2374)
    * Regression from v2.64.0
* Fixes ASCII logo being overwritten in `--dynamic-interval` mode
    * Regression from v2.64.0

Logos:
* Updates OpenWrt and adds a small variant (#2376)
    * The old one is renamed to `openwrt_old`

# 2.64.1

Features:
* Adds a CMake option `-DPACKAGES_REMOVE_DISABLED` to remove detection code of disabled packages (`-DPACKAGES_DISABLE_<PACKAGE_NAME>`) for slightly smaller binary size (Packages)

Bugfixes:
* Fixes compatibility issues with Lua 5.3
* Avoid possible infinite recursion in `encode_json` when encoding deeply nested tables or circular references
* Fixes compilation issues when building with old macOS SDKs

# 2.64.0

New **optional build** dependencies:
* [`libva`](https://github.com/intel/libva) and [`libvdpau`](https://www.freedesktop.org/wiki/Software/VDPAU) for the new `Codec` module.
* [Lua 5.3 to 5.5](https://www.lua.org/) for Lua scripting support, or [QuickJS](https://github.com/quickjs-ng/quickjs) v0.15.0 or newer for JavaScript scripting support.

Features:
* Adds `Codec` module support for Windows, macOS, Linux, and Android for hardware-accelerated video codec detection (Codec)
    * Backends used (results may vary depending on the backend due to driver differences):
        * Linux and BSD: VA-API (default) and VDPAU (fallback for NVIDIA). Fastfetch must be built with `libva` and `libvdpau` support to enable these backends.
        * Windows: D3D12VA (Windows 11) and D3D11VA+MFT (Windows 10 or older)
        * macOS: VideoToolbox
        * Android: AMediaCodec
        * Common: Vulkan Video (disabled by default; can be enabled with `"useVulkan": true`)
    * By default, both encoders and decoders are reported. If no codecs are detected for a given type, `None` is reported. This behavior can be configured using the `"showType": "encoder|decoder"` 
option.
* Adds experimental Lua script support for custom formats (Global)
    * Basic usage (using `Title` as an example): `{ "type": "title", "format": "lua:return string.format('Hello %s@%s', (...).userName, (...).hostName)" }`. The `lua:` prefix indicates a Lua script. 
A `return` statement is required to pass the final result back to the fastfetch module; otherwise, `nil` is returned implicitly and the entire module output is skipped.
    * Parameters are passed via variable arguments `(...)`. Users can assign them to named variables for better readability. For example: `lua:local args = ...; string.format('Hello %s@%s', 
args.userName, args.hostName)`.
    * The Lua interpreter instance is shared across all modules. This allows users to store and manipulate data across modules. For example:
        * `{ "type": "shell", "format": "lua:shell = ..." } // Note: no "return" here`
        * `{ "type": "terminal", "format": "lua:return shell.prettyName .. ' in ' .. (...).prettyName" } // This will print the detected shell and terminal names`
    * A `json_encode(table, is_pretty)` function has been added to the Lua API for easier debugging. For example, `lua:return json_encode(...)` will print all available variables and their values in 
JSON format.
    * Supported Lua versions: Lua 5.3 to 5.5 (Lua 5.1 and LuaJIT are not supported). The Lua version is auto-detected at build time. Once built, users can check the configured Lua version using 
`fastfetch --list-features`.
* Adds experimental QuickJS script support for custom formats as an alternative to Lua (Global)
    * Basic usage: `{ "type": "title", "format": "qjs:`Hello ${this.userName}@${this.hostName}`" }`. The `qjs:` prefix indicates a JavaScript script. No `return` statement is needed; the final result 
is simply the evaluated value of the script.
    * Parameters are passed via the `this` object. Usage is mostly the same as Lua, but using JavaScript syntax.
    * Requires [quickjs-ng v0.15.0](https://github.com/quickjs-ng/quickjs/releases/tag/v0.15.0) or newer.
* Adds CMake options `-DMODULE_DISABLE_<MODULE_NAME>=ON` to disable modules at compile time for a smaller binary size
    * Use `cmake -L . | grep MODULE_DISABLE_` to list all available options.
    * These options rely on LTO for dead code elimination (`-DCMAKE_BUILD_TYPE=Release` should enable LTO by default).
* Adds the ability to remove unneeded ASCII logos without modifying the fastfetch source code, further reducing binary size
    * Simply remove the corresponding logo file from the logo directory (`src/logo/ascii/[a-z]/*`) and re-run `cmake`.
* Improves string manipulation specifiers in custom formats
    * They are now ANSI escape-aware and work correctly with colored output (e.g., percentages with `num-color`) (#2364). Limitations:
        * They are still not wide-character aware and treat CJK and emoji characters as raw bytes.
        * Escape sequences in the middle of strings are not supported.
    * A new `|` specifier has been added to center strings. For example, `{user-name|20}` will center the username in a 20-character-wide field.
* Adds preliminary `Bootmgr`, `Brightness`, and `WMTheme` detection support for Haiku (#2358, Haiku)
* Adds `Wallpaper` and `WMTheme` detection support for the COSMIC desktop environment (Linux)
* Improves terminal name detection for Nix packages (#2352, Terminal, Linux)
* Adds DDC/CI brightness detection support for FreeBSD (Brightness, FreeBSD)
    * DDC/CI communication can be very slow. Users can set the `ddcciSleep: null` option to skip DDC/CI detection.
* Reworks the built-in logo printing logic. ASCII logos and modules are now printed line by line, avoiding issues like #2239
    * Note: Image logos are not affected by this change and still print the entire image first before printing any modules.
* Adds a new `--logo-padding-bottom` option to control the padding between the bottom of the logo and the first module when `--logo-position top` is used
    * Previously, `--logo-padding-right` was used for both right and bottom padding.
* Adds `Samsung Exynos 2600` to CPU detection (CPU, Android)
* Adds terminal font detection support for the Muxy terminal (TerminalFont, macOS)
* Improves the performance of BusyBox (ash) version detection and always reports `ash` as the pretty name (Shell, Linux)

Bugfixes:
* Fixes SwayFX version detection (WM, Linux)
* Fixes fallback font detection for Ghostty (TerminalFont, macOS)
* Fixes `--stat` output to correctly align with the right border (Global)
* Fixes boot manager on macOS 26 (mBoot) is incorrectly reported as `iBoot` (Bootmgr, macOS)

Logos:
* Adds Quasar (#2338, #2323), Origami, Origami_small (#2321, #2322), BerserkArch (#2324, #2310), and NixOS2 (#2346)
* Minor tweaks and color fixes for the NixOS_small logo (#2357)
* Updates NurOS (#2366)

# 2.63.1

Bugfixes:
* Fixes media length detection for Chrome on Linux (Media, Linux)
* Fixes segmentation fault when specifying unsupported modules on command line
* Disables usage of Netlink for Wi-Fi detection on s390x architectures (Wifi, Linux)

# 2.63.0

Changes:
* Introduces a new **build-only** dependency, `libefl`, for querying the Enlightenment window manager configuration:
    * `libefl-all-dev` on Debian/Ubuntu
    * `libefl-devel` on Fedora
    * `efl` on Arch Linux
* The Windows-specific options `battery.useSetupApi` and `global.wmiTimeout` have been removed. (Windows)

Features:
* Adds wallpaper detection support on Haiku (#2314, Wallpaper, Haiku)
* Adds Wi-Fi 6 GHz channel detection and improves protocol reporting (Wifi, Linux)
* Improves Deepin version detection using `/etc/os-version` (#2300, OS, Linux)
* Adds Ubuntu Kylin and Ubuntu Unity flavor detection (OS, Linux)
* Adds NebiDE support (WMTheme, Linux)
* Adds package counting for `cards` on NuTyX (#2287, Packages, Linux)
* Adds `{am-pm}` to custom format for 12-hour time with am/pm (DateTime)
* Adds support for the Enlightenment desktop environment (#2165, WM, Linux)
* Adds support for playback progress detection (Media)
    * The module now prints the current playback position and total media duration when supported by the player. If you prefer the previous behavior, you can set `media.percent.type: ["hide-others"]` 
to hide the new fields.
* Adds support for `global.playerName` for Windows (Media, Windows)
    * This allows detecting a specified media player while ignoring others.
* Multi-battery detection is enabled on Windows by default (Battery, Windows)

Bugfixes:
* Improves DisplayServer compatibility on Linux by handling newer `kde-output-device-v2` protocol updates (DisplayServer, Linux)
    * This fixes a long-standing issue where display detection fails with an `interface 'kde_output_device_mode_v2' has no event X` error.
* Improves Wi-Fi reliability on Linux by switching to a netlink implementation (Wifi, Linux)
* Improves network interface reliability and default route selection on macOS and Windows (Netif, macOS / Windows)
* Validates temperature color thresholds as integers when parsing JSON configs (Temps)
* Fixes TDE Konsole version detection (#2319, Terminal, Linux)
* Various internal cleanups and optimizations


To generate a diff of this commit:
cvs rdiff -u -r1.47 -r1.48 pkgsrc/sysutils/fastfetch/Makefile
cvs rdiff -u -r1.28 -r1.29 pkgsrc/sysutils/fastfetch/distinfo
cvs rdiff -u -r1.17 -r1.18 pkgsrc/sysutils/fastfetch/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/fastfetch/Makefile
diff -u pkgsrc/sysutils/fastfetch/Makefile:1.47 pkgsrc/sysutils/fastfetch/Makefile:1.48
--- pkgsrc/sysutils/fastfetch/Makefile:1.47     Thu May 14 16:42:05 2026
+++ pkgsrc/sysutils/fastfetch/Makefile  Sun Jun  7 08:08:21 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.47 2026/05/14 16:42:05 ryoon Exp $
+# $NetBSD: Makefile,v 1.48 2026/06/07 08:08:21 vins Exp $
 
-DISTNAME=      fastfetch-2.62.1
-PKGREVISION=   1
+DISTNAME=      fastfetch-2.64.2
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=fastfetch-cli/}
 GITHUB_TAG=    ${PKGVERSION_NOREV}

Index: pkgsrc/sysutils/fastfetch/distinfo
diff -u pkgsrc/sysutils/fastfetch/distinfo:1.28 pkgsrc/sysutils/fastfetch/distinfo:1.29
--- pkgsrc/sysutils/fastfetch/distinfo:1.28     Sun May  3 18:05:40 2026
+++ pkgsrc/sysutils/fastfetch/distinfo  Sun Jun  7 08:08:21 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.28 2026/05/03 18:05:40 vins Exp $
+$NetBSD: distinfo,v 1.29 2026/06/07 08:08:21 vins Exp $
 
-BLAKE2s (fastfetch-2.62.1.tar.gz) = de020fb11d1e649dced15354c19a10a1dc08a7c69eef9cb82d24b57a2ea6c807
-SHA512 (fastfetch-2.62.1.tar.gz) = 056f120841f4c6dd7cfc4bdcc5731e21d377abb2ed923b2964128c94d6d7e404f22c756fb17bd25e4e36dba5e09f3f910d918c6aa3e319507e740aa34c11a41c
-Size (fastfetch-2.62.1.tar.gz) = 1463802 bytes
+BLAKE2s (fastfetch-2.64.2.tar.gz) = 14054772f258a2d21adb0171881f011468fb1b53a14ad4647aa20385b96104ff
+SHA512 (fastfetch-2.64.2.tar.gz) = 203c3941787d1d39f0322869222abb30305713ede20d72da07212910da1e887b083735c9b21afb14dc272ae19efb5bea2bd37ca6e004cf9ad41837ca8d734195
+Size (fastfetch-2.64.2.tar.gz) = 1514626 bytes

Index: pkgsrc/sysutils/fastfetch/options.mk
diff -u pkgsrc/sysutils/fastfetch/options.mk:1.17 pkgsrc/sysutils/fastfetch/options.mk:1.18
--- pkgsrc/sysutils/fastfetch/options.mk:1.17   Sun Apr  5 21:13:52 2026
+++ pkgsrc/sysutils/fastfetch/options.mk        Sun Jun  7 08:08:21 2026
@@ -1,12 +1,11 @@
-# $NetBSD: options.mk,v 1.17 2026/04/05 21:13:52 maya Exp $
+# $NetBSD: options.mk,v 1.18 2026/06/07 08:08:21 vins Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.fastfetch
-PKG_OPTIONS_OPTIONAL_GROUPS=   server sound
+PKG_OPTIONS_OPTIONAL_GROUPS=   server
 PKG_OPTIONS_GROUP.server=      wayland x11
-PKG_OPTIONS_GROUP.sound=       oss pulseaudio
 
-PKG_SUPPORTED_OPTIONS= chafa dconf dbus glib2 imagemagick libelf opencl \
-                       python sqlite3 threads xfce4-wm
+PKG_SUPPORTED_OPTIONS= chafa dconf dbus glib2 imagemagick libelf lua opencl \
+                       oss pulseaudio python sqlite3 threads xfce4-wm
 PKG_SUGGESTED_OPTIONS= glib2 x11
 
 
@@ -70,7 +69,7 @@ CMAKE_CONFIGURE_ARGS+=  -DENABLE_CHAFA=O
 ##
 ## libdrm
 ## * Fallback if both wayland and x11 are not available
-## * AMD GPU properties detection)
+## * AMD GPU properties detection
 ##
 .if !empty(PKG_OPTIONS:Mlibdrm)
 .  include "../../x11/libdrm/buildlink3.mk"
@@ -100,6 +99,16 @@ CMAKE_CONFIGURE_ARGS+=  -DENABLE_ELF=OFF
 .endif
 
 ##
+## Lua
+## Adds lua scripting support.
+##
+.if !empty(PKG_OPTIONS:Mlua)
+.  include "../../lang/lua/buildlink3.mk"
+.else
+CMAKE_CONFIGURE_ARGS+=  -DENABLE_LUA=OFF
+.endif
+
+##
 ## ImageMagick
 ## Supports image output using sixel or kitty graphics protocol.
 ##



Home | Main Index | Thread Index | Old Index