head 1.2; access; symbols pkgsrc-2025Q4:1.1.0.2 pkgsrc-2025Q4-base:1.1; locks; strict; comment @// @; 1.2 date 2025.12.28.02.25.17; author fox; state dead; branches; next 1.1; commitid nJ9wqNwL4iXWs7oG; 1.1 date 2025.10.15.23.22.28; author wiz; state Exp; branches; next ; commitid X6Cm6jNMj09INIeG; desc @@ 1.2 log @sysutils/btop: Update to 1.4.6 - Remove the upstreamed patches. - Update required GCC to 14. - Fix permissions for the files. Changes since 1.4.5: ## v1.4.6 References | Description | Author(s) --- | --- | --- #1272 | Skip 'H' and 'HX' suffix in AMD cpu name trimming | @@ramdomPTM #1268 | feature: add process renice functionality | @@goddamnparticle #1285 | Revert "Use /sys/dev/block/MAJOR:MINOR instead of /sys/block/NAME for disk I/O" #1270 | @@deckstose #1277 | feat: Introduce cpu frequency display modes | @@emiliopedrollo #1282 | Fix CPU frequency detection for LoongArch CPUs | @@Twopic2 #1275 | fix arrow keys that send 'O' instead of '[' | @@vandabbin #1251 | OpenBSD: battery: add support for watthour and watts sensors | @@shtrophic #1208 | Add Gotham theme | @@jrebs #1291 | Fix macOS deadlocks and race conditions in collector threads #1292 | @@kuzmeech #1296 | fix: btop crash on arm cpu | @@emiliopedrollo @@zenofile #984 | Added ability to set which gpu vendors to enable | @@thedustinmiller #1274 | added tree toggle of expand/collapse for children of process | @@irabrine #1300 | Use right key codes to match f1 and f2 keys | @@vandabbin #1305 | Handle missing SMC gracefully on macOS | @@achille #1309 | Fix redraw in proc list when changing sort order | @@vandabbin #1304 | Fix load average and GPU watts leaking past box border | @@vandabbin #1220 | feat: respect effective cpus from cgroup | @@deckstose #1218 | feat: display container engine | @@deckstose #1315 | feat: raise cpp standard to c++23 | @@deckstose d0cbaf7 | Add configuration toggle for terminal synchronization | @@aristocratos #1306 | Implement feat Process list pausing | @@vandabbin #1322 | flip name, command, and user sorting | @@vandabbin #1334 | fix tty theme for pause banner | @@vandabbin #1325 | test: add test harness with ctest | @@deckstose #1339 | fix: skip first argument of argv | @@AlvaroParker #1357 | feat: add --themes-dir flag | @@adeci #1359 | fix: don't over-/underflow when parsing --update argument | @@yinghao-w #1362 | fix segfault on musl systems | @@v1cont #1363 | Pass only static duration strings to Config::set in Config::apply_preset | @@yinghao-w #1366 | fix: cpu per-thread totals not reaching 100% | @@Tom94 #1367 | Fix: Align boxes when Cpu bottom and Gpu on | @@yinghao-w #1372 | Minor fixes and improvements for NetBSD | @@fraggerfox #1377 | Fixed GPU rendering | @@TheSovietPancakes #1379 | Fix: Always collect GPU data when cpu_graph_lower = "Auto" | @@yinghao-w #1393 | Fix: humanized units shortening | @@yinghao-w #1401 | Feat: add mouse dragging of scrollbar | @@yinghao-w #1399 | feat: add cli option to dump default config | @@deckstose e969f43 | Added "save_config_on_exit" option to configuration | @@aristocratos @ text @$NetBSD: patch-src_btop.cpp,v 1.1 2025/10/15 23:22:28 wiz Exp $ Help btop find its themes. --- src/btop.cpp.orig 2025-09-19 20:29:22.000000000 +0000 +++ src/btop.cpp @@@@ -46,6 +46,12 @@@@ tab-size = 4 #include #endif +#ifdef __NetBSD__ + #include + #include + #include +#endif + #include "btop_cli.hpp" #include "btop_shared.hpp" #include "btop_tools.hpp" @@@@ -877,6 +883,19 @@@@ int main(const int argc, const char** ar if(!_NSGetExecutablePath(buf, &bufsize)) Global::self_path = fs::path(buf).remove_filename(); } +#elif __NetBSD__ + { + int mib[4]; + char buf[PATH_MAX]; + size_t bufsize = sizeof buf; + + mib[0] = CTL_KERN; + mib[1] = KERN_PROC_ARGS; + mib[2] = getpid(); + mib[3] = KERN_PROC_PATHNAME; + if (sysctl(mib, 4, buf, &bufsize, NULL, 0) == 0) + Global::self_path = fs::path(buf).remove_filename(); + } #endif if (std::error_code ec; not Global::self_path.empty()) { Theme::theme_dir = fs::canonical(Global::self_path / "../share/btop/themes", ec); @ 1.1 log @btop: help it find its themes Based on a patch by RVP in PR 59702. Bump PKGREVISION. @ text @d1 1 a1 1 $NetBSD$ @