News for hackers. Stuff that matters.
Re:Rustaceans at the border by scoutt on Friday April 15, 2022 @04:41AM (#31037861)
Building the kernel shouldn't require an internet connection.
Re:Rustaceans at the border by sanderjd on Friday April 15, 2022 @10:49AM (#31040873)
Why 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.

Re:Rustaceans at the border by mst on Friday April 15, 2022 @01:53PM (#31043357)
The 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.
Re:Rustaceans at the border by sanderjd on Friday April 15, 2022 @02:10PM (#31043588)
It 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!

Re:Rustaceans at the border by kibwen on Friday April 15, 2022 @08:03AM (#31039199)
Building Rust code, and even using Cargo, doesn't require an internet connection.
Re:Rustaceans at the border by jvanderbot on Friday April 15, 2022 @09:57AM (#31040300)
ah, 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.

Re:Rustaceans at the border by KptMarchewa on Friday April 15, 2022 @11:12AM (#31041117)
Re:Rustaceans at the border by miloignis on Friday April 15, 2022 @11:04AM (#31041039)
It 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).
Re:Rustaceans at the border by estebank on Friday April 15, 2022 @01:15PM (#31042798)
Re:Rustaceans at the border by jvanderbot on Friday April 15, 2022 @04:10PM (#31045192)
OK, 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!

Re:Rustaceans at the border by treekogreen on Friday April 15, 2022 @05:14AM (#31038046)
Bit of a weak argument as you require and internet conneciton to pull the source.
Re:Rustaceans at the border by jcelerier on Friday April 15, 2022 @05:36AM (#31038179)
I 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
Re:Rustaceans at the border by dunefox on Friday April 15, 2022 @12:06PM (#31041815)
> I 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

This has to be one of the most insane threads I've read in a while.

Re:Rustaceans at the border by orf on Friday April 15, 2022 @07:30AM (#31038965)
In all likelihood, no you couldn’t. Because nobody buys those anymore.
Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @07:48AM (#31039100)
Funny, here in Europe there are plenty of those on sale, so apparently people do still buy them.
Re:Rustaceans at the border by poulpy123 on Friday April 15, 2022 @08:17AM (#31039324)
Not in my European country at least. I haven't see a magazine with CD-ROM in years. And most people don't have a cd-dom reader anymore
Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @09:06AM (#31039756)
Re:Rustaceans at the border by orf on Friday April 15, 2022 @10:48AM (#31040864)
The argument isn’t that they don’t exist or are not published, it’s that they are not published widely.

Given that the circulation for Linuxformat was just 19,000 in 2014, it seems that that number backs up the position that you wouldn’t find this at a street level vendor.

Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @10:51AM (#31040902)
I would call most shopping mall surfaces and train station newstands, street level.
Re:Rustaceans at the border by orf on Friday April 15, 2022 @11:44AM (#31041516)
And what do you suppose is the ratio between train stations + shopping malls vs actual street level tobacco and magazine stands/shops is in most European countries? 1 to 700? 1 to 1000?

Any way, the whole argument is redundant. Go head to your nearest newsagent and see if they stock it. If you live on top of a train station or a supermarket then you’re due both congratulations and commiserations.

For everyone else… you can’t buy them at your nearest kiosk.

Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @03:02PM (#31044301)
Plenty of people can buy them, even at my tiny town back home, that is a little more than "everyone else".
Re:Rustaceans at the border by orf on Friday April 15, 2022 @03:04PM (#31044331)
That wasn’t my point at all. They are specialist magazines stocked my particular places.

Because it’s not 2007, no matter how hard you wish it to be.

Re:Rustaceans at the border by orf on Friday April 15, 2022 @07:52AM (#31039129)
Street 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.
Re:Rustaceans at the border by jcelerier on Friday April 15, 2022 @08:25AM (#31039390)
I'm in france, I regularly buy one of those when I take the train lol.

We have quite a bit of choice and they all have recent-ish issues: https://www.journaux.fr/linux_informatique_1_0_130.html and you can find at least a couple of them in most kiosks ; at least Linux Identity always comes with a physical disk

Re:Rustaceans at the border by dboreham on Friday April 15, 2022 @10:32AM (#31040699)
After using your time machine to go back to 2010.
Re:Rustaceans at the border by jcelerier on Friday April 15, 2022 @12:18PM (#31041984)
Just went to the first one I could find and there are 4 different Linux magazines lol, here's a pic: https://ibb.co/djscJ94
Re:Rustaceans at the border by conradludgate on Friday April 15, 2022 @07:17AM (#31038866)
If that's the case, you can do this with cargo vendor, as many other threads have mentioned
Re:Rustaceans at the border by dageshi on Friday April 15, 2022 @05:47AM (#31038264)
Do paper linux magazines actually exist any more?

10-15 years ago I'd agree with you, now... that would actually surprise me.

Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @07:49AM (#31039106)
Re:Rustaceans at the border by baq on Friday April 15, 2022 @05:48AM (#31038270)
you have a cd reader...?
Re:Rustaceans at the border by BlueTemplar on Friday April 15, 2022 @07:42AM (#31039040)
This is not particularly relevant, as it could also be an USB stick or a SD card.

(But why wouldn't you have readers for all 3, potentially as peripherals if you don't have a desktop ?)

Re:Rustaceans at the border by dunefox on Friday April 15, 2022 @12:07PM (#31041828)
The last CD or DVD I had was over ten years ago. I just have no use for them.
Re:Rustaceans at the border by BlueTemplar on Friday April 15, 2022 @04:05PM (#31045131)
And you don't have any friends & family that regularly come for help ?

When I built my current PC, I didn't bother with a 3.5" floppy drive, but I still had to get an USB one a couple of years ago when an acquaintance showed up needing to read some files from them...

Re:Rustaceans at the border by dunefox on Friday April 15, 2022 @04:29PM (#31045444)
I do but they don't use them either.
Re:Rustaceans at the border by IYasha on Friday April 15, 2022 @06:34AM (#31038575)
...and you don't? I can lend you mine :3
Re:Rustaceans at the border by shp0ngle on Friday April 15, 2022 @06:49AM (#31038659)
I am not sure if you are even serious
Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @07:50AM (#31039110)
Re:Rustaceans at the border by goodpoint on Friday April 15, 2022 @05:55AM (#31038320)
Not at all. Pulling sources, reviewing and vetting them and finally building are completely different steps.

Linux package maintainers do the vetting. Buildbots build in a clean room environment, without Internet access.

If you mix up the steps supply chain security is gone.

Re:Rustaceans at the border by easytiger on Friday April 15, 2022 @05:54AM (#31038313)
In certain environments i have extensively worked in, the machines on which one builds are only allowed internet access on an ip:port basis after months long process involving dozens of people in multiple teams.

Working offline is needed

Re:Rustaceans at the border by berkut on Friday April 15, 2022 @05:45AM (#31038251)
And you can then stick that on a network drive or scp it on internal airgapped networks without direct internet access.
Re:Rustaceans at the border by varajelle on Friday April 15, 2022 @06:28AM (#31038543)
And you can do the same with the Rust dependencies (with cargo-vendor for example) Cargo has even an --offline flag.
Re:Rustaceans at the border by pjmlp on Friday April 15, 2022 @05:38AM (#31038193)
A DVD on a Linux magazine will do.
Re:Rustaceans at the border by IYasha on Friday April 15, 2022 @06:28AM (#31038547)
Many people download once, use constantly and on many machines. My dev PC was never online since it was put together, all patching and updating was performed offline. All builds were bit-to-bit reproducible.
Re:Rustaceans at the border by quickthrower2 on Friday April 15, 2022 @05:30AM (#31038146)
Says who? (inserts CDROM…)
Re:Rustaceans at the border by bitcharmer on Friday April 15, 2022 @06:45AM (#31038637)
It's possible to vendor all deps and have them embedded in the kernel source package.