From nobody Tue May 6 20:14:01 2025 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 4ZsV4067zKz5vMNn for ; Tue, 06 May 2025 20:14:40 +0000 (UTC) (envelope-from sjg@juniper.net) Received: from mx0b-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 "Sectigo RSA Organization Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZsV403lghz4QMQ; Tue, 06 May 2025 20:14:40 +0000 (UTC) (envelope-from sjg@juniper.net) Authentication-Results: mx1.freebsd.org; none Received: from pps.filterd (m0108157.ppops.net [127.0.0.1]) by mx0a-00273201.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 546IQeiZ013132; Tue, 6 May 2025 13:14:39 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; h= cc:content-id:content-transfer-encoding:content-type:date:from :in-reply-to:message-id:mime-version:references:subject:to; s= PPS1017; bh=HCjhCgHUel3b0JNXdNOUJjfWcFRXmCY7rnAYElD71Wc=; b=VUFB LzEnNO5twGWMzHpGfTJjFP+NLiwOv4U/XrQ1OKc5LJAj5zpuoKWloR5b54hHpdqa k6Iy+7wWUMmlezLqgB/BQJ3xzN6iMl/VdLNcnmPxi2H1zIa0khNJtuTaQTZ/HU6U mdQaMcPowUIibtCgFQklP9ud4CAifytaL6VT7Okn/rmA9bP/ya6XiuNmL2PHTdeU PI3bgnQwy6QGhbcq1r4/7RCsTIzyTtpSV6TRZ2ciAbPdE5xalrIvWDX4kG1dlIxt ES6UgMxZA5ePJR3+zuvxIV0y8F3xkuzQ+AHN7UfpoSNerzo796CloDDMMzpR9acO ULHfP6mbpxPR7JuzdA== Received: from bl2pr02cu003.outbound.protection.outlook.com (mail-eastusazlp17010004.outbound.protection.outlook.com [40.93.11.4]) by mx0a-00273201.pphosted.com (PPS) with ESMTPS id 46es8dce84-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 06 May 2025 13:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ImypSVYl7hmsTjJlozN5/JqkSDuZmsTfbgtaWmoDvQtuQLt1i/4a3pz76urK2GvkcqYeOYeTOHdVj8ALh1jbsxwPgOaNBwSKXEUJhUZ0RhIFATUBKcrc00FhTsu/OsXIZq5cUsNX1ZQA6gssBoTgHYZhBTjpDzmiaBiRgWuwndFL58EMPHAbbfyqIxU89Juq6C4Ujr/BS3HhZAA7duE5Z3p4zUtP5T68/rZdOcgmPR4wk3fja+nhG2ro73HNPIGhPQNB+SLkb7mwBCMlqERGaY84fBnW4I8W06BlXw7Vm8MOo3V7KMBDzM2aos8HH2eSK3ubvqXjeZwDJLCfZUOlBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HCjhCgHUel3b0JNXdNOUJjfWcFRXmCY7rnAYElD71Wc=; b=BgWZgpk4uuu9tBMMeoVbLk4Ek5fp+ch6pM5XTraq9BVvE8DRHy11pAdid4N6TKprhIbtSmgJNrnljyZ8orgmq+70F6RH3Lt8m8F+MrQSpFicmc4hQyDzCnEooZKsTexIOLNmcuNRN0+LL2sLtHoiC6y+k8xAIXowy5TcLyIGo3s0YSJUNR6uIRk7qrhpph99ncti2rY3dfSuNj8VvOGG+waqwDeqO5Jr9ytqxBFi398AUeUCEPAj+y6nWYAqm60sZMy0gq2BPY3Gt74VqeQKig2JeocLSFVg+o9c54cSIpN8Xr41BmVsfkJ1KE3pgnG3dIqJlgNJ6J12bxUDhhHdWw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=softfail (sender ip is 66.129.239.15) smtp.rcpttodomain=freebsd.org 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 (0) 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=HCjhCgHUel3b0JNXdNOUJjfWcFRXmCY7rnAYElD71Wc=; b=dcf74M5b+sbHYRAR1FU21yOsWkCRrJLTUn49CzX6M4zHQFZ7v80FasR3LsOr4HCZQKxJnWNPZWv7XUiyI//BvYEmEYbjrC+OtrA4Ni4/GDEueKKDBFrN9IVRToFKNY47u/n801NX3kyXEpquH775ZKAr/9795dFl93IA4yHRThQ= Received: from MW4PR04CA0179.namprd04.prod.outlook.com (2603:10b6:303:85::34) by DS7PR05MB10044.namprd05.prod.outlook.com (2603:10b6:8:ee::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8699.25; Tue, 6 May 2025 20:14:35 +0000 Received: from MWH0EPF000A6730.namprd04.prod.outlook.com (2603:10b6:303:85:cafe::fa) by MW4PR04CA0179.outlook.office365.com (2603:10b6:303:85::34) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8699.33 via Frontend Transport; Tue, 6 May 2025 20:14:35 +0000 X-MS-Exchange-Authentication-Results: spf=softfail (sender IP is 66.129.239.15) 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.15 as permitted sender) Received: from p-exchfe-eqx-02.jnpr.net (66.129.239.15) by MWH0EPF000A6730.mail.protection.outlook.com (10.167.249.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8722.18 via Frontend Transport; Tue, 6 May 2025 20:14:34 +0000 Received: from p-exchbe-eqx-02.jnpr.net (10.104.9.15) by p-exchfe-eqx-02.jnpr.net (10.104.9.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Tue, 6 May 2025 15:14:34 -0500 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.1544.14; Tue, 6 May 2025 15:14:34 -0500 Received: from kaos.jnpr.net (10.104.20.6) by p-exchbe-eqx-02.jnpr.net (10.104.9.15) with Microsoft SMTP Server id 15.2.1544.14 via Frontend Transport; Tue, 6 May 2025 15:14:34 -0500 Received: by kaos.jnpr.net (Postfix, from userid 1377) id 94E38DBAE9; Tue, 06 May 2025 13:14:01 -0700 (PDT) Received: from kaos.jnpr.net (localhost [127.0.0.1]) by kaos.jnpr.net (Postfix) with ESMTP id 9481EDBB7C; Tue, 06 May 2025 13:14:01 -0700 (PDT) To: Mark Millard CC: Nuno Teixeira , FreeBSD Current , Subject: Re: incremental bulds from scratch with beinstall.sh In-Reply-To: References: <28F2BDE7-5903-4C04-A570-6A407F19D5F2.ref@yahoo.com> <28F2BDE7-5903-4C04-A570-6A407F19D5F2@yahoo.com> <49396.1746554966@kaos.jnpr.net> Comments: In-reply-to: Mark Millard message dated "Tue, 06 May 2025 12:32:13 -0700." From: "Simon J. Gerraty" X-Mailer: MH-E 8.6+git; nmh 1.8; Emacs 30.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: <85723.1746562441.1@kaos.jnpr.net> Content-Transfer-Encoding: quoted-printable Date: Tue, 6 May 2025 13:14:01 -0700 Message-ID: <87401.1746562441@kaos.jnpr.net> X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000A6730:EE_|DS7PR05MB10044:EE_ X-MS-Office365-Filtering-Correlation-Id: 434b434e-ed9f-4ab2-547a-08dd8cda9ea6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|376014|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?bEMLKu3D3JyahlPR7QDPBGWM+pUvcRXtRfzdLuFSSK7+W2Jjmh8ey57CIKx2?= =?us-ascii?Q?TlufocW2Do6FUw9bzFTkB7tYl/scWEFYlcRGttV9xhASrILO1fHufvLrg5UD?= =?us-ascii?Q?nQSgC6K7q1wId+bE+A24LDWp1/1KNJ/Xue8xEMZCOmRD6DV6pS8495fiIRZC?= =?us-ascii?Q?873EsP6Z2OjIfJSm20IKTmQ6gEiMOu8ehMK0CQK57JyTtRJKfpll+KdIqdL/?= =?us-ascii?Q?pQYQ46gnGphuhjN/NISpGH2zKdamCU+Yt1mE9LVd1ooEOkZgEMYHU12r/JPA?= =?us-ascii?Q?qZmCp0Alt8k839gxFzOndU0U+DBrAgaUb46Z/4c7eTboKZ+OSK0TdRiSsotx?= =?us-ascii?Q?8og8Hx7imBWBz+X/53zZ6ThZ1NScA84NKCOiA8iSEZ5QZGxFYFQg7U+yrSOP?= =?us-ascii?Q?R5u1sa09sBvAc6egNuMAOrf+tGdoIO5s0BViEFt4Qo3pnkHS5dnflKrpmv9p?= =?us-ascii?Q?oQZsEU/k5rKVAnGpvAI5/ljJ1iWzRoOEWXIjO+xdLaTxJKM23ImpFG3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IB0i0bY11tB1Pk0hFIdFutL2URmGnRyA0Ex5U7T9?= =?us-ascii?Q?FHIIQrCt6Bc8K44/HkEomUpecyuNbUQsLJuJFAoyytl54Dn05Zz6RReJiSuh?= =?us-ascii?Q?w0EnUdhOD1bpqSjOwnOFr8Gy4W5hr3CnZgT0?= X-Forefront-Antispam-Report: CIP:66.129.239.15;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:p-exchfe-eqx-02.jnpr.net;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(376014)(36860700013)(1800799024);DIR:OUT;SFP:1102; X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2025 20:14:34.8370 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 434b434e-ed9f-4ab2-547a-08dd8cda9ea6 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.15];Helo=[p-exchfe-eqx-02.jnpr.net] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000A6730.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR05MB10044 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNTA2MDE5MCBTYWx0ZWRfXyDuaszhpizoN pmSDLh8HhuBzrHSBR+9MSkfbxuMSWUY7TfPQhyojdC2HpokFxP3ygpOO05UwzI8Vi3rOabKMYUX X5AZ6g/keIUrAgwnlDYKDwylgPAXgcpr2IDNfEPFsJN6zczJvPGyrv8/Gdn8K6Ek9FXsG7FR6+V kldSV0ircJz3Y2mdwAkUNRUWjmvIAbDIadkfiE0T/7DIKgD/idHmvirsrx+wiEwelZDwedRzcs8 vKdZOTF9HvWhRwyHp1oN2JqPXnAPNta1DnrkAFqWCP/vQd4ghRDMhAvL7DCr5vvzuE3KB85T8zO F7DYNhr7nxz3e0T5Tg/bMmQKqqP6sR6tYKADyrXFpNCW/fXCsm2umW+gSpFwsSVdsR5YdO/GwV0 QkMjSggvfe27Mm1IMcbI/lHyDf67wplp8w3/QnIKBvYjRv7V4/N2/fEWvRphhq7foVgjpOHd X-Authority-Analysis: v=2.4 cv=EMoG00ZC c=1 sm=1 tr=0 ts=681a6dae cx=c_pps a=uYdjBAypVXkA+ZVpDPXefQ==:117 a=YQU41r7WENJiSYrYYNJVsQ==:17 a=h8e1o3o8w34MuCiiGQrqVE4VwXA=:19 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=kj9zAlcOel0A:10 a=dt9VzEwgFbYA:10 a=s63m1ICgrNkA:10 a=rhJc5-LppCAA:10 a=CjxXgO3LAAAA:8 a=CVnTXXcy-bL-w-LYAykA:9 a=CjuIK1q_8ugA:10 X-Proofpoint-GUID: n8GGp5LfzUi3KJ3LcIdqqlSf3kmdwtax X-Proofpoint-ORIG-GUID: n8GGp5LfzUi3KJ3LcIdqqlSf3kmdwtax X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.0.736,FMLib:17.12.80.40 definitions=2025-05-06_08,2025-05-06_01,2025-02-21_01 X-Proofpoint-Spam-Details: rule=outbound_spam_notspam policy=outbound_spam score=0 impostorscore=0 spamscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 mlxlogscore=647 phishscore=0 adultscore=0 mlxscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2504070000 definitions=main-2505060190 X-Rspamd-Queue-Id: 4ZsV403lghz4QMQ X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated 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-Spamd-Bar: ---- Mark Millard wrote: > > Of course trying to get too clever can end up being counter productive= , > > but the tools are there... > = > I still have the addition that we found was needed > in my experiments years ago (white space details > below may not have been preserved): IIRC there are a few problem locations in the build where this or similar caused problems. I think this relates to some hierarchies being built with custom env - which makes it hard for src.sys.obj.mk to always get things right. I think the change below or close to it has been committed and reverted in the past. > = > # git -C /usr/main-src/ diff share/ > diff --git a/share/mk/src.sys.obj.mk b/share/mk/src.sys.obj.mk > index 708559edcdb8..e710ae057fc6 100644 > --- a/share/mk/src.sys.obj.mk > +++ b/share/mk/src.sys.obj.mk > @@ -66,6 +66,9 @@ SB_OBJROOT?=3D ${SB}/obj/ > OBJROOT?=3D ${SB_OBJROOT} > .endif > OBJROOT?=3D ${_default_makeobjdirprefix}${SRCTOP}/ > +# save the value before we mess with it > +_OBJROOT:=3D ${OBJROOT:tA} > +.export _OBJROOT > .if ${OBJROOT:M*/} !=3D "" > OBJROOT:=3D ${OBJROOT:H:tA}/ > .else > = > where I had to use _OBJROOT to have 2 appropriate paths > built. (See later below.) > = > It is still not part of the official share/mk/src.sys.obj.mk > so I normally avoid referencing it or what would involve > its use. But I've not checked if it has been added via some > other place providing the definition. > = > Used via: > = > # grep -r "\<_OBJROOT\>" ~/src.configs/ > /root/src.configs/make.conf:# _OBJROOT is an addition to share/mk/src.sy= s.obj.mk > /root/src.configs/make.conf:# +_OBJROOT:=3D ${OBJROOT:tA} > /root/src.configs/make.conf:# +.export _OBJROOT > /root/src.configs/make.conf:IGNORELEGACY_NOSYMLINKPREFIX=3D ${_OBJROOT}/= ${TARGET}.${TARGET_ARCH}/tmp/legacy/usr > /root/src.configs/make.conf:IGNOREOTHER_NOSYMLINKPREFIX=3D ${_OBJROOT}/= ${TARGET}.${TARGET_ARCH}/tmp/usr/bin > = > It was associated with symbolic links begin involved. Your use of _OBJROOT looks similar to how we (Juniper) use SB_OBJROOT. We run make via a wrapper which defines SB (location of the tree) and a number of SB_* variables which can be assumed correct. It also obviates the need for make.conf Of course our build is never used to "install" anything - we just build packages which are then installed, so it is much simpler.