From nobody Wed Dec 14 10:20:50 2022 X-Original-To: freebsd-questions@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 4NXBGG47Rlz4kGXL; Wed, 14 Dec 2022 10:20:54 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from echo.brtsvcs.net (echo.brtsvcs.net [208.111.40.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NXBGG1sGDz42ZZ; Wed, 14 Dec 2022 10:20:54 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Authentication-Results: mx1.freebsd.org; none Received: from chombo.houseloki.net (65-100-43-2.dia.static.qwest.net [65.100.43.2]) by echo.brtsvcs.net (Postfix) with ESMTPS id B459038D0C; Wed, 14 Dec 2022 10:20:51 +0000 (UTC) Received: from [10.26.25.100] (ivy.pas.ds.pilgrimaccounting.com [10.26.25.100]) by chombo.houseloki.net (Postfix) with ESMTPSA id 5241226BE1; Wed, 14 Dec 2022 02:20:51 -0800 (PST) Subject: Re: lang/rust is super slow to build To: Xin LI Cc: Pat Maddox , User Questions , freebsd-ports@freebsd.org References: From: Mel Pilgrim Message-ID: <278753d9-6c6f-9684-e1bb-0a4f8e2160df@bluerosetech.com> Date: Wed, 14 Dec 2022 02:20:50 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4NXBGG1sGDz42ZZ X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:208.111.40.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 2022-12-13 14:18, Xin LI wrote: > IMHO the ports collection should provide and use prebuilt packages of > compilers (LLVM, GCC, Rust, etc.) built from the FreeBSD packages > builder, and ports framework (possibly also the base system) should be > changed to use prebuilt packages by default, unless a) user requested to > build everything from source, or b) no binary package is available for > the platform combination, like a Tier-2 platform.  The source ports for > compilers should have all optimizations (like PGO, LTO, etc.) enabled by > default, and require reasonably modern (perhaps newer than Sandy Bridge) > processor features by default. It has this ability. If you set PACKAGE_FETCH_BLACKLIST, it will never download pkgs for the pkgname globs listed. If you set PACKAGE_FETCH_WHITELIST, it will download pkgs for only those pkgname globs listed. The suggested value in poudriere.conf is even "gcc* rust llvm*".