From nobody Thu Sep 11 15:10:37 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cN1GH52Spz66n6G for ; Thu, 11 Sep 2025 15:10:47 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cN1GH2pfhz40f6 for ; Thu, 11 Sep 2025 15:10:47 +0000 (UTC) (envelope-from markjdb@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-qv1-xf2e.google.com with SMTP id 6a1803df08f44-729c10746edso7114586d6.3 for ; Thu, 11 Sep 2025 08:10:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757603442; x=1758208242; darn=freebsd.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :from:to:cc:subject:date:message-id:reply-to; bh=wZDKJhyoLvu1MZSWv9NSebXKhsnruQA0h7EQoR7MJs0=; b=gfJyCIiC8lvHBLEaMC301cs0gD2urfamvPHd6Cfr26cAFnYGRVbhhExYreX7E1+jIr Lq8HhFYVcZLafHCtx2y69xndWjVES7xfx3TLSzrZi+4LgNp1ReRcr3sBzFdH8c7e3kde lv6Dxv1L0pllnnFE6NVttG6lKgdZFM+eZUrs/wHGv6x+NwrSXMV9eUYvYusvcok1iJub vq55SH5HbaI6om2uukjfzlkphbLnqWbKyjKTpLhhdSngdgNePUsh8fJM8IF2tyMP7ATO I8rVLt85CM+3Qj62WS1Yx4cxXWhFL8stHxI6arB1mTtlfYyjc8j0/yZ6BAwnnGmkaT1b bHBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757603442; x=1758208242; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wZDKJhyoLvu1MZSWv9NSebXKhsnruQA0h7EQoR7MJs0=; b=KM+Ays5S1J2zM/M2ngGxw2ODf2A973KFxlgUuquNVR4XkKudoFasrzSgOcu+3X2Htu zqKL983tCjHPytDEPqySMub2tq5kMNAYCRHcKmixBFpe0rqxw6T+nss/Do6ix04fVhpZ 96nR2/kkb1pOSn1x9dNxW6pWv5HazZMQQ71p3v6Wy6hjKlsks0ym+zrVL4j23ehXe5XZ 4WV3LdVrwow73gN5uy5CPMGgHnJU9BvLkNcGowZGTWntFxdV0ehv3jG5DDC0O/ad8Jzv bRJQA1lPdF1XrwIWWsIf6xeHP+MdN6ZE3JwfgI4wehPWuCuPnzPtMrgAAo/M/O5qpk3x wPIQ== X-Forwarded-Encrypted: i=1; AJvYcCXuyKfyfvamCCEXvHEA43vjcZD1C+ZVQ/wIDnD2mlS7IrAS7h+jnDPhZNgI+fHb9xDX+GyzzF8dbYX8hxA8nwY=@freebsd.org X-Gm-Message-State: AOJu0YynIrbRvnLV+ErsRKtqGUI6v3FP4Y55mlTsurRpqEegKUmuCJru akiFswjCPgip6emO+edT063K2MbX9dXcEIqM+lIsAmLbH8AqbmeO/6wS27FSVpEB X-Gm-Gg: ASbGnctj8vmGxYjHCTlq2od/jEWldbvlCW8TXPC3zKksi7JkF7eLMCdFAkE/kCqXaGN JjyhoIoZx3Dt2LW7TqR/ZRqzN9QtrM8MgxEWGzushVOvT93xae4i0/is4T6aflhcf/cQ+E7Fqfp dCzV24WCK1BHr34cq3q3KU86SIh627GqPw+pFULuef57K5oVJT/fqxTOq9MQ/G3j3DsysLErnJT jmgzltFFZuGSfOzU2rJvhH+KUm/6Bs/deVmv7JCDILfV8Katyu8/K8kWdhBXm87Jp7YTpNsNxCn 3gIe53+Uynqst5ZHPd12LirlDgZ/m0cTc1WTw57+kALrJHRy5qKbpQHr0ePlT+obpFoJULJQXJX QEvtECfBHie1xmxXankOQhaurooKYhg68uqbE8UUEHoEsGA8= X-Google-Smtp-Source: AGHT+IGPwFNEFLNqScOoHAhCaimw6ImShwuhWptJLuMLeeRoYV2gxbX+7ve8nltJTXhB+MRYrsO+Pg== X-Received: by 2002:a05:6214:400f:b0:722:382a:601 with SMTP id 6a1803df08f44-739371a7a12mr230650646d6.34.1757603439822; Thu, 11 Sep 2025 08:10:39 -0700 (PDT) Received: from nuc (192-0-220-237.cpe.teksavvy.com. [192.0.220.237]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-763bdd363afsm11891376d6.35.2025.09.11.08.10.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Sep 2025 08:10:39 -0700 (PDT) Date: Thu, 11 Sep 2025 11:10:37 -0400 From: Mark Johnston To: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= Cc: Alan Somers , Mark Millard , FreeBSD Current , Konstantin Belousov Subject: Re: git: d549de769055 - main - libc: Remove readdir_r(3) [This broke building rust 1.88] Message-ID: References: <1F6A4621-1505-4F78-97C6-85EA556B2165.ref@yahoo.com> <1F6A4621-1505-4F78-97C6-85EA556B2165@yahoo.com> <86bjnhi7s2.fsf@ltc.des.dev> <86zfb1ghj7.fsf@ltc.des.dev> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <86zfb1ghj7.fsf@ltc.des.dev> X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cN1GH2pfhz40f6 On Thu, Sep 11, 2025 at 05:01:16PM +0200, Dag-Erling Smørgrav wrote: > Alan Somers writes: > > Dag-Erling Smørgrav writes: > > > Tell that to the Rust developers. They have been repeatedly warned > > > against using readdir_r(3) for years, as far back as 2016. > > Have they? Looking at rust's github page, I see discussions about > > using readdir_r on Fuchsia and Linux, but nothing about BSD. > > If you look at these tickets, there are people pointing out that > readdir_r() doesn't work correctly even on platforms where it isn't > formally deprecated. The Rust developers chose to fix the Linux case > because it produced a link-time warning and ignored the rest. That's on > them. > > They also seem to be providing their own prototype for readdir_r(), > which suppresses the deprecation warning they should be getting on > FreeBSD 15, and turns the issue from a failure to compile into a failure > to link. That's also on them. It doesn't really matter whose responsibility it is. If rust can't be compiled on FreeBSD after a FreeBSD change, then it's up to us to fix it. The purpose of FreeBSD, like any other useful OS, is to run the software that people want to run. +1 to Alan's request to back out the change for now. > > possibly with the aid of installing misc/compat14x > > That won't make any difference since readdir_r() is still in our libc. > > DES > -- > Dag-Erling Smørgrav - des@FreeBSD.org >