Skip to content

Run the compilation in a container #37

Description

@Edouard-chin

Right now the compilation is done directly in the host. To compile gems on Linux this is problematic because it may end up compiling binaries that are incompatible with older linux versions.

For instance, if I compile the date gem on Ubuntu 24, then it's going to be incompatible on Ubuntu 22 and below. This is because the date gem makes use of strlcpy which is a new function added in glibc 2.38 (previously the function came from Ruby and exposed it conditionally using HAVE_STRLCPY).
If we run the compilation in a container we control the environment we are in and will be less prone to issues like this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions