V8 headers and so files from NodeJS
Hi, Some important R packages (most notably R-rstan) that we are trying to build depend on the V8 package for R: https://cran.r-project.org/web/packages/V8/index.html On the Fedora world, the R-V8 package depends on v8-devel, which is provided by the NodeJS package: https://src.fedoraproject.org/rpms/nodejs/blob/rawhide/f/nodejs.spec The v8-devel subpackage provides the headers (v8*.h), the "libplatform" module (needed by our package) and the so files (libv8*.so). Note that there is also a patch regarding the V8 headers: https://src.fedoraproject.org/rpms/nodejs/blob/rawhide/f/0003-Revert-build-i... On openSUSE, the nodejs-devel, only provides the v8 headers (v8.h and v8config.h), making it impossible to build the R-V8 package (and thus our target packages). Now, I'm a crappy packager and know nothing about NodeJS packaging, but would it be possible for the nodejs package to either include those files in nodejs-devel or build a sub-package like v8-devel in Fedora? Thank you all in advance for your help! Pierre
On Mon, Jul 12, 2021 at 11:37:52AM +0200, Pierre de Villemereuil wrote:
On openSUSE, the nodejs-devel, only provides the v8 headers (v8.h and v8config.h), making it impossible to build the R-V8 package (and thus our target packages).
Now, I'm a crappy packager and know nothing about NodeJS packaging, but would it be possible for the nodejs package to either include those files in nodejs-devel or build a sub-package like v8-devel in Fedora?
Yes, I've added this to a bug tracking this. bsc#1174792 The only difference is that we link nodejs statically with v8. The libraries that you would then get for linking would also be static. Would this suffice for your needs? - Adam
Hi, Thank you for your help. Yes, I believe this would do fine, as the R package has an option to download a static library from there: http://jeroen.github.io/V8/v8-8.3.110.13-linux.tar.gz (which provides, among other things, "libv8_monolith.a") Cheers, Pierre Le mercredi 21 juillet 2021, 22:11:17 CEST Adam Majer a écrit :
On Mon, Jul 12, 2021 at 11:37:52AM +0200, Pierre de Villemereuil wrote:
On openSUSE, the nodejs-devel, only provides the v8 headers (v8.h and v8config.h), making it impossible to build the R-V8 package (and thus our target packages).
Now, I'm a crappy packager and know nothing about NodeJS packaging, but would it be possible for the nodejs package to either include those files in nodejs-devel or build a sub-package like v8-devel in Fedora?
Yes, I've added this to a bug tracking this. bsc#1174792
The only difference is that we link nodejs statically with v8. The libraries that you would then get for linking would also be static. Would this suffice for your needs?
- Adam
participants (2)
-
Adam Majer
-
Pierre de Villemereuil