From nobody Thu Feb 23 20:15:34 2023 X-Original-To: freebsd-current@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 4PN47K6nLJz3sj38 for ; Thu, 23 Feb 2023 20:17:01 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mx0a-00273201.pphosted.com (mx0a-00273201.pphosted.com [208.84.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.pphosted.com", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PN47K4FGDz4KXZ; Thu, 23 Feb 2023 20:17:01 +0000 (UTC) (envelope-from sjg@juniper.net) Authentication-Results: mx1.freebsd.org; none Received: from pps.filterd (m0108156.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31NBstNk004316; Thu, 23 Feb 2023 12:16:37 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h=to : cc : subject : in-reply-to : references : from : mime-version : content-type : content-id : content-transfer-encoding : date : message-id; s=PPS1017; bh=WzR+6zqFTXOgMgBEIs+hohIafWQvhFf/mTrUz5xu3Xk=; b=GSVndHO8/mNC6h0nQo4hbfoAbJmnuGeS6yicEOJ7QZRWvwZVefJVyccBrG/HY0PTHmcn X5YukaWxJm9xMBUg3KBfHmCogL3vaH7YTHBPNT/xG31RHKBs6aQZhdk+kD19gMQiICqV NgeMmK3zKcld1W9kFk5XTEK8R8nbkvfm3yZMQJezsCYJ8dphV7I8z+0RjhoJshqx1rWO VNXVUxs7Y/hW+QIFcaq+AqOy7voJOYvVkxWiQuE2ymT/qWaCNQAKL73Gtt6N0bvLykJM +NMOd8KePVrg9cMocu6Iku4OFFvD6Z9GXdxor17+rqEqsO8gHPJ+uS0vVP9GWuzksRMr 5g== Received: from dm4pr02cu001-vft-obe.outbound.protection.outlook.com (mail-centralusazlp17012023.outbound.protection.outlook.com [40.93.13.23]) by mx0a-00273201.pphosted.com (PPS) with ESMTPS id 3nwyb99kug-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Feb 2023 12:16:36 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HmThj0uxKqIRPpIKgNGpElkC08vxXnsHphAeYH17Z6U0lvf0sP+DkE3JalsMyDyfczg+hLc63mMlPrKp6KX0UI71dCVquw4JAY8X2Dj7G8CdSYDOuiNJXnlmbLpqVN+MIZzFVHn+VsK1o8iOaexsi3nFP82LKUx8rheJEYq8auGb5aetZ1L1oWKOLgPFTI5mg5JaDuBYw+CWsbRL6/Gx4CLm1MeVHzWGmb/aTBrG9glhpzlwufwpK2pRUACP3F/nHYjGRovNDJgrkEdGMoYoPRzcofq3WU/NJHqDcjEBXlFnstMLr709PfljjUI9xuL8cR5BgOwvczTUzqemTT2jNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=WzR+6zqFTXOgMgBEIs+hohIafWQvhFf/mTrUz5xu3Xk=; b=F6IEGX8TFSQ+6nJXRXgTMbbreeEwBVaWVyCFRoiZjjDtVCpit8FKFpQuS6X5I3ISAlMySaMO5kVlRxYg3t3KVkwHz92mcJD4zLo977tHWvAXbRBdH8dzUbHYux5LBolAcHjN6XYXBvSxq8lFXuP3OpO/5YWO/950Fv6uqewEJryVvyF73HBrw2kNymuPmgH/MQvaEQGAgJWRLnRzNebBp2+2tnkUYi4PRuPkpO1NfVPtkGIlMUEDcsbufZzK+991F6nigwitGrFyK4AbtCx1R4+wRA3nykWLf53gRp6TNv6TE1mqFyVTrUGJm+0AprwyHyuQS5CRTiasMWC/+qVtBQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=softfail (sender ip is 66.129.239.14) smtp.rcpttodomain=yahoo.com smtp.mailfrom=juniper.net; dmarc=fail (p=reject sp=reject pct=100) action=oreject header.from=juniper.net; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=WzR+6zqFTXOgMgBEIs+hohIafWQvhFf/mTrUz5xu3Xk=; b=XBzaYok4zNUBavQMc36+wBvXRtxeSEkD1zG3OIaNq57yRytcveR94AL7rIbvtwoa2t9c3byc2q2opH3xcq+XN8LY9IkGQNTLP9TT6/EH8xandvZP1q1cgOVy3ocY9L3GbiDdR0NzXp6Df7rhqO4hIxPvNoPbnE5YmgvvUIXlFGE= Received: from MW4PR04CA0319.namprd04.prod.outlook.com (2603:10b6:303:82::24) by DS0PR05MB9719.namprd05.prod.outlook.com (2603:10b6:8:14d::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.18; Thu, 23 Feb 2023 20:16:34 +0000 Received: from MW2NAM12FT087.eop-nam12.prod.protection.outlook.com (2603:10b6:303:82:cafe::5a) by MW4PR04CA0319.outlook.office365.com (2603:10b6:303:82::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Thu, 23 Feb 2023 20:16:34 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 66.129.239.14) smtp.mailfrom=juniper.net; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=juniper.net; Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.14 as permitted sender) Received: from p-exchfe-eqx-01.jnpr.net (66.129.239.14) by MW2NAM12FT087.mail.protection.outlook.com (10.13.181.176) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.17 via Frontend Transport; Thu, 23 Feb 2023 20:16:34 +0000 Received: from p-exchbe-eqx-01.jnpr.net (10.104.9.14) by p-exchfe-eqx-01.jnpr.net (10.104.9.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.30; Thu, 23 Feb 2023 14:16:34 -0600 Received: from p-exchbe-eqx-01.jnpr.net (10.104.9.14) by p-exchbe-eqx-01.jnpr.net (10.104.9.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.30; Thu, 23 Feb 2023 14:16:33 -0600 Received: from p-mailhub01.juniper.net (10.104.20.6) by p-exchbe-eqx-01.jnpr.net (10.104.9.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.30 via Frontend Transport; Thu, 23 Feb 2023 14:16:33 -0600 Received: from kaos.jnpr.net (kaos.jnpr.net [172.23.255.201]) by p-mailhub01.juniper.net (8.14.4/8.11.3) with ESMTP id 31NKGXer013066; Thu, 23 Feb 2023 12:16:33 -0800 (envelope-from sjg@juniper.net) Received: by kaos.jnpr.net (Postfix, from userid 1377) id 6574020FB9; Thu, 23 Feb 2023 12:15:34 -0800 (PST) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id 645A921181; Thu, 23 Feb 2023 12:15:34 -0800 (PST) To: Mark Millard CC: Bryan Drewery , Current FreeBSD , Peter , Subject: Re: FYI: Why META_MODE rebuilds so much for building again after installworld (no source changes) In-Reply-To: <242BB478-B2FE-4BCC-A56E-098F3FEB3EE1@yahoo.com> References: <3345EBA5-A09C-4E3F-B94D-39F57F56BDBB@yahoo.com> <73088.1611797582@kaos.jnpr.net> <10819.1677108389@kaos.jnpr.net> <76FA98EF-6184-4D7E-A01F-0EE8117D0D10@yahoo.com> <29887.1677115125@kaos.jnpr.net> <27790339-240F-4C97-97C7-38AFD8DE03D5@yahoo.com> <7FB6F619-6E71-4075-8A6C-573564371DD5@yahoo.com> <2655.1677134606@kaos.jnpr.net> <242BB478-B2FE-4BCC-A56E-098F3FEB3EE1@yahoo.com> Comments: In-reply-to: Mark Millard message dated "Wed, 22 Feb 2023 23:10:49 -0800." From: "Simon J. Gerraty" X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 28.1 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <40100.1677183334.1@kaos.jnpr.net> Content-Transfer-Encoding: quoted-printable Date: Thu, 23 Feb 2023 12:15:34 -0800 Message-ID: <42586.1677183334@kaos.jnpr.net> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MW2NAM12FT087:EE_|DS0PR05MB9719:EE_ X-MS-Office365-Filtering-Correlation-Id: 3398aa5d-7df7-4db0-a813-08db15dadc50 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pSn142pQn6K6nAV9IN+NILKB8FAkZjhBWmaz0XwJvIjsdU1SJs/vhJsq2ALCqzmlcPs9FsqToU84m3Dj+9YYvB93Ol8UHAUwiXbd1Wqwzsl7+Biuu6EEZnKjaehuoUntkMN6iVnyN1ttouNJ+3PVTkrDgElTTB2E2bn0L1BtHfzKdFTPA5Du4RoSzCJrxK7deHMTaPqw+v4742HXUUuEsuTIZ8muBS0qoIO0yka1VeGUlv4GjCqjqkYYNMumHsGrl2HHodpMDdgtaCUr5CrwFe10pmEUxxdG9WMPDyV5VGju0D9Q72KTBmImGh5Wb3qnOFiAO/IAgb/LcrknWQr926gcOiS+ICk+f6llYdmysq/NDjmaRMDYmSUwXdHu7ZkAwtrYwas5eSrYDrfniM1Kzmah42lHO0qlOm/S4H17XtdkuwP1JmVuWI0wHxEVlh30h5ZeZJt3EeNOD8dhGDMxutQVCMsrIWtEJWmnhGF6c2rwnBzNe6iZ8WPtERz9JppBobgtyrVj9n7IAD0+GiEEDM1gk1tE+kZKsRI/tQyu2zbU/53MA78xnfQ0l39rhb7g1n4NKHaXyu2CxzjpshIhUINmwABe659+F5eZpEUuVq5Pm5LT6z/iCBluiE9UbYMsv0NKbeTmKvgkYfCdT9rCs+1p0XD8szMOxPFQmBRmHJlwrsL9IqBg/yAGEU//AKm5ECunDQentBZ2QtQeT1qwwN9d7NYQ4HYmSnO/r7i8cKtBEcZGwG/BaJ66Fs1OFqCoxv3mL+G8tnfRwkECHtb3mQ== X-Forefront-Antispam-Report: CIP:66.129.239.14;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:p-exchfe-eqx-01.jnpr.net;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(39860400002)(376002)(396003)(346002)(136003)(451199018)(36840700001)(46966006)(40470700004)(7696005)(356005)(316002)(86362001)(54906003)(70206006)(4326008)(70586007)(26005)(186003)(6266002)(6916009)(66899018)(82310400005)(8676002)(478600001)(41300700001)(9686003)(55016003)(40460700003)(5660300002)(8936002)(107886003)(82740400003)(47076005)(36860700001)(2906002)(7126003)(81166007)(336012)(40480700001)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2023 20:16:34.5915 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3398aa5d-7df7-4db0-a813-08db15dadc50 X-MS-Exchange-CrossTenant-Id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bea78b3c-4cdb-4130-854a-1d193232e5f4;Ip=[66.129.239.14];Helo=[p-exchfe-eqx-01.jnpr.net] X-MS-Exchange-CrossTenant-AuthSource: MW2NAM12FT087.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR05MB9719 X-Proofpoint-ORIG-GUID: LwrSzAMhxMQbZ8TuxXXZzNYoM1ZUlBqA X-Proofpoint-GUID: LwrSzAMhxMQbZ8TuxXXZzNYoM1ZUlBqA X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-23_13,2023-02-23_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 spamscore=0 malwarescore=0 mlxlogscore=493 impostorscore=0 mlxscore=0 adultscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 clxscore=1015 phishscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302230168 X-Rspamd-Queue-Id: 4PN47K4FGDz4KXZ X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:26211, ipnet:208.84.65.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Mark Millard wrote: > The contribution to the list is currently generated via > use of: > = > .if ${.MAKE.LEVEL} =3D=3D 0 Why is this guarded by .MAKE.LEVEL 0? .MAKE.META.IGNORE_* should be largely irrelevant at level 0 which in the DIRDEPS_BUILD is reserved for orchestration. Even in the legacy build, level 0 would be just the top-level makefiles and anything dealing with meta files would be expected to be level 1 or greater. = > .for ignore_legacy_tool in awk cap_mkdb cat cp crunchgen crunchide dd eg= rep env file2c gencat grep gzip jot lex lb ln m4 mkcsmapper mktemp mv patc= h realpath rm sed sh touch truncate uudecode uuencode xargs > .MAKE.META.IGNORE_PATHS+=3D ${MAKEOBJDIR}/tmp/legacy/usr/sbin/${ignore_l= egacy_tool} > .endfor > .for ignore_other_tool in ctfconvert objcopy nm > .MAKE.META.IGNORE_PATHS+=3D ${MAKEOBJDIR}/tmp/usr/bin/${ignore_other_too= l} > .endfor > .MAKE.META.IGNORE_PATHS:=3D ${.MAKE.META.IGNORE_PATHS} > .endif > = > The :=3D use is how I avoided needing to worry about late binding > substitutions for my additions (independent of the internals of > make's specific .MAKE.META.IGNORE_PATHS handling). Depending on value of MAKEOBJDIR the above may not work at all. The default is share/mk/src.sys.obj.mk:_default_makeobjdir=3D $${.CURDIR:S,^$${SRCTOP},$$= {OBJTOP},} In which case the above would not be correct. > For reference: > = > # more ~/sys-build-scripts.amd64-host/make-main-amd64-nodbg-clang.amd64-= host.sh > kldload -n filemon && \ > cd /usr/main-src/ && \ > mkdir -p /usr/obj/BUILDs/main-amd64-nodbg-clang/sys-typescripts/ && \ > script /usr/obj/BUILDs/main-amd64-nodbg-clang/sys-typescripts/typescript= -make-amd64-nodbg-clang-amd64-host-$(date +%Y-%m-%d:%H:%M:%S) \ > env __MAKE_CONF=3D"/usr/home/root/src.configs/make.conf" SRCCONF=3D"/dev= /null" SRC_ENV_CONF=3D"/usr/home/root/src.configs/src.conf.amd64-nodbg-cla= ng.amd64-host" \ > WITH_META_MODE=3Dyes \ > MAKEOBJDIRPREFIX=3D"/usr/obj/BUILDs/main-amd64-nodbg-clang" \ > make $* > = > = > =3D=3D=3D > Mark Millard > marklmi at yahoo.com