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 006A010268; Tue, 05 Aug 2025 19:33:56 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 993) id 0C1F01028B; Tue, 05 Aug 2025 19:33:54 +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 fhigh-b5-smtp.messagingengine.com (fhigh-b5-smtp.messagingengine.com [202.12.124.156]) by atuin.qyliss.net (Postfix) with ESMTPS id 16CF71028A for ; Tue, 05 Aug 2025 19:33:52 +0000 (UTC) Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfhigh.stl.internal (Postfix) with ESMTP id B9B467A0104; Tue, 5 Aug 2025 15:33:49 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-10.internal (MEProxy); Tue, 05 Aug 2025 15:33:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=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=1754422429; x=1754508829; bh=BQBzCsHTsg xBnMShf6qaukgEiDzZSJD3GXJ7GWBbPMs=; b=GzJBoltvf08hu/yeLsXt7d4f+l 46/L2U6Q2XkfxmY/j0rc29mKEgKVT9X1ali4Ua3ay+/oINEfv/Hptz7vWbtBg53U YuAkoojiDWbba82O4a2lSNDnZjXGg+2FRdpu225Sk6d/8ZgqqUGPBrtdErQNMRMY t0JOhXX27rNIzg/+aIujmiORoG/uDsYB8dSseK++Q7/7xqeB+q7afIcRg55O0/qU zS+nBQDBVZqIBMEW9j8Kkrr2ucJ7+9ZUwz7FW/6jTez745naaDF+TTDvCbxpFlsb fyczsG1A8w5L4jDVTTi4EX8Pd95jCieP6eonwpcx4xl/Zkdhsq9+U/SIv4Ig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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= 1754422429; x=1754508829; bh=BQBzCsHTsgxBnMShf6qaukgEiDzZSJD3GXJ 7GWBbPMs=; b=iUqSJ1bcvwqGOs4mr2qIBA8g9xpRd6veQs2y5HdVh3FReb4/lLH kh2C/y8K2CzbTpCegsb+YYniKSZqQtxxbF1YSAMq4SQxaqrVgeSiUj9BRhC0SQyQ +fusOp40k/DAsi7o6PnEw60wawKdostvBFMMCse9+PUHq6d2H5d4fqVNEOB1U7KT 7KYiNa0dmjzNBfuG0aUXIzw7SM7g7IuuLkC27wNlPNvwUT9VQfRKQ4UZvHUHU01j n72MR+iPfDe9X4aFRuwMGUaylwAPuOAsdYXIf2TuHvFglj1UkmfRU9qFm5FgmRVQ 8ekgjEnyVGieqHT0RZaPYKXctws9EDLWpMA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduudeitddvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvufgjfhffkfggtgesghdtreertddttdenucfhrhhomheptehlhihsshgrucft ohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepvdeuvdeivd ehhfeikedtvddvhefgheffleevueeigffgtdffffeujedujeejkeejnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhephhhisegrlhihshhsrgdrih hspdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegu vghmihhosggvnhhouhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggvvhgvlhessh hpvggtthhruhhmqdhoshdrohhrgh X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Aug 2025 15:33:48 -0400 (EDT) Received: by mbp.qyliss.net (Postfix, from userid 1000) id E48A612CB4A7; Tue, 05 Aug 2025 21:33:37 +0200 (CEST) From: Alyssa Ross To: Demi Marie Obenour , Spectrum OS Development Subject: Re: 'make clean' followed by 'make' in the same Nix shell doesn't work In-Reply-To: <35c65948-8987-4367-9b65-5022c297f3f3@gmail.com> References: <5d8998cb-0280-452a-8c98-959f472f3ddc@gmail.com> <87frefdvng.fsf@alyssa.is> <35c65948-8987-4367-9b65-5022c297f3f3@gmail.com> Date: Tue, 05 Aug 2025 21:33:36 +0200 Message-ID: <87bjottvfz.fsf@alyssa.is> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Message-ID-Hash: FP6T2XKY4JPVHBJ6BJVZMSDZ6A45BGBI X-Message-ID-Hash: FP6T2XKY4JPVHBJ6BJVZMSDZ6A45BGBI 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 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 7/29/25 08:33, Alyssa Ross wrote: >> Demi Marie Obenour writes: >>=20 >>> The following command fails to rebuild the image: >>> >>> $ nix-shell --run 'make clean && make run-qemu' >>> >>> The following command succeeds: >>> >>> $ nix-shell --pure --run 'make clean' && nix-shell --pure --run 'make r= un-qemu' >>> >>> Interactive Nix shells exhibit the same problems, and adding >>> --pure to the first invocation does not help. >>=20 >> Works for me on 560fd87 in img/app. What were you testing? Logs? > > I think the problem only arises when there is a dependency that > default.nix knows about but the makefile doesn't. nix-shell > appears to import default.nix directly, so > > $ nix-build default.nix > > inside a Nix shell does not update various paths (like the path > to the kernel) that the makefile needs. > > I think it would be better for the makefile to import the > variables from Nix if possible. Yeah, that's not how it works. You need to exit and re-enter the shell. nix-build will not update your shell environment, and that's where Make variables come from. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRV/neXydHjZma5XLJbRZGEIw/wogUCaJJckAAKCRBbRZGEIw/w oowqAP44QSJ6ppEDbh9qzGuHXxnrtq2p+/J1Q2Iq/txVClHP3AEAwvD97YWVhsNc v6Kn6brTAF08zRw8+JjdCmhGSlXgWwA= =a6YM -----END PGP SIGNATURE----- --=-=-=--