Hi!
On 6/7/25 06:50PM, Daniel Engberg wrote:
On 2025-06-07 20:03, Gleb Popov wrote:
On Sat, Jun 7, 2025 at 5:47 PM Mathieu Arnold<[email protected]> wrote:
On Sat, Jun 07, 2025 at 04:36:34PM +0300, Gleb Popov wrote:
On Sat, Jun 7, 2025 at 4:19 PM Mathieu Arnold<[email protected]> wrote:
Hi,
I am sorry but I do not understand, you are basically re-inventing `pkg
install rust`, but from within a port, it makes little sense.
It makes sense for Poudriere users that often have to recompile
lang/rust, but would like to avoid that.
Well, I'm not sure this needs to be spelled out, but, well, people who
decide to build their own ports have to, well, build their own ports.
If they don't want to build their own ports, they should be using the
packages we provide, or at least use the poudriere option that will
fetch the packages instead of building them.
What about people that contribute to ports and run poudriere testport
on their little port and then having to wait an hour for rust to
compile?
Even if we're talking about regular users that build their own repos -
there might be various reasons why they are doing that. For instance,
someone might just want to enable some non-default options for some
ports. Why should this require building rust?
Poudriere supports fetching of binary packages to my knowledge and to
be honest I do see more issues with this approach than what it solves.
There are many ways we can save time on compilation in the tree but
this is likely one of the less ideal ones.
Do people really recompile rust that often?
Sure. Any time there's a rust port update. I think there's been two in
the last 6-7 days or so (including today?) On lower-core, slower, or
non-threaded systems, sometimes lang/rust can take 6-8 hours. If rust
gets three updates a month (it's usually more than that, I believe,)
that's 18-24 hours of compile time for one port alone.
Not to get off-topic, but there are other ports that also get fairly
frequent updates that take a long time to build (such as www/node[1-2]+)
which could maybe use a trimming/flavor/pourdriere bump/whatever to help
with compile times or binary package changes as well.
Regards,
Janky Jay, III