tech-userlevel archive

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

Re: intptr_t, kqueue: history/rationale of type change



On Thu, Oct 08, 2026 at 08:54:08AM +0100, Greg Troxel wrote:
> While updating matrix-synapse to 1.162.0, a rust create "mio" failed to
> build with type errors:
> 
>      Compiling mio v1.0.4
>   error[E0308]: mismatched types
>      --> /tmp/work/chat/matrix-synapse/work/vendor/mio-1.0.4/src/sys/unix/selector/kqueue.rs:60:20
>       |
>    60 |             udata: $data as UData,
>       |                    ^^^^^^^^^^^^^^ expected `*mut c_void`, found `isize`
>   ...
>   132 |             let kevent = kevent!(fd, libc::EVFILT_WRITE, flags, token.0);
>       |                          ----------------------------------------------- in this macro invocation

You can use
e.g. devel/py-ruff/patches/patch-.._vendor_mio-1.0.4_src_sys_unix_selector_kqueue.rs
to fix this.

The problem with the crate ecosystem is that, even when we fix bugs
upstream, it takes a long while until the fixed versions are
propagated to the packages we're interested in...
 Thomas


Home | Main Index | Thread Index | Old Index