Hello, i'm trying to setup a Github action using r-lib/actions for a package i'm developing. Config is at https://github.com/eblondel/geoflow/blob/master/.github/workflows/r-cmd-check.yml The github action tries to install the redland package and fails. This issue sounds to be related to missing librdf0-dev library installation, but if I understand well this should be managed with 'pak' at https://github.com/r-lib/actions/blob/master/setup-r-dependencies/action.yaml#L41
The error I get:
ℹ Building redland 1.0.17-14
✖ Failed to build redland 1.0.17-14
Error: Error: <callr_remote_error: Failed to build source package 'redland'>
in process 12483
-->
Failed to build source package 'redland', stdout + stderr:
OE> * installing *source* package ‘redland’ ...
OE> ** package ‘redland’ successfully unpacked and MD5 sums checked
OE> staged installation is only possible with locking
OE> ** using non-staged installation
OE> Using PKG_CFLAGS=
OE> Using PKG_LIBS=-lrdf
OE> ------------------------- ANTICONF ERROR ---------------------------
OE> Configuration failed because redland was not found. Try installing:
OE> * deb: librdf0-dev (Debian, Ubuntu, etc)
OE> * rpm: redland-devel (Fedora, EPEL)
OE> * brew: redland (OSX)
OE> If redland is already installed, check that 'pkg-config' is in your
OE> PATH and PKG_CONFIG_PATH contains a redland.pc file. If pkg-config
OE> is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
OE> R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
OE> --------------------------------------------------------------------
OE> ERROR: configuration failed for package ‘redland’
OE> * removing ‘/tmp/RtmpFlmBU6/pkg-lib30c3bf6e6e3/redland’
Stack trace:
12. (function (...) ...
13. base:::withCallingHandlers(cli_message = function(msg) { ...
14. get("pkg_install_do_plan", asNamespace("pak"))(...)
15. pkgdepends::install_package_plan(plan = plan, lib = lib, num_workers = num_ ...
16. base:::withCallingHandlers({ ...
17. pkgdepends:::handle_events(state, events)
18. pkgdepends:::handle_event(state, i)
19. pkgdepends:::stop_task(state, worker)
20. pkgdepends:::stop_task_build(state, worker)
21. base:::throw(new_pkg_build_error("Failed to build source package {pkg}", ...
22. base:::signalCondition(cond)
23. (function (e) ...
24. base:::stop(e)
25. (function (e) ...
x Failed to build source package 'redland'
Could it be related to missing info in redland package DESCRIPTION file?
I would welcome any help on this issue that prevents to set-up integration tests for this package,
Many thanks in advance,
Emmanuel