Skip to content

Help building the Ruby libv8 gem for the Alpine linux distribution.

Notifications You must be signed in to change notification settings

cyrusbond/alpine-ruby-libv8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby libv8 gem for Alpine

TL;DR

This repository contains scripts to build and publish an Alpine compatible version of libv8.

The Alpine Linux distribution relies on the musl libc instead of the traditional GNU C Library (glibc). Many binary packages need to be rebuilt with musl in order to work on Alpine.

libv8 distribution

The libv8 gem is a binary build of V8. At each release, the gem is published with 2 versions:

  • the source gem: odd version number (e.g. 6.3.292.48.1)
  • the compiled gem: even version number (e.g. 6.3.292.48.0)

In Ruby, the binary gems are bundled per OS. Distinguishing variant builds such as musl or glibc is not possible. It means the default binary version of libv8 does not work on Alpine Linux.

Building for Alpine

When installing libv8 on some versions of Alpine, Ruby will fetch automatically the latest version of libv8. This version is the compiled version for the glibc.

This repository forces the installation & compilation of the source version and bundles it into a native Linux musl gem.

This gem can be downloaded from here.

Made with ❤️ by Sqreen

About

Help building the Ruby libv8 gem for the Alpine linux distribution.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published