Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Jan 2026 02:26:15 +0000
From:      ruby R53 <red_M95@proton.me>
To:        freebsd-current@freebsd.org
Subject:   Change fetch addresses for Rust crates, Python packages and whatnot?
Message-ID:  <DRM-6bM0Q-ebeu_NeL6Ju4ZXLScQGlf_3hNxqhtw6e2kA8gwAV36SGgPD08G2H0H-xeChQPYAs6HRGeey6DaoD77gxqCCd_YFR81YgIfETk=@proton.me>

index | next in thread | raw e-mail

I've been trying to compile www/chromium for literal days now, all because whenever `make` runs `fetch`, it goes to an address that's actually supposed to redirect to another one, but `fetch` instead keeps trying for a whole minute until it ultimately falls back to distcache.freebsd.org, which is another whole minute of waiting for the file to download. The cherry on top is that the file is, most of the time, just hundreds of kilobytes in size.

Hell, I even had to manually download part of these individual files using that Links web browser··· it'd do it a lot faster than `fetch`, all because it actually followed the redirection and didn't just keep trying over and over. But of course I wouldn't manually download hundreds upon hundreds of archive files, this is the reason why such tool exists.

So here's an example: currently one of the missing dependencies for www/chromium is GTK3, which depends on graphics/librsvg2-rust, which then depends on cargo-c. It's now trying to fetch dunce-1.0.5.crate, which is one of the crates required for it, from https://crates.io/api/v1/crates/dunce/1.0.5/download?dummy=/rust/crates/dunce-1.0.5.crate. Running `curl` on this link does literally nothing, no files are downloaded. But running it on any web browser instantly downloads the crate in question, all because that link actually redirects to https://static.crates.io/crates/dunce/dunce-1.0.5.crate. Even `curl`ing that new link does give the file I want. Same applies for Python packages.

Now imagine this for all the remaining files··· if it takes about 2 minutes to download a single file, and there's 398 crate entries on cargo-c's `Makefile.crates`, that means it'd take a whole 796 minutes to download everything, which is literally more than half a day (~13.6 hours) :)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DRM-6bM0Q-ebeu_NeL6Ju4ZXLScQGlf_3hNxqhtw6e2kA8gwAV36SGgPD08G2H0H-xeChQPYAs6HRGeey6DaoD77gxqCCd_YFR81YgIfETk=>