Own-and-Ship / oas_agent

The Own & Ship Ruby agent
2 stars 0 forks source link

Make Ruby 2.4.10 work #11

Closed wjessop closed 1 year ago

wjessop commented 1 year ago

This Ruby version doesn't work locally. To re-create:

docker build . --build-arg RUBY_VERSION=2.4.10 

I think the error is something to do with uname -P returning unknown in the 2.4.10 image and that preventing the nokogiri build from completing, from /usr/local/bundle/gems/nokogiri-1.6.6.4/ext/nokogiri/tmp/aarch64-unknown-linux-gnu/ports/libxslt/1.1.28/configure.log:

configure: WARNING: if you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used
checking build system type... ./config.guess: unable to guess system type

This script, last modified 2007-05-17, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
and
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub

If the version you run (./config.guess) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@gnu.org> in order to provide the needed
information to handle your system.

config.guess timestamp = 2007-05-17

uname -m = aarch64
uname -r = 6.4.16-linuxkit
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Oct 25 16:32:24 UTC 2023

/usr/bin/uname -p = 
/bin/uname -X     = 

hostinfo               = 
/bin/universe          = 
/usr/bin/arch -k       = 
/bin/arch              = 
/usr/bin/oslevel       = 
/usr/convex/getsysinfo = 

UNAME_MACHINE = aarch64
UNAME_RELEASE = 6.4.16-linuxkit
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP PREEMPT Wed Oct 25 16:32:24 UTC 2023
configure: error: cannot guess build type; you must specify one