From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 7E7F9CE78; Thu, 02 Jul 2026 12:18:22 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 58A32CEB9; Thu, 02 Jul 2026 12:18:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DMARC_MISSING,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=4.0.1 Received: from fout-b6-smtp.messagingengine.com (fout-b6-smtp.messagingengine.com [202.12.124.149]) by atuin.qyliss.net (Postfix) with ESMTPS id 5B5E9CE70 for ; Thu, 02 Jul 2026 12:18:18 +0000 (UTC) Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id CF4571D00094; Thu, 2 Jul 2026 08:18:16 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Thu, 02 Jul 2026 08:18:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc: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=fm1; t=1782994696; x=1783081096; bh=MDhSy88I5+ 5ZZ/u2R6pZMr9sjEjoICSkfwuZJ/mNZr8=; b=RXinU0AvA0d4zHVFIXN2CH4Bmd NwERRSYKR45vC6ETkWkV/K6UDS73iM+8N0hvAgLtKS2Ja9V3mr+ZpuKvbqC5wFe6 M7Nn0cGZ30fz0TQFX3GQBUrxOeooCgzAzxUOn9B30Mi3cDzQYN65uEifpyE/Lfkj GXnMPROGDCc0gkC12RI19vr6PP/1p4Kdef2WzlT3KTaIv2tS1CSdQl3KHSg3n1nS SpydqxIG9RGDv7wtcdRKuJYpQJPZ2+l2HRhnNIUiabrItJ247uoNMbz0LT7ukc+U ikKs5vB6NPJJZ0QIjw/mnbW3gopBmo+Zo1nAGKUrp4qvDQstz+ZUuTIpGr2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1782994696; x=1783081096; bh=MDhSy88I5+5ZZ/u2R6pZMr9sjEjoICSkfwu ZJ/mNZr8=; b=cu3Vfj6elJQtAVrj9CQmEg3wuNvHTnBG8Yxwq4iP1wJ8Eh9KIZ1 2DgOitUpfrNYi+feB012MLORP6pM/M8nU1xnvowZ6k55oU25wFAFh3qY65HgS8y4 qD4qGiEo+YJWktyoRr8+Q9emmSQilhtADhHnPt/f9Qos6MFUChHGbB+YNIXMrl3V 7DukYBEo0WdnfIQWFFw5q71zT+bTrRR0ptwo0nh+tygph+S1v0uAajwC2t/4t7Os AqFzzj0WmfrdrCPPur9uRPFWzW6XjwvwLP7LKWGFM0W5SAHD8fDoCQWC9fYq5UWc dMFv7PDYEm1GRPKmuIklSPZDCPft8qqxMKw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTEcmfqLsFtV87e4n+p0BIZ+0oC4UJmVIUR5aOq1G8VYqOSVX0tObUr1SmewJRMUbN pFflKSrf5C3lE+hdkEtMlzJMc1fH7tOYSFgSFfQXSn/fM5dTzJ7fheWLtWXF1jHLTkqnxe 4rrkzqIFvN9h6zo9L7KqiyLrMSWrqnmaCQhMUh+OYEjU02gHsSTPkiYqbbrGOI2cUePNQ1 RQxdoNoVZGp1x8Zo8VjXnkqg63WTLoiKMr4nyTOU0J0S3xVzyH+xtZRvu3SnidtM+LcaVQ BhjNW4F36NegoH6Dxprxxstldocpse4q5HbJRe7n0MvsINnIwSVqrSsqb+Z9wtBRykDCdR fQbPZ03Fpp2pv+1aH4/7XCRHVkf5WSF+0vRwA14TtHUFhrEb6toRJdbN5lSYpIiT844s+l FNAN8EnhICtSv0JrpeXyhIYEUQ6jePAIy2NOwp/k2JPvqe6J++p8ZWVxDe64vNFmhIUSOG TlPfkshPKDqS3KxRe0Y1+6S6VyLB5e0VjVP86pjsE5Nd4l11FDmcDXmW6mYlIcncnwraSR yKn/jgO/yjIBlLYW3JNi8SHVPw+mi7kE+qGXtoRiWEcvyISqAsMz/W4Agt7WIKv7mPlTCd dBgPELFrPEO6p0mrEdyvoJAgvY8ePnvFRUVBWM7KXkTrChqNVCOFpZmQYweg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 2 Jul 2026 08:18:15 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 8961B845F837; Thu, 02 Jul 2026 14:18:13 +0200 (CEST) From: Alyssa Ross To: colbyt Subject: Re: [PATCH 1/8] pkgs: fix aarch64-musl builds with current nixpkgs In-Reply-To: <20260626185509.3715326-2-colby@colbyt.com> References: <20260626185509.3715326-1-colby@colbyt.com> <20260626185509.3715326-2-colby@colbyt.com> Date: Thu, 02 Jul 2026 14:18:04 +0200 Message-ID: <87se61wpoj.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: C7OZCZD54KHPK7ZU7WFTEP2WAQGLJFMW X-Message-ID-Hash: C7OZCZD54KHPK7ZU7WFTEP2WAQGLJFMW X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.spectrum-os.org-0; header-match-devel.spectrum-os.org-1; header-match-devel.spectrum-os.org-2; header-match-devel.spectrum-os.org-3; header-match-devel.spectrum-os.org-4; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: devel@spectrum-os.org X-Mailman-Version: 3.3.10 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable colbyt writes: > The newer nixpkgs pin exposes several aarch64-musl build issues in > Spectrum dependencies. > > Normalize Python bootstrap outputs that install under usr/, patch the > generated pyproject-build wrapper to include those paths, and keep the > GnuTLS STARTTLS tests from observing a host /usr/bin/socat that is not > on PATH. > > Also skip the exact psutil and mypy tests that depend on host network or > unsandboxed root directory details. The remaining package test suites > pass with those exact deselections. > > Signed-off-by: colbyt Unsandboxed builds on Linux are not commonly used, but they are still supposed to work, so these fixes perhaps belong in upstream Nixpkgs. They're unlikely to be specific to aarch64 or to musl. (You will likely save yourself a lot of future pain if you can find a way to run your builds sandboxed though =E2=80=94 not many other people will encounter these issues.) > --- > pkgs/overlay.nix | 105 +++++++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 105 insertions(+) > > diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix > index 3e3336e..66fea11 100644 > --- a/pkgs/overlay.nix > +++ b/pkgs/overlay.nix > @@ -4,12 +4,117 @@ > (final: super: { > cloud-hypervisor =3D import ./cloud-hypervisor { inherit final super; = }; >=20=20 > + coreutils =3D super.coreutils.overrideAttrs ({ postPatch ? "", ... }: ( > + final.lib.optionalAttrs > + (super.stdenv.hostPlatform.isAarch64 && super.stdenv.hostPlatform.= isMusl) > + { > + postPatch =3D postPatch + '' > + # These locale-sensitive tests fail in the aarch64-musl bootst= rap build. > + for f in \ > + tests/cut/mb-non-utf8.sh \ > + tests/date/date-locale-hour.sh \ > + tests/dd/conv-case.sh \ > + tests/numfmt/mb-non-utf8.sh \ > + tests/paste/multi-byte.sh \ > + tests/sort/sort-h-thousands-sep.sh \ > + tests/sort/sort-month.sh > + do > + sed '2i echo Skipping aarch64-musl locale test && exit 77' -= i "$f" > + done > + ''; > + } > + )); I don't know what's up with this one though. I build on aarch64 with musl regularly and have never seen this problem. Would be interesting to know if it reproduces with sandboxing enabled. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCakZW/AAKCRBbRZGEIw/w opSwAQCxcvreaT9OcinvLd91hMpjBd9cdsJpCuafr3kGyXDs8AD/UxxfzvCN+I96 SIFUJ5wtlJds5LDhuT5rl/c7YLamgAE= =O/Ut -----END PGP SIGNATURE----- --=-=-=--