From nobody Sun Nov 19 17:17:45 2023 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 4SYHQL3r8rz51488 for ; Sun, 19 Nov 2023 17:17:46 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SYHQL2rKJz4Jkj for ; Sun, 19 Nov 2023 17:17:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1700414266; 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: in-reply-to:in-reply-to:references:references; bh=e3ktzw3lTMRAHZ0b6QSVjcDkPJRf7vAWJZAlTX+A3Ww=; b=l+sxwdOeXQKChPw7hxtQDZQUu/Je+udH0yLwpZBJmVq1W4d++37SlrRwZu+2Ye470nVy7x 2FExf33o9jRMOFZOps7LeAtjGYYgsYY5qmcg6YjSVgFqX6RLjNu2qLd04iYRHYuai5rmTd 16ybzvfoQMLUl0+UhbXnJP+MzJ0W/vRsXOKa7CtXVYt/x3i84ct6Rj3PuU1s8bDll3PfrA oJDNqcxtArpxkL8X2dpeYBY/gRJj62b20JCuSa2GmGINcsvM4RS4Yl5gF2MD0ZcAYX7QS1 htsfYYIhtKtA/X2IugL0jQK9IpnCTVkfFEeqXP7nY1xsUmeJ7Kn+WmLp7nt0/A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700414266; a=rsa-sha256; cv=none; b=HM1oxSzPoC0xaHdDDttwG/lUwteyzmusaKCrS8AatPy7yvoMNSYzq0vmE4Zne462SoXoDV +RBPEaPlX9rg/s4K2+BKOISQxECx03cLzp9shnTrR+7tRdmQiQp+BBuFQx7/v8tr73EuLk acJt531MGOImKXrdsGFO+E7PJESriMTPY90gN1z1sK2rJygT7XuKywJx9HxzVPivpdBkms vnNQl2WEq7a9ZeDTUmdqjk0jxieYF14p4XpDkbItrPGGtOwARMLd6DbmjBUtssisz+4X36 n2bagIsaEgLQeEuJD0pLos1yhSqp2xvdDSsBW+gwE9eUncXNP/3gKAGxCEQgdg== 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 4SYHQL1m9fz3GC for ; Sun, 19 Nov 2023 17:17:46 +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 3AJHHk9R073714 for ; Sun, 19 Nov 2023 17:17:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AJHHk9H073713 for bugs@FreeBSD.org; Sun, 19 Nov 2023 17:17:46 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 275030] buildworld fails if obj dir is NFS-mounted [patch] Date: Sun, 19 Nov 2023 17:17:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: imp@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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=3D275030 --- Comment #11 from Warner Losh --- The -p change was to fix meta mode. Now that I've had a chance to sleep on = it I remember: it was for metamode. filemon catches EVERYTHING that's used to build a target, including the binaries that are used. So, if the date chang= es on them, anything built by them gets regenerated. I don't think it's an opt_global.h thing. that was an actual failure. I think cp -N is the way to go. But a case might be made for using cpio -p = to copy them as well, since that will be more portable (at least it will work without needing to bootstrap cp) and won't preserve flags either. The curre= nt code is a bit "sophisticated" to make that be an easy drop in replacement (there's cases like awk where we need to link it to nawk, and the list of things to use is source directories, and we need to transform each element = into a destination, plus we assume only one destination, which is a poor fit for cpio, though it could be manageable with symlinks). cp replaced the ln -sf because mid-way through installworld we'd run new binaries with old libraries where the new binaries expected something new t= hat wasn't in the old libraries. We replaced the even older cp with ln for the macos build anyway (though it's not quite as straight forward as that, and maybe the real bug here is that we're copying too many things too early sin= ce the bootstrap phase shouldn't need much of anything on a real FreeBSD syste= m). So the quick hack may be cp -N, but the a more nuanced analysis is likely needed for this to be solved. --=20 You are receiving this mail because: You are the assignee for the bug.=