From nobody Mon Oct 30 10:33:45 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 4SJqPf0hkkz4xkS0 for ; Mon, 30 Oct 2023 10:33:58 +0000 (UTC) (envelope-from mirror176@hotmail.com) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04olkn2054.outbound.protection.outlook.com [40.92.46.54]) (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 4SJqPc6QLrz4SYV for ; Mon, 30 Oct 2023 10:33:56 +0000 (UTC) (envelope-from mirror176@hotmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=Ju6AzHdJ; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (mx1.freebsd.org: domain of mirror176@hotmail.com designates 40.92.46.54 as permitted sender) smtp.mailfrom=mirror176@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=mM9SnVn2Bphfb9WBTtc/LlpRE7mSkagpBaCOW6SN64ia9ThhYxZaVAuEUqVatWilW8xbfWSH3pQvg4SewU5RaxXbEaPfjtMnbbJFZSfZXTThl2w/Fia04pm7aqVQVI8TEYS0txmxcaID/MATqi6NzeK9IUcJOaIDZIfLattuIg3rTGCQWsZKrwI4EcC7ELBG914sxouT41gidYkJEVGr7clSsKFuwlpx6xwoR9LHNhvSR6pdVfunYl+vGqxxDHo9qLf9BB/id97Z/V/j6NoqTm0WoHl03ilAQE1bruIBi9yAW39C4TyrXWxKmy8ZvrRaibWk2O7i+3oDiVEASjZlTQ== 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=AtzOrfYGYii+594BE0mo/cTOiZnfdylaVCvdaLP41jo=; b=gLmNKbnj966nTqgEjHlxTrLcDrn5FYBCFcIXdNj2RepBU05UQChOX+H77rutdQVO0jZpx1RgDpcf2xI+6wltZUj/CsANwe7IKn0MUPXxlxkUrxAYKCJtTFMJcgIPIqeJ9xzFsJR8uOk4i3SFntI/Oe6DCGgd1aSz2ySC9B3fvi09OnA7e44i1gABAk7DKGPeEher9xRmhCuudyOQgnsk2A2gV/XPIqUl8skSZbyx0eGhmMaFZ4FAA5oSE6XdRzby+d4/f2SYWp1+qjpMCplKCs55s5eyjUrdX/j4NZjwiUedU0FgMcTmY2y1mwnQWkMHtVxMuDkmQaKNoomG444yrA== 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=AtzOrfYGYii+594BE0mo/cTOiZnfdylaVCvdaLP41jo=; b=Ju6AzHdJFU46rFT3QGaROVZ3gFT184RByYk0TOztHIQIQcO5oZmoC1nxUwXEoYGu7wGe4QWsA/y9Remm+bC932jgQ+f/tHplJy4rpaohl/FHjzOtQToyjIBfbJoF8ungCZ+N5FlUwJVwaDLzEihk9otGbzj1nOp9JIKAPR1iHlXR+kkMjIxvULWFFm8Brq9KHwncbM7x1AFj2qqVNBumrg8fDjaNRiKLfHfjo5jVMTf7AJpMDdzMOz9zoAJyl5Ydze6OW7W2Zxl6hbWFfx4KOU8CS3j28KfM2FB/dkm/Y8PbXmSpXetGZzqLy1VJiXuzScAPSoKzfMyit70zCTIzuw== Received: from CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) by DM4PR11MB8157.namprd11.prod.outlook.com (2603:10b6:8:187::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.26; Mon, 30 Oct 2023 10:33:49 +0000 Received: from CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::a344:ee9f:be69:1aa3]) by CO1PR11MB4770.namprd11.prod.outlook.com ([fe80::a344:ee9f:be69:1aa3%7]) with mapi id 15.20.6933.019; Mon, 30 Oct 2023 10:33:49 +0000 Message-ID: Date: Mon, 30 Oct 2023 03:33:45 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: We need to do something about build times Content-Language: en-US To: ports@freebsd.org References: From: "Edward Sanford Sutton, III" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [gQeZObZ4f357C49AxMdo+oUKBjyNyHf8] X-ClientProxiedBy: MN2PR15CA0004.namprd15.prod.outlook.com (2603:10b6:208:1b4::17) To CO1PR11MB4770.namprd11.prod.outlook.com (2603:10b6:303:94::19) X-Microsoft-Original-Message-ID: <67f10687-3b97-5e31-aadb-67a373a5ab95@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: CO1PR11MB4770:EE_|DM4PR11MB8157:EE_ X-MS-Office365-Filtering-Correlation-Id: d61618da-fe56-45a5-ea2e-08dbd933b3df X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uIomrSPOi5tE6+H7sTsT5tRVCWcyMcQqRQsTpXRmGXE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lnRXQ0eG9KaXc3?= =?utf-8?B?czJnZE9MekRFbmhHcmhYM1VUbUNBUEZQdVIvbDAxVlFISmRSZ2pSWk5sTWt2?= =?utf-8?B?aExDREk3dG9TY2Y4STBUVmlHL3dralBJOW1lMlh1cVY1R1J5Z0QrTTR3Rlds?= =?utf-8?B?Z3cxNHVYRjVoblJZcWt0L3lURitqTjBuaTUvMmNFaUcwUU1FVk5Mc29EYStY?= =?utf-8?B?ZzltNFc2eGNISkRzWWtNaHpPQUptRS9HbnNhSyt5TWF2aHgvNWlMMEEyTnF3?= =?utf-8?B?eGgvUm84OFk1QlNpYkNya21DenE1dEJrNEhhOUIzMHY0TlhRaCtlVTRYeHdG?= =?utf-8?B?alFVZFAwSUlKS0VjQW1Da0ZNTkNsaDRQeElXTTBzSThDVW0rRkpnSHg0dG1K?= =?utf-8?Q?CP83aKuNLct7rnTlirbKKdqRiuBFEi/QdALy5cY/hDx4=3D?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-e8f36.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: d61618da-fe56-45a5-ea2e-08dbd933b3df X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4770.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2023 10:33:49.2426 (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: DM4PR11MB8157 X-Spamd-Result: default: False [-1.67 / 15.00]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/16]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; NEURAL_HAM_SHORT(-0.17)[-0.170]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[ports@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; RCVD_IN_DNSWL_NONE(0.00)[40.92.46.54:from]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_NONE(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[40.92.46.54:from]; DKIM_TRACE(0.00)[hotmail.com:+]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[hotmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4SJqPc6QLrz4SYV X-Spamd-Bar: - On 10/29/23 21:39, Tatsuki Makino wrote: > Daniel Engberg wrote on 2023/10/28 17:48: >> If upstream uses GNU Autotools, use upstream release archives as they >> usually contains a configure script ready to run which means that you >> can avoid USES= autoreconf which is slow and adds unncessary >> dependencies. > > This has the following problem > > Apply patches to {configure.ac,Makefile.am} and run autoreconf > versus > Apply patches to {configure,Makefile.in} and run ./configure immediately > > Incidentally, some ports (e.g. security/heimdal*) do not know which it is. I agree that some ports use autoreconf out of need instead of just want. By the time a 'download release archive' step just to get files to skip autoreconf is used, the release file should be used start to finish. Some ports benefit from following nonrelease versions while some projects have not released a release version that can be used. I thought there was a way to get performance improvements by creating a config.h before the tools are ran which will skip some checks when it contains values of some of those checks. It can be handy to avoid certain redundant tests; my machine will not change between big and little endian anytime soon, nor will my FreeBSD install become Linux or OSX anytime soon. If a port depends on another port, some values will always be populated by that dependency. Trying to autopopulate such data becomes harder when considering multiple versions due to dependency choices, mixing packages from different ports tree versions, and customized tests. >> If dependencies are unbundled you can save I/O and processing time by >> not extracting. >> >> Example: >> https://cgit.freebsd.org/ports/tree/net-mgmt/netdata/Makefile#n32 > > With -X (or --exclude-from) of tar, a list of unwanted files can be made into a file. > If the file is subject to SUB_FILES, the options also allow selection of unnecessary files. > ... I have thought about this for a moment. > It was impossible because the timing when SUB_FILES is extracted is much later than when it is possible to do so. Thought there was a way but wasn't finding it in the handbook so thank you. Mk/bsd.port.mk had that and similar variables noted. Now I was able to add a string of exclusions to a port I was working on which brings its own bundled copies of many things where before I was using an {RM} in "post-extract:' section, though I guess that particular work only matters if I succeed at porting that program which I got stuck on. It would be nice if this was documented in the porter's handbook. It could also serve additional benefit when options are changed for some ports but would become much harder to determine when appropriate if not familiar with the whole program + its build system. An overlooked area of easy possible gain would be not extracting documents when DOC (minor benefit) and NLS (major benefit for some) options are not enabled. Any idea if extraction speed is increased if skipping content? I know 7-zip in Windows skips blocks of archives entirely when there is no requested data remaining in each block.