From nobody Wed Feb 22 02:44:09 2023 X-Original-To: freebsd-stable@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 4PM0qL2T2lz3s74t for ; Wed, 22 Feb 2023 02:44:30 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.84]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PM0qK6wmfz3kHP for ; Wed, 22 Feb 2023 02:44:29 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677033866; bh=lLLrmOOZdCCX+lzTKf5jg29RdLZ8pp+NquGSMvA9BLQ=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=gASp9Ml2PUUIA9EosEn9P9Tommx+4aAQ0MvedsXdcY6o8IDEt8HLvlze1IZKyzibb9MN7v9IUXtDtxtFR8YD41VeUKSv9yzbOoyJgHiAzDM19m8b4zHszdb3+VuSSLCxK2oGhpagd6ucOJKZ8KmVi3MlIXGhxREmrJHKrUrZMHW5eYWJKHJjwseRk+U/aztCMSTyctzRs5hB2A0t2MGh6LKzWSauLkvKrx/UAvtNFUrzYRiHkFBis9UGrqcrjtLJHuxPKlbLtkdqNxShwTdZGCqCun2J2WWWdB0Ku0G2HEENItqmD5ANkTneIWlJ8UZ39mQUexhN84ggb7LUJu0gWw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1677033866; bh=Rli51fD7Vys+7N+mwVHLKNL8yhwev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twGMFOVdZ dsZzMk9dRBm37HtdmPTyQwDakIcZWRVXg7aXi1RM9LFMb0pwB42dIXE7Vr7TH4x6cRYJUOydHAb6 u8Uau_opInDDDRrxOWoKpt946Z.cWZT1MH4ofkyZevC.Bj5PnC1XCClYEBkESAF9dlP2B05C6_zH 8ysV6fYEYfAsJpVd9dFK4krjxOLZoZgN5c1ze5oR1pXgCkkwXWc9YMBTb2NDvIhHFIFYTYhLL.eX _YErKgeX83.DQ.39qxVgk8hKF.ZIgmq8qcid1NEHvF5rx7UKnIa6yS7PPkG32IqjZxDd.NQW1L0g LYutGI94ssja4ciNIICFZFshjvQOdFtOWy55CkbMvHKEczaRRw5vCwkbyFohCI1_q7KPyZP6KRhm PBSr1ZiFjRYUeXS1Sjk6IUUnX0b4K.wLR1QXF1SH4X8463Hqe4IYzVsSgNJzfaOH9y_m04J.Imsv _IRx_.IGxi54mv8Xac7UKsZyDOpnmRS6qFENJ5JMxLC8atR5gYQ7U4Sj0XtShIiRAUY6ag33TI1F GAZ1knX9.7TeYQJek.vbeP8W6TL0kPiLMDgUd9FFQJXiAPNgIpKEaGsMJMLq5nxJJV7rPCow332w o6yKL X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Wed, 22 Feb 2023 02:44:26 +0000 Received: by hermes--production-ne1-746bc6c6c4-z5xkm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID bcc58576eadedb8e71a50362b1f58c0e; Wed, 22 Feb 2023 02:44:20 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: 13.2 BETA2: how do debug META_MODE? From: Mark Millard In-Reply-To: Date: Tue, 21 Feb 2023 18:44:09 -0800 Cc: FreeBSD-STABLE Mailing List Content-Transfer-Encoding: 7bit Message-Id: References: <41B536B0-DA66-449E-96BB-E11A8750471A.ref@yahoo.com> <41B536B0-DA66-449E-96BB-E11A8750471A@yahoo.com> To: Peter X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Rspamd-Queue-Id: 4PM0qK6wmfz3kHP X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Feb 21, 2023, at 18:10, Peter wrote: > On Tue, Feb 21, 2023 at 11:56:13AM -0800, Mark Millard wrote: > ! On Feb 21, 2023, at 04:55, Peter wrote: > ! > ! > ! # cd /usr/src/ > ! > ! # env WITH_META_MODE=yes make buildworld > ! > ! # env WITH_META_MODE=yes make installworld > ! > ! # env WITH_META_MODE=yes make buildworld (again #0) > ! > ! ## no more rebuilds below? > ! > ! # env WITH_META_MODE=yes make buildworld (again #1) > ! > ! # env WITH_META_MODE=yes make buildworld (again #2) > ! > > ! > But what is the difference between #0 and #1? > ! > ! awk, cp, ln, rm, sed, and many more from > ! . . ./tmp/legacy/usr/sbin/have new dates > ! for rebuilds after installworld (that targets > ! the running system). Not true for #1 and #2. > ! > ! The dates on these tools being more recent than > ! the files that they were involved in producing > ! leads to rebuilding those files. That in turn > ! leads to other files being rebuilt. > ! > ! make with -dM reports the likes of: > ! > ! file '. . ./tmp/legacy/usr/sbin/awk' is newer than the target... > ! > ! explicitly as it goes. As I remember tmp/legacy/usr/sbin/ > ! was always part of the path for what I found. > > Mark, thanks a lot for the proper input at the right time! > > This put me on the right track and I mananged to analyze and > understand what is actually happening. > > It looks like my issue does resolve itself somehow, and things > start to behave as expected again after four builds. Intersting. > ! I did not do the analysis of how (e.g.) tmp/legacy/usr/sbin/awk > ! ended up being newer than such a target and, so, causing a > ! rebuild of that target. I was going the direction: that > ! it is newer really is unlikely to justify the rebuild for > ! the target(s) in question. The other direction about how > ! it got to be newer is also relevant. > > I have now analyzed some parts of it. META_MODE typically finds some > build-tools to rebuild, but then if the result is not different > from what was there before, then "install" will not copy it to the > bin-dir, and so the avalanche gets usually avoided. > The implication is that "install -C" is in use, quoting the man page: -C Copy the file. If the target file already exists and the files are the same, then do not change the modification time of the target. If the target's file flags and mode need not to be changed, the target's inode change time is also unchanged. -c Copy the file. This is actually the default. The -c option is only included for backwards compatibility. -C might have more of an effect in a reproducible-build style build process than on a non-reproducible-build style one. === Mark Millard marklmi at yahoo.com