devel/py-spy: fix build on ARM / POWER
error[E0308]: mismatched types
--> /wrkdirs/usr/ports/devel/py-spy/work/py_spy-0.4.1/cargo-crates/proc-maps-0.4.0/src/freebsd_maps/ptrace.rs:188:52
|
188 | let result = unsafe { ptrace(PT_VM_ENTRY, pid, &vm_entry as *const _ as *mut i8, 0) };
| ------ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*mut u8`, found `*mut i8`
| |
| arguments to this function are incorrect
|
= note: expected raw pointer `*mut u8`
found raw pointer `*mut i8`
note: function defined here
--> /wrkdirs/usr/ports/devel/py-spy/work/py_spy-0.4.1/cargo-crates/proc-maps-0.4.0/src/freebsd_maps/ptrace.rs:150:8
|
150 | fn ptrace(request: c_int, pid: Pid, vm_entry: caddr_t, data: c_int) -> c_int;
| ^^^^^^ --------
For more information about this error, try `rustc --explain E0308`.
error: could not compile `proc-maps` (lib) due to 1 previous error
sysutils/loki: Fix build
Checksum of one of the many required go modules changed, compared
its content to what was on distcache to verify the change is harmless:
diff consul-1.5.1/vendor/k8s.io/client-go/pkg/version/base.go ...
...
< gitVersion string = "v0.0.0-master+40cec98468b"
---
> gitVersion string = "v0.0.0-master+40cec98468b8"
Approved by: portmgr (blanket)
(cherry picked from commit 1dff87feb9cdb23f040422deba3697f5cebf79dc)
sysutils/loki: Fix build
Checksum of one of the many required go modules changed, compared
its content to what was on distcache to verify the change is harmless:
diff consul-1.5.1/vendor/k8s.io/client-go/pkg/version/base.go ...
...
< gitVersion string = "v0.0.0-master+40cec98468b"
---
> gitVersion string = "v0.0.0-master+40cec98468b8"
Approved by: portmgr (blanket)
pw: make manual page more friendly for uid/gid search
pw.8 structure is quite different from usual manual page, especially in
describing -o option usage. Specifically, these paragraphs do not
contain "uid/gid" terms, and have "user id"/"group id" instead,
making searching for "override duplicate safety belt" difficult.
Try to simplify such searches.
Also, clarify uid/gid space between 100 and 1000 as "somewhat special",
as it actually is.
Discussed on: russian telegram FreeBSD group
Reviewed by: eugen, novel
MFC after: 1 week
(cherry picked from commit e89454417b2bfecce9daee10dece2f49632640d3)
pw: make manual page more friendly for uid/gid search
pw.8 structure is quite different from usual manual page, especially in
describing -o option usage. Specifically, these paragraphs do not
contain "uid/gid" terms, and have "user id"/"group id" instead,
making searching for "override duplicate safety belt" difficult.
Try to simplify such searches.
Also, clarify uid/gid space between 100 and 1000 as "somewhat special",
as it actually is.
Discussed on: russian telegram FreeBSD group
Reviewed by: eugen, novel
MFC after: 1 week
(cherry picked from commit e89454417b2bfecce9daee10dece2f49632640d3)
pw: make manual page more friendly for uid/gid search
pw.8 structure is quite different from usual manual page, especially in
describing -o option usage. Specifically, these paragraphs do not
contain "uid/gid" terms, and have "user id"/"group id" instead,
making searching for "override duplicate safety belt" difficult.
Try to simplify such searches.
Also, clarify uid/gid space between 100 and 1000 as "somewhat special",
as it actually is.
Discussed on: russian telegram FreeBSD group
Reviewed by: eugen, novel
MFC after: 1 week
(cherry picked from commit e89454417b2bfecce9daee10dece2f49632640d3)
smp: Use bitwise operation to count cpu number
Previously, we iterated over all CPUs using CPU_FOREACH and checked
individual bits to count valid CPUs. Refactor this to use a bitwise AND
and popcount to count the number of enabled bits directly.
Approved by: markj (mentor)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D54474