From nobody Mon Sep 15 04:49:26 2025 X-Original-To: bugs@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 4cQCHV6kgzz682xP for ; Mon, 15 Sep 2025 04:49:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cQCHV64Tnz3FSm for ; Mon, 15 Sep 2025 04:49:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757911766; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8tkA05KwQ0pJUVUW9U7geJ70RinDpT8kLHpnNFFqF9w=; b=rtOm5RTUzTVlBox/AohYofi1nN00RCDrJ2B1juVC5L97VVZ1vh2mPd4MDu4DOyKTA8sStf mIqmoA+CEeaGbFqcu9Z9Tu2RwUMGI6PEOV6ExmMRRif+EcL/ZToaYzkj1P3mLHih1sxwtl TE6D3/8dglBaptzsv+u4Cir9SqjPHAzbovtKU1GfMArDxUlhm9C18WNW+WviujO4iVTJ16 D6Yuk5E2LNhm22p2JT/PUwgvatEbeJZUfJY9/SE4MZ7iR0U5X6RPYainOocjpq1n9AnRpg r5D/hZ3Z8N+YXXGYuRcsmYOe1bp8eZDnLLkTk2FGyt1RE+lVself6ud7Q4xVQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757911766; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8tkA05KwQ0pJUVUW9U7geJ70RinDpT8kLHpnNFFqF9w=; b=ix3i7Ovdue5qfeLD8FTkbV8WnOCBXLmjIct7DWA8a/QpXpwXVeqGFPnPfbuRv+4RRZh0e4 7KWTFV3Uut/fsq/ySCvgL7voMP0FxYsyOFBXqgL4WtV60RTsWfuTqvq3iOo/d3nndt6GNi 8zO7SBrpigfFuK+MBXSBaVebJxIfhJ+afhTzH5FhwFfdG7mjqfmqij7Ww/6tuCk2dZyZVV /Aj3bsiMrkgtEUsveTGdaGC0d/KqxUQVYyQt8qKE2O+dPsk5cXWPP1zzGfppGGv8EFVtBf qtez8dOuioBfsF0/uiNn+TAnGJuz6q3vdDam304GHy7p6ZZKS4QHvMt5/mjfNA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757911766; a=rsa-sha256; cv=none; b=LsisGa2AN1au7RpwKN3mR5FHSpMnJxDaV7MYHuNv4RB6LtlkT/2qc6ugk3453ZHDORiTIg 5NRc6ftsplq/jgooUqMW+EnC+2IcH2nhacGELgVQ4CThZb4Y4nU417Mvm/75zMrUYLJo0Z +SorTy2TGG9dDCVxDpAwNz8QYYaLKw61y6dbkjPx4idhwMMnGny9K9UEhGPncZwU/tRlsb O9HuTcdFvFaq3XSlVozPxXnAWohW7uIYIMq+3fJttuL/PQJES+pYuceBAN9E6CT8NyopZe 759ci2SzfyliZ4GlFWmMyTEFKnE0zlVlBRbqeBzsM3OuRiVqSFcDNGiiD6/dTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4cQCHV5S4yzgSK for ; Mon, 15 Sep 2025 04:49:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 58F4nQFg087253 for ; Mon, 15 Sep 2025 04:49:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 58F4nQu7087252 for bugs@FreeBSD.org; Mon, 15 Sep 2025 04:49:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 289614] buildworld: legacy binaries are used when MK_CLEAN=no for cleanups Date: Mon, 15 Sep 2025 04:49:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: delphij@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289614 Bug ID: 289614 Summary: buildworld: legacy binaries are used when MK_CLEAN=3Dno for cleanups Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: delphij@FreeBSD.org This is somewhat obscure but real use case. When a shared library bump happens, the old shared library is added to ObsoleteFiles.inc and will be removed in the next `make delete-old-libs` ru= n.=20 However, the "legacy" binaries at /usr/obj/usr/src/amd64.amd64/tmp/legacy a= re not automatically refreshed, therefore when make is trying to clean up stale files in build tree, if MK_CLEAN is no, then it would use these binaries (a= nd because the old shared library is already removed, e.g. `env` would fail because libutil.so.9 is now gone. To reproduce: 1. Create a FreeBSD 14.3 environment. 2. Checkout FreeBSD 15.0 source tree, make buildworld buildkernel; make installkernel, reboot, make installworld, yes | make delete-old delete-old-= libs Now `make buildworld` would no longer work until /usr/obj/usr/src/amd64.amd64/tmp/legacy is removed, or WITH_CLEAN=3Dyes is passed. --=20 You are receiving this mail because: You are the assignee for the bug.=