r-hub / rhub

R-hub API client
https://r-hub.github.io/rhub/
Other
353 stars 51 forks source link

Missing dependency on Fedora 38 jobs #633

Closed albersonmiranda closed 1 month ago

albersonmiranda commented 1 month ago

Hello there! 👋🏽

CRAN requests that Rust dependencies are vendored instead of downloaded at compilation time:

In most cases all the Rust software can be bundled into the package via cargo vendor. (Thanks to Hiroaki Yutani for providing an example of doing that in his string2path package, version 0.1.5 at the time of writing.) Please tar the included Rust sources using xz compression. If the bundle is too large to be included in the package sources, it could be hosted at a long-term secure site under the maintainer’s control.

But xz package is missing on Fedora 38 jobs (gcc13, intel, mkl, nosuggests, and valgrind) which is required in order to extract .tar.xz.

gaborcsardi commented 1 month ago

You need to include xz in SystemRequirements if you need it.

albersonmiranda commented 1 month ago

Thanks @gaborcsardi , that fixed it. Now I'm having

Error in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/github/home/R/x86_64-pc-linux-gnu-library/4.5/writexl/libs/writexl.so': libsvml.so: cannot open shared object file: No such file or directory

due to writexl dependency. Should I also add system libs required for my dependencies? Or maybe it's related to #616 ?

gaborcsardi commented 1 month ago

I don't know, can you link to a failing build?

albersonmiranda commented 1 month ago

Here it is: https://github.com/albersonmiranda/fio/actions/runs/10340447092

gaborcsardi commented 1 month ago

writexl is built in the container, so this is possibly because the cache has a version that does not work any more. Try deleting the cache.

albersonmiranda commented 1 month ago

writexl is built in the container, so this is possibly because the cache has a version that does not work any more. Try deleting the cache.

🎯! Thank you very much!

For others that may find this issue, a quick way to delete all repository cache is through Github CLI: gh cache delete --all.