tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: rust support for base system rust



Am 26.10.22 um 19:28 schrieb Greg Troxel:

(People continue to struggle with rust and I expect that to continue.
That's just background.)

Right now pkgsrc can build and use RUST_TYPE=src or bin.   There's no
way to say "use the rustc that is in /usr/bin from the OS", which is
different from just about everything else in pkgsrc, and feels like a
bug.

So it seems intuitively obvious that rust should have a builtin.mk that
checks for rustc and if it is good enough (exists, high enough version
vs RUST_REQD, not known to be broken), and uses it.

Furthermore, it would also be great if we could use the already installed rust instead of downloading the bootstrap binaries if it is new enough. E.g. I cross-built my own Rust for ARM64 since I do not consider the provided binaries trustworthy given how they are built, but if I rebuild Rust from source, it would download those same binaries I want to avoid again, so the only way for me to update Rust is to cross-build it every time right now.

--
Jonathan


Home | Main Index | Thread Index | Old Index