Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Reintroduce using system v8 (for Alpine Linux support) #271

Closed
volkanunsal opened this issue Oct 28, 2018 · 11 comments
Closed

Reintroduce using system v8 (for Alpine Linux support) #271

volkanunsal opened this issue Oct 28, 2018 · 11 comments

Comments

@volkanunsal
Copy link

volkanunsal commented Oct 28, 2018

I'm trying to install libv8 on Alpine. As has been noted here, libv8 build doesn't support Alpine's muslc library. So I thought I could use the system library with --with-system-v8, but saw that it had been removed in an earlier version. Is there an alternative? What is the best way to install libv8 on Alpine?

@DanielRedOak
Copy link

We're interested in this as well. You could install the libv8 package via apk and get things into system ruby, but we're doing things via bundler, Gemfiles, and Gemfile.lock so this really isn't viable.

@ignisf
Copy link
Collaborator

ignisf commented Nov 19, 2018

Hello,

Could you point me to a packaged V8 for Alpine? I would like to see how they managed to build the package and explore ways to use it.

I have been thinking about reintroducing linking against a shared library for of V8, however I want to do it correctly this time by verifying version compatibility as well.

@ignisf ignisf changed the title Using system v8 for Alpine Linux Reintroduce using system v8 (for Alpine Linux support) Nov 19, 2018
@ciroque
Copy link

ciroque commented Jan 7, 2019

Is there any update on this? It has become a huge problem for us...

@ignisf
Copy link
Collaborator

ignisf commented Jan 8, 2019

@ciroque are you having issues with Alpine as well?

@Taiki-San
Copy link

Hi, we support Alpine in a product that rely on V8, so we built and made available the libv8 version we use here. I think the repo we use to build V8 is here but it might be outdated.

@TheNicholasNick
Copy link

TheNicholasNick commented Mar 10, 2019

so how do we get bundler to see libv8-alpine as libv8?

bundle complains libv8 is not installed...

EDIT: burned it down and built Debian-stretch-mini ruby dev container instead. (guess I won't be using alpine in prod for ruby apps then)

@Taiki-San
Copy link

They're different packages, a the Gemfile need to detect when it's running on Alpine and gem libv8-alpine instead of libv8. The requesting gem also need to aware of the changes in names.
The fix would be to integrate those in the main libv8 package, but I don't know how it's done in other Ruby gems.

@alyssais
Copy link

This would be useful for us in Nixpkgs as well.

@lloeki
Copy link
Contributor

lloeki commented Feb 3, 2020

Made a comment here regarding musl support and a possible partially upstream solution: #270 (comment)

@lloeki
Copy link
Contributor

lloeki commented May 7, 2021

libv8-node has Alpine support now.

@lloeki
Copy link
Contributor

lloeki commented Dec 4, 2023

Closing as musl is supported by libv8-node.

@lloeki lloeki closed this as completed Dec 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants