From nobody Thu Feb 23 22:03:56 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 4PN6XM3CXcz3spT5 for ; Thu, 23 Feb 2023 22:05:23 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mx0b-00273201.pphosted.com (mx0b-00273201.pphosted.com [67.231.152.164]) (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 4PN6XM2YTvz3R9y; Thu, 23 Feb 2023 22:05:23 +0000 (UTC) (envelope-from sjg@juniper.net) Authentication-Results: mx1.freebsd.org; none Received: from pps.filterd (m0108163.ppops.net [127.0.0.1]) by mx0b-00273201.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31NIeY3u011769; Thu, 23 Feb 2023 14:05:01 -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=GrfPwr4aA/6KiLVMm6Zwp+3idv4gPIh6ux591vBDY5Q=; b=oVVhuGM1KP+WZU3GMFbIg+hzGvZdPzAxfNOlIuQU4BCNuB5OCxmf+4r2BRInoSRG6SkM GJjQZ94JFQkG1yo1QPsATQ1NEF4tgU2NWJMeORiOu4VPDLjx1zYUGEfXWudGSZJT2h4x ACkHn8IzqbxCxPr3FPnFNv4+rtyF8IAKImA/mQgzEEKf3nOxuKLnHCTvWQTDheyxmYDn mPY8/DRZgHxckQqjv04Zg4xa4C16LU1YajpgyibR17e+UKMiuwDyUtYYndLgDTW2coBH 6BrO+kN0uhYIhenTshByTA9utTmzgr+wLu+vW2/6wheKSDw26oJ+Dd9I2wmqAM3WCXPi fQ== Received: from mw2pr02cu002-vft-obe.outbound.protection.outlook.com (mail-westus2azlp17013031.outbound.protection.outlook.com [40.93.10.31]) by mx0b-00273201.pphosted.com (PPS) with ESMTPS id 3nx8gssa0j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Feb 2023 14:05:01 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kIBg1THXB50qNYjlCJegEd4F7YEr9Z00Sq78FpLkreiv4Ox2PywA474Yu8Opwqh9LKDKh7zOefscTa6BzvfMRi0o/NkuVA+6qlvf5Wk0uz9wNRZ3zAnwtnmvY9Sb+yUjp92WK9R4nhwz5Mxjcy9XtKLynCaAFLzCzUlaWJpGRlhIgWdVAUVbQeUDFRWZYYS6nqBZh/mDEFAgUTiffv/dTxov8+jyJcC/fIekQozgENxG7fo0Wyx/mSNneCpTdDg6Q5sBf4F6QR7jBxMucu2pTwZsmU0oZNe0jYRCcpX6qRDKKISKjCW0QKx7PsJTzIkz71aSfxmgsnSXRvU0KJHI3Q== 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=GrfPwr4aA/6KiLVMm6Zwp+3idv4gPIh6ux591vBDY5Q=; b=CqWL7JMtz9nrta9gJmW7sfSopKHkVMjZj39D6QTGigfJ4iQ+n/wNdPFXVagA7343zy8B24wAR49pc8wI0rHRfJ/sWBlPOQAZi9QgCLtm738HY1SARCiBnztMgrCS6uuF8Xfl6jtLlbeNcJC8zxBcctdypW+6lipVEEGzGSim1QrIgz27Nxb1ivU2W4wd7VWPS0z+hxLMb4k0+DVpTWpySLb5vDY3e5+pY1HZrP3iEOKGvCMn5+K9qESj9f2cOSn7CVlh9MeGLGaPUy8286c665MONqj3mc+xk3WZ9BcYQ7wvK18An44tUXwNUXybMQXWLgMKOygqHzXAgWgmZdioQw== 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=GrfPwr4aA/6KiLVMm6Zwp+3idv4gPIh6ux591vBDY5Q=; b=VwiPyR4o2jyIw0rPQDEpCujs+WhcxotgdajGy1bNMxwH/Qh6XYhr1yqQ989exv5VP34xJB8XhAXrxJhmKvkjW1SuuwLw/9+srDo13cGcVBJYD/tjzewWQydY/BwOYcW8LQKmJIgL7bLKXCMVmHei0IrcqsLNOFSDp+nt6htt4Jo= Received: from DM6PR06CA0068.namprd06.prod.outlook.com (2603:10b6:5:54::45) by DM6PR05MB5353.namprd05.prod.outlook.com (2603:10b6:5:5b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21; Thu, 23 Feb 2023 22:04:56 +0000 Received: from DM6NAM12FT060.eop-nam12.prod.protection.outlook.com (2603:10b6:5:54:cafe::e1) by DM6PR06CA0068.outlook.office365.com (2603:10b6:5:54::45) 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 22:04:56 +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 DM6NAM12FT060.mail.protection.outlook.com (10.13.179.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.5 via Frontend Transport; Thu, 23 Feb 2023 22:04:56 +0000 Received: from p-exchbe-eqx-02.jnpr.net (10.104.9.15) 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 16:04:55 -0600 Received: from p-exchbe-eqx-02.jnpr.net (10.104.9.15) by p-exchbe-eqx-02.jnpr.net (10.104.9.15) 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 16:04:55 -0600 Received: from p-mailhub01.juniper.net (10.104.20.6) by p-exchbe-eqx-02.jnpr.net (10.104.9.15) 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 16:04:55 -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 31NM4tWP007414; Thu, 23 Feb 2023 14:04:55 -0800 (envelope-from sjg@juniper.net) Received: by kaos.jnpr.net (Postfix, from userid 1377) id 5CC5621199; Thu, 23 Feb 2023 14:03:56 -0800 (PST) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id 5965821198; Thu, 23 Feb 2023 14:03:56 -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: 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> <42586.1677183334@kaos.jnpr.net> Comments: In-reply-to: Mark Millard message dated "Thu, 23 Feb 2023 13:12:35 -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: <99202.1677189836.1@kaos.jnpr.net> Content-Transfer-Encoding: quoted-printable Date: Thu, 23 Feb 2023 14:03:56 -0800 Message-ID: <30.1677189836@kaos.jnpr.net> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM12FT060:EE_|DM6PR05MB5353:EE_ X-MS-Office365-Filtering-Correlation-Id: 6b799ec1-92f6-442c-e59f-08db15e9ffb5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iWgDT+VV+hGjhy8yiWdgbVBrSr9cvajhAYEBWoc1Ws2HUnUbzdMH9bOtgkBKH3Frz/xJAySMUdD7U3p0yyXFzo042XkDzJ7wyjbUVAu3LKc7HKLUZeqeAngNIxr8mXFnIaQHcs2JE/Ske/X85JFsNnfC/twGW0VGPG1m64U2C0vFpz0WKztnFmRMrZvDVP4oFik/mBS40lKCWB+Gli7qxEeegtrPqjrzeDexQfStsCGJY2dn8QPIr+d0S2Yi2jzrBR/f/u7yIGX4AY5TKN8btLkC8YaGbQYHs8aUvrQ7AMO2D8rheF00xr1j0H5iSikSi2MGNFYvsXYlSah+jXlpmIrQcJQ3Is2lMld/WhuvcJLtOZactd8+M/FyCs5kIP1ey1UC1XYyUU3sXoaEFXQ8dApD8r0JDHfxSslvUdnuoZQ1gHEMxSPZmUgFq1VYv1pOnTVHcZWl1x7wFfi6MHp5LBxob0J5AHKVCIPOgxmT1f7PfgwMDvIgZUfJq3ZqOU8oWraygKqhVqPY43dAfR/xbJsdVWh7t5ccDwl1p50xYNfHMXWcwSbsUg/grcHWbDqdEGPqIfg/v1LegQcS96XPe4drC0K3E9xiVo/nCt6PLCvaVjG/FgAjELtD10eS2CUotizwHzv5Lr8G9kBjf+iNZx3Pu01GdiqnAQuAi/qtwOwDD3UpnVBKPSvKm2+n0xBqs8ZZT8tUtRXlSefpFgjvqYPJnZhAeBnCuH5y3jUC2DJ0d0+J/tguw7iYvcXfarQwir7fDlgqIC1OQFXH1qga9BL3H/1ahkt8zTo3UVT2/9k= 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)(376002)(346002)(39860400002)(396003)(136003)(451199018)(40470700004)(36840700001)(46966006)(86362001)(8936002)(41300700001)(2906002)(82740400003)(36860700001)(356005)(83380400001)(81166007)(5660300002)(478600001)(70586007)(316002)(7696005)(4326008)(6916009)(70206006)(8676002)(6266002)(9686003)(7126003)(55016003)(40460700003)(186003)(26005)(40480700001)(82310400005)(107886003)(336012)(54906003)(47076005)(36900700001);DIR:OUT;SFP:1102; X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2023 22:04:56.3793 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b799ec1-92f6-442c-e59f-08db15e9ffb5 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: DM6NAM12FT060.eop-nam12.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR05MB5353 X-Proofpoint-GUID: tEXEnV6ntac6bLIBP5XoVuCQrxy-CyGO X-Proofpoint-ORIG-GUID: tEXEnV6ntac6bLIBP5XoVuCQrxy-CyGO 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 clxscore=1015 mlxscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 spamscore=0 adultscore=0 bulkscore=0 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302230182 X-Rspamd-Queue-Id: 4PN6XM2YTvz3R9y X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:22843, ipnet:67.231.152.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: > So I was hoping for a "assigned once and > inherited" status relative to submakes for > .MAKE.META.IGNORE_PATHS . No, .MAKE.* are specifically named to ensure they cannot come from the environment. So bounding them in a check for level 0 pretty much ensures they have no effect. > > In which case the above would not be correct. > = > And I've not found any notation that is always correct I think your fundamental issue is above. These variables apply only per make instance. They are not inherited, they are not global. As I mentioned previously, there is no variablity of OBJTOP within the context of a single make instance - at least not once it starts running targets. > but adjusts to what /usr/obj/BUILDs/*/usr/main-src/*.*/ > I happen to be building for. The example that I've > been showing is main-amd64-nodbg-clang with amd64.amd64 > but there are other *-*-*dbg-* and *.* that I build for. Sorry I guess I'm not following what you are saying as I cannot see how any of that is relevant. > = > (I have found multiple notations that work for > -V.MAKE.META.IGNORE_PATHS .) Sorry not sure what that means. Note that when you do make -V BLAH you are seeing the value of BLAH as level 0 sees it - which in your setup looks right. But because of your conditional on level 0 the effect is not what you want once the build gets going. = > I'm wondering if I need to invent a new, personal name > that will not clash with official names and just use > reference to to my name, adjusting my build scripts > to provide the definition. Sorry, a name for what? > = > So: I'm still searching for approriate notation, at least > for the tmp/legacy/usr/ related paths. (The tmp/usr/bin/ > experiment is more questionable it is appropriate overall.) Again not really following. If there are paths under tmp/legacy/usr/ that should be ignored by meta.c - why would that not be so for everyone? > Until I know a valid notational technique, expect to > see experiments involved in what I do. Going the other > way: if I'm to test something for you, let me know the > context you want used instead of whatever my experiment > status happens to be. > = > >> For reference: > >> > >> # more ~/sys-build-scripts.amd64-host/make-main-amd64-nodbg-clang.amd= 64-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/typescr= ipt-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-= clang.amd64-host" \ > >> WITH_META_MODE=3Dyes \ > >> MAKEOBJDIRPREFIX=3D"/usr/obj/BUILDs/main-amd64-nodbg-clang" \ > >> make $* This is why we introduced variables like SRCTOP and OBJTOP behind which yo= u can hide all the above. It should not matter what or how OBJTOP gets its value it should be useful. .MAKE.META.IGNORE_PATHS +=3D ${OBJTOP}/tmp/legacy/usr should result in nothing under ${OBJTOP}/tmp/legacy/usr causing a target to be out of date - just because it is newer.