OpenBSD + 'R' - Solving 'httpuv' issue

Hi !

In an old blog entry (“R - install packages in different ways”), I had indicated that I had encountered a bug with the installation of the “httpuv” software. In fact, by digging into the subject, it is not the software that is at fault but rather the compilation of another software that the latter uses. I am talking here about “libuv” which is necessary for “httpuv”. The simplest method I found (lazy mode) to solve this issue is to install “libuv” via an “OpenBSD” package.

$sudo pkg_add libuv

Then we resume the installation of “httpuv” (via the ‘R’ interface).

> install.packages ("httpuv"))
.
.
.
c++ -std=gnu++17 -shared -L/usr/local/lib/R/lib -L/usr/local/lib -Wl,-R/usr/local/lib/R/lib -o httpuv.so RcppExports.o callback.o callbackqueue.o filedatasource-unix.o filedatasource-win.o fs.o gzipdatasource.o http.o httprequest.o httpresponse.o httpuv.o md5.o mime.o socket.o staticpath.o thread.o timegm.o utils.o uvutil.o webapplication.o websockets-base.o websockets-hixie76.o websockets-hybi03.o websockets-ietf.o websockets.o winutils.o -L/usr/local/lib -luv ./http-parser/http_parser.o ./sha1/sha1.o ./base64/base64.o -pthread -lkvm -L/usr/local/lib/R/lib -lR
installing to /usr/local/lib/R/library/00LOCK-httpuv/00new/httpuv/libs
** R
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (httpuv)

The downloaded source packages are in
        '/tmp/RtmpgTFoZD/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

Everything is now functional.

Regards.