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 ADA5323AF; Sat, 08 Nov 2025 22:52:13 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id E5C422313; Sat, 08 Nov 2025 22:52:10 +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-a4-smtp.messagingengine.com (fout-a4-smtp.messagingengine.com [103.168.172.147]) by atuin.qyliss.net (Postfix) with ESMTPS id 8FAEE2312 for ; Sat, 08 Nov 2025 22:52:09 +0000 (UTC) Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.phl.internal (Postfix) with ESMTP id 67ACCEC017B; Sat, 8 Nov 2025 17:52:08 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Sat, 08 Nov 2025 17:52:08 -0500 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=fm2; t=1762642328; x=1762728728; bh=r2I2prLSmK ogKgojb0FgiCaOWGazlD7Hf+dMsYJceeA=; b=JK09qPsVo8/Z9vkxsBCtv+xH9d Ul3wYuOuuqoL5na72QdGs2SYrW/giD6NayC/vs7pbVkOwY4wBU2oo9U4CrU5Mj2L Xo6UgBklnl7dIo5r6Zj7N/Okez9q/QGO9fR22Lm+1h4o3L6+0Fi88iPuKi0vBkcm SvGo390GFfD9SoUqIZY31aAcEq+0kv8MD2cvBxWGlnf6A6kk9Kvj3EpbLm/DnkvT Y09uPKC36Tu6N7ToyhtJYyq4uv/543/lCHIFwNQbXC0DqcrvgpqGMrLeOulAa+qh +Df9cqZpqYQulvjmwCEMztQle1K5GNjeL+5hsLfiiQFzHkqGURH6HgDOLMXg== 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=fm3; t= 1762642328; x=1762728728; bh=r2I2prLSmKogKgojb0FgiCaOWGazlD7Hf+d MsYJceeA=; b=zatzsk33WLOsjpEuC3z+6J5uwIYIS60HIREg8ioy5XY8d9NQW46 AlfbLlLv8rFdJUbBMSdCVRu1/RFY2qxOmAVWX2hF8cS8nUM95KutcFu19l3kHttY HmNYcZZnpV9uBToza//eW4dsyAeG1hhpmsBppnSMNwIbjKBbeDsj7Xtud/czHyrI g9TyfdWeRG0w2XFcmc12NQW/cWp0gyEvYQmMyRMr6q/QqWbuxIk0OM0c7IU0V32J ujsfyRUJ1j6h5xUv0UhDivvHLwM5IamXpxIOI3VgMhBpmboHm7de5j67kuqtT7B9 TW5Tp51KMp5HfVkDiWNWXN1mJvpSBeatMOw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduleefjeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefujghffffkgggtsehgtderredttddtnecuhfhrohhmpeetlhihshhsrgcu tfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeettddtue ejtdfgfeehvdejuddttdeiffdutdeigeefhfekteefueejveetlefffeenucffohhmrghi nheplhhisgdrihhnpdhgihhthhhusgdrtghomhdpuggvsghirghnrdhorhhgnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhs rgdrihhspdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopeihuhhrvghkrgestgihsggvrhgthhgrohhsrdguvghvpdhrtghpthhtohepuggvmhhi ohgsvghnohhurhesghhmrghilhdrtghomhdprhgtphhtthhopeguvghvvghlsehsphgvtg htrhhumhdqohhsrdhorhhg X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 8 Nov 2025 17:52:07 -0500 (EST) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 253ED68FD7DA; Sat, 08 Nov 2025 23:52:06 +0100 (CET) From: Alyssa Ross To: Demi Marie Obenour Subject: Re: [PATCH v6 2/2] host/rootfs: Switch to systemd-udevd In-Reply-To: <02da1b19-008a-4f49-b9bb-ec1c2a2f5e1d@gmail.com> References: <20251107-udev-v6-0-176246281424@gmail.com> <20251107-udev-v6-2-176246281424@gmail.com> <87seeonw3a.fsf@alyssa.is> <87ecq8tddi.fsf@alyssa.is> <87bjlctbml.fsf@alyssa.is> <878qggtalv.fsf@alyssa.is> <02da1b19-008a-4f49-b9bb-ec1c2a2f5e1d@gmail.com> Date: Sat, 08 Nov 2025 23:52:04 +0100 Message-ID: <875xbkt9wr.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: CVHGKUH4XR6673TERRPQYZ3EALHZG6YX X-Message-ID-Hash: CVHGKUH4XR6673TERRPQYZ3EALHZG6YX X-MailFrom: hi@alyssa.is X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; 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; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Spectrum OS Development , Yureka Lilian X-Mailman-Version: 3.3.9 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 Content-Transfer-Encoding: quoted-printable Demi Marie Obenour writes: > On 11/8/25 17:37, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> On 11/8/25 17:14, Alyssa Ross wrote: >>>> Alyssa Ross writes: >>>> >>>>> Demi Marie Obenour writes: >>>>> >>>>>> On 11/8/25 14:49, Alyssa Ross wrote: >>>>>>> Demi Marie Obenour writes: >>>>>>> >>>>>>>> @@ -113,14 +76,15 @@ let >>>>>>>>=20=20 >>>>>>>> kernel =3D linux_latest; >>>>>>>>=20=20 >>>>>>>> - appvm =3D callSpectrumPackage ../../img/app { inherit (foot) te= rminfo; }; >>>>>>>> - netvm =3D callSpectrumPackage ../../vm/sys/net { inherit (foot)= terminfo; }; >>>>>>>> + appvm =3D callSpectrumPackage ../../img/app { inherit (no_pgo_f= oot) terminfo; }; >>>>>>>> + netvm =3D callSpectrumPackage ../../vm/sys/net { inherit (no_pg= o_foot) terminfo; }; >>>>>>>>=20=20 >>>>>>>> # Packages that should be fully linked into /usr, >>>>>>>> # (not just their bin/* files). >>>>>>>> usrPackages =3D [ >>>>>>>> - appvm kernel.modules firmware netvm >>>>>>>> - ] ++ (with pkgsGui; [ mesa dejavu_fonts westonLite ]); >>>>>>>> + appvm kernel.modules firmware kmod kmod.lib >>>>>>>> + netvm mesa dejavu_fonts westonLite >>>>>>>> + ]; >>>>>>>>=20=20 >>>>>>>> appvms =3D { >>>>>>>> appvm-firefox =3D callSpectrumPackage ../../vm/app/firefox.ni= x {}; >>>>>>> >>>>>>> So based on what we'd discussed previously, I was ready to just app= ly >>>>>>> this and pare down the Nix changes myself since I don't have to wor= ry >>>>>>> about rebuilds, etc., but in doing so I came across this. Do you k= now >>>>>>> why kmod.lib is required? Is something impurely dlopening it? See= ms >>>>>>> very strange, but I did verify that it's required for Weston to sta= rt. >>>>>> >>>>>> systemd uses dlopen heavily. This allows dependencies to be optional >>>>>> at runtime. I remember strace showing that systemd-udevd dlopen's >>>>>> kmod.lib. In short, your diagnosis is correct. >>>>> >>>>> Okay, that's a packaging bug in Nixpkgs then. (See e.g. [1].) I'll = see >>>>> what can be done. >>>>> >>>>> [1]: https://github.com/NixOS/nixpkgs/commit/2328731ad041735a22606985= 74ce6599591f33ad >>>> >>>> I have looked into it a bit and am now even more confused. From what I >>>> can see, loading libkmod should be done by libsystemd-shared.so, which >>>> has kmod.lib in its RUNPATH. >>> >>> According to https://wiki.debian.org/RpathIssue, only the RUNPATH of >>> the executable is honored. The RUNPATH of libraries is not honored. >>> For this to work, libsystemd-shared.so needs to have kmod.lib in its >>> RPATH, and udevadm *may* need to not have a RUNPATH. >>=20 >> Right, so we might need to add --force-rpath to the patchelf invocation. >>=20 >> I wonder why this doesn't affect every NixOS system, though. They >> certainly don't have /usr/lib/libkmod.so.2. > > Difference between musl and glibc is the first thing that comes to mind. Was my first thought too, but people (including Yureka, who can maybe confirm) have run musl NixOS systems, and I've never heard of this problem with them. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaQ/JlAAKCRBbRZGEIw/w omB8AP9sdAfOi44Cofk33XmidmTSfEgbC9A12+YM5TlFH/XDtgD9HMhbqkYBx7DN JhE+cAzJ7rQADW1tRfTd1XHK4wfXDwk= =4wps -----END PGP SIGNATURE----- --=-=-=--