5 ms·
Building the kernel shouldn't require an internet connection.
by scoutt 5y ago
Building the kernel shouldn't require an internet connection.
- kibwen 5y agoBuilding Rust code, and even using Cargo, doesn't require an internet connection.
- jvanderbot 5y agoah, yes it does? 'cargo build' absolutely goes and finds dependencies, updates them, and so on. 'rustc' does not, but we are talking about cargo here.
- miloignis 5y agoIt doesn't have to, you can "cargo vendor" all your deps (I do so for some of the things I work on, regularly building and developing without an internet connection).
- KptMarchewa 5y agohttps://doc.rust-lang.org/cargo/commands/cargo-vendor.html https://doc.rust-lang.org/cargo/commands/cargo-vendor.html
- estebank 5y agohttps://doc.rust-lang.org/cargo/faq.html#how-can-cargo-work-offline https://doc.rust-lang.org/cargo/faq.html#how-can-cargo-work-...
- deleted 5y ago[deleted]
- jvanderbot 5y agoOK, I have been sufficiently reminded of a mostly-offline build process and punished for my flippant remark which I can no longer edit or delete. Thank you!
- sanderjd 5y agoWhy is this such a trope in this thread? It's such a superficial strawman. Obviously cargo can copy all the dependency sources into a project's own tree if that's the right fit for a given project, and it almost definitely would be for the kernel. There are lots of good arguments against pulling in lots of rust dependencies - it's too much code to audit, maintained by too many different upstream people and teams, lots more tooling would be needed to make sure all the dependencies are safe to use in the kernel, and on and on - but this one about an internet connection is both the most common one I've seen here and the most superficial and frankly silly.
- mst 5y agoThe article itself explicitly mentioning 'cargo vendor' (which, indeed, seems like the only logical choice for the kernel, just like they already do with zstd as also mentioned in the article) leaves me extremely confused as to why people keep jumping to assuming non-vendored crate usage.
- sanderjd 5y agoIt seems like people don't know that it's possible? But obviously it's possible to pull dependency source code into the tree... The only question is whether or not there is tooling support for it. It could only possibly be a bonus to have something like cargo that can automate that workflow, rather than being forced to do it manually. So I agree, this particular criticism is very confusing. Though as I said, that doesn't mean no criticism is warranted!
- treekogreen 5y agoBit of a weak argument as you require and internet conneciton to pull the source.
- quickthrower2 5y agoSays who? (inserts CDROM…)
- jcelerier 5y agoI can go to my nearest journal kiosk and I'm pretty confident I can find a paper Linux magazine which comes a cd with recent kernel source
- conradludgate 5y agoIf that's the case, you can do this with cargo vendor, as many other threads have mentioned
- orf 5y agoIn all likelihood, no you couldn’t. Because nobody buys those anymore.
- pjmlp 5y agoFunny, here in Europe there are plenty of those on sale, so apparently people do still buy them.
- orf 5y agoStreet level magazine kiosks sell magazines with up to date Linux kernel CD roms? That’s a lie. I’ve literally never seen that anywhere in Europe in the last decade. You might be able to find them in specialist shops or larger supermarkets, as you can in the UK, but street level kiosks? Get real.
- jcelerier 5y ago
- bitcharmer 5y agoIt's possible to vendor all deps and have them embedded in the kernel source package.