From nobody Wed Nov 01 04:49:11 2023 X-Original-To: ports@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 4SKvg83GGDz4yjh4 for ; Wed, 1 Nov 2023 04:49:24 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01olkn20827.outbound.protection.outlook.com [IPv6:2a01:111:f400:feae::827]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SKvg53kTsz4YN1 for ; Wed, 1 Nov 2023 04:49:21 +0000 (UTC) (envelope-from tatsuki_makino@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=kLSczD9j; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (mx1.freebsd.org: domain of tatsuki_makino@hotmail.com designates 2a01:111:f400:feae::827 as permitted sender) smtp.mailfrom=tatsuki_makino@hotmail.com; dmarc=pass (policy=none) header.from=hotmail.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U1Tx1VbnM8zKdcd545OhyOKUniegHEGGlvS8czdg5JKbjlsmmieuU9YpCLdcxC0JcIApzO9oRYySeKJLiEsjdf0WVp/XciSFWAJUhPGSZ0t1VPRj+U2r7sSZtzpdFhOY2d5dA8zsybNn/+IYUHuewAnljKqQTpAd7GNozH+WJUEGJko4cgt2ov4TGA/v0hhQC/df41/Elcwfpk0JmSnlhxn/TchpwvbicXvrSH8LLRAc1ovbR6B0aIjB7xTxNYCZJhtmfiRsOXasYwjwERVIlTitpbdUs45870oZTbevG/PDAwA9YlK4Q5XxnIiOkN5hCAbfTaUiyULSxWy501RD9A== 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=BfTw0prVj0hQGe8YSFDIiGXoiMr3pTcs4u+o0E5OVj0=; b=HR8Aqa0fgZ74yF/7/Gw3RMSQtkeBdXrwEA8eCceCB35VzyOJQRBOwQ16z6CU7W6nyIuxNwXKOYQ2AwXchFU5QZs/dkTLHPhvfdlDolFVIHYdKCT4mv+y1GEQG8wEazX7eVBLUGbUdiLCQ8ibu9BsGux6Z9Tpz5FOZhWwAMabIvu/XdQzcpiy7ExuMHILMeH3VCY4JjoN912kTzminJszBVF1CNFUxaZU+RxB7sB+6WzI0jZ0lEXwsParPPZIYM149NZiT43qP7WOa/9ES+vvnBUmzKkKsfGEr+kCIdCs3FuatgPzqE8UM/qAF6R5Kip5KBh81+AuYlHA3l/UgWgPTg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BfTw0prVj0hQGe8YSFDIiGXoiMr3pTcs4u+o0E5OVj0=; b=kLSczD9j3z8h3wgxyL96Md3Y06Qty80TeLPJNp1r6387Z2LiXVWdA13najJXiKKihwATqaZoGFOhxWQlY7BSutsfr0+6jmiVmDtCR6381E00RZ9L2+lmeluNmXTzkmdf6nSuZZeLDeiVRqFmTTrHixCbJa1WqK/jB9c/QHZ6OQAyZwoa2khJ5FsLdr5H998GKSmNDwkDG2+UyCKev1pwHzE9w1ea3LvyViHAQT8wj6/HMFMx3hTHrekjvZmI1FFi12Lynb4t7pr0qCsPLLZzpxv+lAvXHcXM4Cl4UdK8SC3b7/UoGX0NHODNOhMhc99yPdz5J9e4llxyW6AkIkuetw== Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) by PUZPR01MB5003.apcprd01.prod.exchangelabs.com (2603:1096:301:f1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.29; Wed, 1 Nov 2023 04:49:16 +0000 Received: from SI2PR01MB5036.apcprd01.prod.exchangelabs.com ([fe80::fb1a:653f:16a:b4d2]) by SI2PR01MB5036.apcprd01.prod.exchangelabs.com ([fe80::fb1a:653f:16a:b4d2%5]) with mapi id 15.20.6933.024; Wed, 1 Nov 2023 04:49:16 +0000 Subject: Re: We need to do something about build times From: Tatsuki Makino To: ports@freebsd.org References: Message-ID: Date: Wed, 1 Nov 2023 13:49:11 +0900 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-TMN: [/vYnRYhORd2oIuE2XfkNuUQqTao7pIt0] X-ClientProxiedBy: SGBP274CA0001.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::13) To SI2PR01MB5036.apcprd01.prod.exchangelabs.com (2603:1096:4:1f8::9) X-Microsoft-Original-Message-ID: <86a9ab2b-a207-4aec-89d6-f15bcf989e6d@hotmail.com> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SI2PR01MB5036:EE_|PUZPR01MB5003:EE_ X-MS-Office365-Filtering-Correlation-Id: f772e61c-5a6d-4cc1-3f1a-08dbda95e6a9 X-Microsoft-Antispam: BCL:0;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BqT2l6bXlZdlZSVjNlRUhDWHRsZFVBdFBG?= =?utf-8?B?TWVhckZ0Y0R4LzRjQmd4MU9qMGxyUUN2cm4vRTB6aHllODRPelNqZHB0cDZv?= =?utf-8?B?YnQwaEJGeC9uVFhLdi9XcmtEWTZURFlEWkpybXY1eTM5NnJ0NUNKbXp4L0ZD?= =?utf-8?B?WnFmbTVsRnpSQ0pEM1dsNE9ZWFcyRTlQYlZhK0tKK1lzOVVsdm5FdlEzUjdT?= =?utf-8?B?UDhpUzhXT3NhK0pxL3ZnZjFXakdFNHkwYnlRNDJ2WVJ4RmcxNVpvdCt2eXEw?= =?utf-8?B?RDdseDk0aG5yTUJ1WXYzSHNVS0tpZU9FOEZpeW95Zk9acThHUE9ubTZtRjlY?= =?utf-8?B?c2lWbGR1eHY1elVsQTl2alppZHhxc05jV3FuRFBSZGVlNjZsb2k0WnQwSXpl?= =?utf-8?B?cS9paUlkRzVOSUM0NmVmckxmWUlvdGxldnF1R3U0SlpnVHBpV1VhdWVFYTZO?= =?utf-8?Q?ALlLO+T9la+HVFT4cma0AnJyBx8EjpH9Wo1DLfQd9lkU=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-d8e84.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: f772e61c-5a6d-4cc1-3f1a-08dbda95e6a9 X-MS-Exchange-CrossTenant-AuthSource: SI2PR01MB5036.apcprd01.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2023 04:49:16.3869 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR01MB5003 X-Spamd-Result: default: False [-2.49 / 15.00]; FORGED_MUA_SEAMONKEY_MSGID_UNKNOWN(2.50)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f400::/48]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; FREEMAIL_FROM(0.00)[hotmail.com]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim] X-Rspamd-Queue-Id: 4SKvg53kTsz4YN1 X-Spamd-Bar: -- Sorry, I think this is getting too far off topic by now. But there is something that bothered me when using this. Tatsuki Makino wrote on 2023/10/31 18:20: > .if 1 > STAGEDIRPREFIX= ${LOCALBASE}/.stage > STAGEDIR= ${STAGEDIRPREFIX}${.CURDIR}/${_WRKDIR}/stage > _PORTS_DIRECTORIES+= ${STAGEDIRPREFIX} > _USES_fetch+= 980:..stagedirprefix > ${STAGEDIRPREFIX}/😈: .NOTMAIN .PHONY ${STAGEDIRPREFIX} > @${CHMOD} -R 1777 ${STAGEDIRPREFIX} > @${TOUCH} ${TOUCH_FLAGS} ${.TARGET:Q} > ..stagedirprefix: .NOTMAIN .PHONY ${STAGEDIRPREFIX}/😈 > .endif This changes the value of STAGEDIR, but STAGEDIR does not take into consider that outside of WRKDIR is given. Specifically, STAGEDIR is explicitly removed only when restage target is run, but that is all. If anything outside of WRKDIR is used, it will not be removed by running the clean target. The following workarounds are also needed. do-clean-stagedir: .NOTMAIN .PHONY @if [ -d ${STAGEDIR} -a -w ${STAGEDIR} ] ; then ${RM} -r ${STAGEDIR} ; fi do-clean: .NOTMAIN do-clean-stagedir However, in poudriere, this has a negligible impact. USE_TMPFS="localbase" umounts already mounted tmpfs just before mounting localbase tmpfs. This only keeps the memory in use until the builder is finished using it again, and does not cause memory leaks due to file hoarding. One more thing. The files detected by the following command uses the _USES_${target} variable by assignment rather than appending. grep -n -r -e "_USES_[a-z"\$"].*=" /usr/ports/Mk/Uses/ | grep -v -e "[?+]=" If these are used in USES, there may be unexplained malfunctions, or workarounds may have been taken in anticipation of malfunctions. Regards.