Hello All!
I've been working, for quite some time now, on a custom release of OpenWRT for a board based on Mips MT7628 processor. I already use BuildRoot for other
embedded projects, so the transition to OpenWRT build environment was not a problem.
Recently, trying to build my image, I got the following error:
downloading https://ci-artifacts.rust-lang.org/rustc-builds/eeb90cda1969383f56a2637cbd3037bdf598841c/rust-dev-1.81.0-x86_64-unknown-linux-gnu.tar.xz
curl: (22) The requested URL returned error: 404
ERROR: failed to download llvm from ci
HELP: There could be two reasons behind this:
1) The host triple is not supported for `download-ci-llvm`.
2) Old builds get deleted after a certain time.
HELP: In either case, disable `download-ci-llvm` in your config.toml:
[llvm]
download-ci-llvm = false
Build completed unsuccessfully in 0:00:49
Reading rust's documents and forum, I understood that from times to times
old builds of the llvm package get deleted. The error message also explains that and even suggests to disable the download of the llvm, forcing it to be built locally.
I have a few options on hand...
1 - change feeds/packages/lang/rust/Makefile and set llvm.download-ci-llvm to false, forcing llvm to be built locally and keep rust in version 1.81.0; or
2 - change feeds/packages/lang/rust/Makefile and set PKG_VERSION to 1.82.0 making sure to also provide a new PKG_HASH, so use a more recent version of rust with the llvm downloaded from a more recent build; or
3 - wait for the rust version get updated in the openwrt-23.05 branch.
Which is the normal or "right" way here, if I want to update Rust's version?
I change rust Makefile, commit the changes to OpenWRT and create a new Pull Request?
If so, how can I provide tests to guarantee that an updated rust version won't break anything else? Should I provide these tests?
I can automate the build process, using custom Makefiles, that can change OpenWRT files locally. Is this a common thing? Can it be done this way or should I avoid doing so?
Any suggestions and instructions are appreciated...
Regards.
C-Scherma.