🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.netbsd.tech.userlevel
Article #5

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

#5
From: Thomas Klausner
Date: Thu, 08 Oct 2026 13:21
26 lines
2824 bytes
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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <aseYgUW-urrmH2gj@exadelic.gatalith.at>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <rmijynsuzdb.fsf@s1.lexort.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Thomas Klausner <wiz@gatalith.at>
Newsgroups: muc.lists.netbsd.tech.userlevel
Subject: Re: intptr_t, kqueue: history/rationale of type change
Date: Thu, 8 Oct 2026 15:21:03 +0200
Organization: Newsgate at muc.de e.V.
Sender: tech-userlevel-owner@NetBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <aseYgUW-urrmH2gj@exadelic.gatalith.at>
References: <rmijynsuzdb.fsf@s1.lexort.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="54708"; mail-complaints-to="news-admin@muc.de"
Authentication-Results: mail.netbsd.org (amavisd-new);
	dkim=pass (1024-bit key) header.d=gatalith.at
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gatalith.at; s=dkim;
	t=1791465664;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=qyzuXMcxF4heZPRpe2VCTLlD7hMXrBYJnxAsIT/YFiE=;
	b=fmSBj9zUmO4lR6XEon4PCO0/8RI+rQ+kZHEMxYbTYoc+vhPfHY6RuetwZWs0jPJp+I54J2
	R/cKw44wHzBYqPI4rYQp0gnQkQ0o//iS8nWthYrfp5MVxgRnWPbWNe9c6ANt2gM1oG5DhY
	l81p6myGSrbmQniCwHnOKYztJ3hw42E=
Content-Disposition: inline
In-Reply-To: <rmijynsuzdb.fsf@s1.lexort.com>
Precedence: bulk
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes