summaryrefslogtreecommitdiff
path: root/sysutils/procs
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2025-01-15 15:29:31 +0100
committerOlivier Certner <olce@FreeBSD.org>2025-01-16 14:48:03 +0100
commite2aa1c868cf04855469be0153669abfd448e1b12 (patch)
tree8e658dbc58ff6802b6d501da7c4d40bdb432b4eb /sysutils/procs
parentports-mgmt/portupgrade: stop warning about wrong package format (diff)
sysutils/procs: Unbreak on CURRENT
This is upstream's fix, so will automatically appear in next versions. It allows compilation on all supported FreeBSD versions. PR: 283410 Reviewed by: emaste Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sysutils/procs')
-rw-r--r--sysutils/procs/Makefile2
-rw-r--r--sysutils/procs/files/patch-src_columns_state.rs13
2 files changed, 13 insertions, 2 deletions
diff --git a/sysutils/procs/Makefile b/sysutils/procs/Makefile
index 7b03aeab9bb4..2d854bb0e960 100644
--- a/sysutils/procs/Makefile
+++ b/sysutils/procs/Makefile
@@ -11,8 +11,6 @@ WWW= https://github.com/dalance/procs
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-BROKEN_FreeBSD_15= compilation fails: cannot find value `CRED_FLAG_CAPMODE` in crate `bsd_kvm_sys`, see https://github.com/dalance/bsd-kvm/issues/4, https://github.com/dalance/bsd-kvm-sys/issues/1, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283410
-
USES= cargo llvm:lib
USE_GITHUB= yes
diff --git a/sysutils/procs/files/patch-src_columns_state.rs b/sysutils/procs/files/patch-src_columns_state.rs
new file mode 100644
index 000000000000..ce5c7bdbbeb3
--- /dev/null
+++ b/sysutils/procs/files/patch-src_columns_state.rs
@@ -0,0 +1,13 @@
+This is upstream's fix. To be removed at the next update.
+
+--- src/columns/state.rs.orig 2024-10-23 10:22:18 UTC
++++ src/columns/state.rs
+@@ -129,7 +129,7 @@ impl Column for State {
+ if (flag & libc::P_SYSTEM as i64) != 0 || info.lock > 0 {
+ state.push_str("L");
+ }
+- if (cr_flags & bsd_kvm_sys::CRED_FLAG_CAPMODE) != 0 {
++ if (cr_flags & libc::KI_CRF_CAPABILITY_MODE as u32) != 0 {
+ state.push_str("C");
+ }
+ if (kiflag & libc::KI_SLEADER as i64) != 0 {