How to specify system requirements for r-universe builds #519
-
|
Currently, I'm working on a package that uses static libraries: https://github.com/pepijn-devries/openmpt Therefore, it has system requirements ensuring that the libraries are available on the machine it runs on. I've included the requirements here: https://github.com/rstudio/r-system-requirements This will ensure that the rhub workflow on github will succefully build the package on Linux machines. However, when setting the package up for r-universe, the build fails (https://pepijn-devries.r-universe.dev/builds). This is because the system requirements are not installed. Does anyone have know how to set this up correctly? Many thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 17 replies
-
|
It is explained here: https://docs.r-universe.dev/publish/debug-build.html#how-to-request-additional-third-party-system-requirements If it is in r-system-requirements it should work. I'll have a look. |
Beta Was this translation helpful? Give feedback.
-
|
Hmm if I run |
Beta Was this translation helpful? Give feedback.
-
|
It should work now, I switched the system dependency resolver to pak: r-universe-org/build-source@1554177 However this is still tentative because we had some troubles in the past with |
Beta Was this translation helpful? Give feedback.
-
|
Ugh we may have to revert, |
Beta Was this translation helpful? Give feedback.
-
|
Trying this workaround r-universe-org/build-source@d2a1418 |
Beta Was this translation helpful? Give feedback.
-
|
I think I am also experiencing a related issue. I have my package anvil (https://github.com/r-xla/anvil) which depends on (https://github.com/r-xla/pjrt), which has system dependencies. In my github action CI, I also specify my r-universe as an extra-repository: https://github.com/r-xla/anvil/blob/579f42a6d78d19e4b3f4459ac158070762225dff/.github/workflows/R-CMD-check.yaml#L74, but for some reason, the github action workflow on ubuntu fails: https://github.com/r-xla/anvil/actions/runs/18902349676/job/53952342770 because the system dependency of anvil's dependence {pjrt} (libprotobuf etc.) is not installed properly. |
Beta Was this translation helpful? Give feedback.
It should work now, I switched the system dependency resolver to pak: r-universe-org/build-source@1554177
However this is still tentative because we had some troubles in the past with
pakhanging, so if that happens again we may need to find another solution.