From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS29838 64.147.123.0/24 X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from wfout3-smtp.messagingengine.com (wfout3-smtp.messagingengine.com [64.147.123.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 91A8B1F44D for ; Mon, 8 Apr 2024 12:13:03 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=canishe.com header.i=@canishe.com header.a=rsa-sha256 header.s=fm3 header.b=jiFNM32Z; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm2 header.b=OfxKggEg; dkim-atps=neutral Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailfout.west.internal (Postfix) with ESMTP id 37A4A1C000DC; Mon, 8 Apr 2024 08:13:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 08 Apr 2024 08:13:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canishe.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1712578381; x=1712664781; bh=UsAnRdzedFGrlsUntQavpFxbl68rTTG5yHhi88Y/qU0=; b= jiFNM32ZfNb9kBCYY89LPKYOgqNKlip53NpkpryUOX+hUMdnLD7NHG2prWB+mfs9 CK6a46fkCA3m1RUQeS+ukucXhLT4VKBa83ZeMtCQSjHzIwhKrT5h/IHC1lvpfMwZ XAjDpGWCOIYai1+zC6lEzZj5FZl3vmWgmKtsQWuwat2rjMlhLPDmBwao+qKK5tfr +H01mHTpaJ2mQR+oz1ib5DPqxZNKBc3dr+sTN2873lV6txL/k4ACSMkyEUMq8dhH Y/aAbfegDBpbC9838V9HfIGNrTmD4KjEi0RRVEk5P2c0cytluwFJlkOWjrw46xp9 +vK7wzrxk7p6AsGVQMqWIw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1712578381; x= 1712664781; bh=UsAnRdzedFGrlsUntQavpFxbl68rTTG5yHhi88Y/qU0=; b=O fxKggEgEtwgoqZGdU4CFXMvDLLF61Uw9Skf0WhzomlC9rD3a6j073/9loJgPG4PB dOkS7IbhHtkZ06Y4zWgNVEbSQCj+IBZHIjnswGmr3eEh/vRVGJGAIbFGXzF4uonY /yX9Wnpu67rWaXK2eYGSFqoLw1xMUai11Z/OPdQUEErXdFNdsqb8wRffe/eFyPm3 C6ByrItsCEPko+iWs+2tiiF5j3Jo4f5afRE6Nc9MTnksPOmDl5sfSPCZQ9C2zRg0 zLdrmY+4iU3hMRavITh0Alp7p4XvzVdcOgFJ+FhF3zSC6mPWwkZNnQItAeEolIsE vV7EhK5uj8fh1WE4BtR+g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrudegiedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegtggfuhfgjffevgffkfhfvofesth hqmhdthhdtjeenucfhrhhomhepifgrvghlrghnucfuthgvvghlvgcuoehgsghssegtrghn ihhshhgvrdgtohhmqeenucggtffrrghtthgvrhhnpeejhfejueekteeuveelveetffejie ehuedvleelheejfeejuedvvdetkeejveegjeenucffohhmrghinheprghpphhlvgdrtgho mhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgsg hssegtrghnihhshhgvrdgtohhm X-ME-Proxy: Feedback-ID: i57a145e2:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 8 Apr 2024 08:13:00 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: [RFT] syscall: set default constants for Inline::C platforms From: Gaelan Steele In-Reply-To: <20240408094843.M120440@dcvr> Date: Mon, 8 Apr 2024 13:12:49 +0100 Cc: meta@public-inbox.org Content-Transfer-Encoding: quoted-printable Message-Id: <29B30321-3B59-4C16-9AFF-A1E12B702D02@canishe.com> References: <20240129212319.98910-1-e@80x24.org> <20240129212319.98910-3-e@80x24.org> <0C20FAD1-1983-4C38-BB6C-03D9DEFC0D58@icloud.com> <20240408094843.M120440@dcvr> To: Eric Wong X-Mailer: Apple Mail (2.3774.300.61.1.2) List-Id: > On Apr 8, 2024, at 10:48=E2=80=AFAM, Eric Wong wrote: >=20 >> I=E2=80=99m not enough of a Perl person to fully untangle this. As >> best I can tell, the intent is that non-Linux/BSD OSes should >> still work with Inline::C, but this doesn=E2=80=99t work in practice >> due to a bug? >=20 > Right. Patch below should fix it, test feedback appreciated. =46rom a quick test, it seems to work: public-inbox-httpd starts and is happy to serve up an archive. Thanks for the quick fix! >> It may also be possible to use the BSD approach on Darwin - >> Darwin ascribes to the BSD school of thought where libc is the >> only Officially Stable interface, but if you can get away with >> it on the real BSDs maybe you can get away with it on fake BSD >> too. >=20 > NetBSD and FreeBSD both document the underlying syscall numbers > remain stable (but not the name =3D> number mapping). OpenBSD has > no stable numbering, but goes as far as to patch Perl to route > the `syscall' perlop through their libc to avoid breaking Perl > scripts. >=20 > I have no idea if Darwin maintains any stability guarantees at > all like the above OSes, so Inline::C may be safer, here. Indeed, Apple explicitly doesn=E2=80=99t make such a guarantee: https://developer.apple.com/forums/thread/706419 So Inline::C is definitely the move. > -------8<------- > Subject: [PATCH] syscall: set default constants for Inline::C = platforms >=20 > This ought to fix compile errors on platforms we don't > explicitly support. >=20 > Reported-by: Gaelan Steele Ah, that=E2=80=99s the wrong email address. (My fault! My mail client has an unfortunate default I haven=E2=80=99t figured out how to change, and I forgot to set it before sending this time.) Would it be possible to use this one (gbs@canishe.com ) = instead? Best wishes, Gaelan