From nobody Sun Nov 19 19:51:04 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 4SYLqD2sG9z51FRt for ; Sun, 19 Nov 2023 19:51:04 +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 4SYLqD0R2Qz4cnJ for ; Sun, 19 Nov 2023 19:51:04 +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=1700423464; 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=GlRCZhIYMeH0DAJmBxdKa7CxbpYNOmmmQt5JIe8GKPM=; b=mR4W/zrLPvPW+9CcPBXPPxT64Gbk5T2UGKOZHYlgKIP2SYNTdf3VpVhGI80UzQdEzhCGiZ gwkQ9F2/yayxhP+IKqMuTqz0ZmakHDN0r16oMKI5RQT/VxjV3z8XjhngYMJc8QlTlL8Zjh HBrcCWOmUN6DdZSoM6Q5K642IlTO7/EtERPyszTpaDupzNMgyoQHfaTzo9AOl6oPOQLH6A 2kfbBJ7ScuatGOs2+357cDT7nPtZjZ5GbIV4ZQkwcc5RBA0S6f/mrfMzG16GKTfZ2h+lOH i43hO4ofCaVO1+S3w74P5QufdVvQ5YGxn1TPzSjmp/DFN3NDgPDKWY3ztQnLdw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1700423464; a=rsa-sha256; cv=none; b=vi5LyksWH5q0D1aniaQeZlltMmVbqJzm31aMfH7JtgJ6nnktMnsYOhSHWFDdWr7YOIsJZE ChdizPPFLb8Gu/8j93EvSsNDHuEjXQQUyrZnamppmuaeS+xaHHDzvsuWmR3T7H7YamfS6N YpUA2cXl9FftpRiO3LSGYUlZZkDu6szmXj8kRLJ/i7KMYAcJo6M5xxlo3lPpzKzRbmN/mo 6C5Lj5X9EJm6BV7kijNqdtCfDEBJn2JxRIJZHPqYryToXgjwdKRHLRzXfu7DJRrnzNBYxl BoIwZFLb8PAXk7TU96xy23mH/8RNMaIBOW11l5t76mVKzhZiV93YTlPpOmISQw== 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 4SYLqC6g23z7fb for ; Sun, 19 Nov 2023 19:51:03 +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 3AJJp3SB010438 for ; Sun, 19 Nov 2023 19:51:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3AJJp3iw010437 for bugs@FreeBSD.org; Sun, 19 Nov 2023 19:51:03 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 19:51:04 +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 #17 from Warner Losh --- (In reply to Martin Birgmeier from comment #16) So we could use tar, with the following super ugly (and likely not very portable) formulation: diff --git a/Makefile.inc1 b/Makefile.inc1 index f47b9f66b69e..cc2bdb315a58 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2584,6 +2584,7 @@ _bootstrap_tools_links+=3D${_links:S/,/ /g} # the host version is known to be compatible into ${WORLDTMP}/legacy # We do this before building any of the bootstrap tools in case they depen= d on # the presence of any of the links (e.g. as m4/lex/awk) +# Use tar because it ignores flags, which we don't want to copy ${_bt}-links: .PHONY .for _tool in ${_bootstrap_tools_links} @@ -2593,7 +2594,7 @@ ${_bt}-link-${_tool}: .PHONY if [ ! -e "$${source_path}" ] ; then \ echo "Cannot find host tool '${_tool}'"; false; \ fi; \ - cp -pf "$${source_path}" "${WORLDTMP}/legacy/bin/${_tool}" + tar -cf - --absolute-paths "$${source_path" | tar -C "${WORLDTMP}/legacy/bin/" -f - -s '=3D.*/=3D=3Dg' ${_bt}-links: ${_bt}-link-${_tool} .endfor But that kinda argues for the cmp route, though we'd need to modify the log= ic a bit as well... I'm surprised the copies in ZFS has this set... But reading the man page, we see in chflags(2): For instance, ZFS tracks changes to files and will set this bit when a file= is updated. which is, imho, decidedly unhelpful.... But that explains how it got set and the scope of the problem... And I can confirm that my ZFS root machines (w= hich I hadn't checked) do, indeed, have this set. That argues, imho, that we sho= uld mask this bit in cp, but that's a bigger fight.... I think I need to figure out how to recreate the reason I added -p in the f= irst place... --=20 You are receiving this mail because: You are the assignee for the bug.=