Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PA-4867) Build ruby on Solaris 11 SPARC #706

Merged
merged 2 commits into from
Aug 3, 2023

Commits on Aug 1, 2023

  1. (PA-4867) Build ruby on Solaris 11 SPARC

    I couldn't find a way to to make solaris-11-sparc platform definition take into
    account the project, because of the way vanagon creates the Platform and then
    later the Project. So create a new solaris-113-sparc platform definition for
    native Solaris compiles.
    
    Since the name of the file contains 113, vanagon assumes that's the
    `os_version`. Setting the os_version from within the platform definition doesn't
    seem to work, so I had to specialy case some logic to check for the
    platform.name.
    
    Although we're native compiling on SPARC, we have to explicitly set
    `--with-baseruby=no` so that ruby's configure script does not attempt to use the
    ancient ruby already installed. Instead build miniruby and have the build use
    that. We should probably be setting `--with-baseruby=no` always, except in cases
    where we're cross compiling to avoid this same problem on other platforms.
    
    Similarly, ruby's configure script will attempt to enable `dtrace` because the
    executable is present. Explicitly disable it.
    joshcooper committed Aug 1, 2023
    Configuration menu
    Copy the full SHA
    849029c View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2023

  1. (PA-4867) Only override rbconfig when cross compiling

    The ruby-augeas gem's native extensions didn't work, because we were overriding
    rbconfig when native compiling. It is only necessary to do that when cross
    compiling, because the host ruby running on Solaris Intel needs to override CC,
    etc configuration when installing gems with native extensions.
    
    The ruby-shadow gem did work on SPARC, but it was relying on the rbconfig
    overrides to find gcc. Instead add pl-build-tools to the PATH and only override
    rbconfig when cross compiling.
    joshcooper committed Aug 2, 2023
    Configuration menu
    Copy the full SHA
    0968bde View commit details
    Browse the repository at this point in the history