[openstreetmap/openstreetmap-website] Fix tests for Docker on Apple silicon (PR #6408)
Pablo Brasero
notifications at github.com
Mon Sep 22 13:56:45 UTC 2025
Fixes https://github.com/openstreetmap/openstreetmap-website/issues/6287
### Context
Currently the test suite fails when run with Docker on Apple post-Intel machines (aka Apple silicon, AArch64, ARM64). The issue is with the gem `gd2-ffij`, which hard-codes possible locations for its underlying C library. Unfortunately it doesn't allow for the path that this library uses in an AArch64 machine, and doesn't offer a configuration option that would serve our use case.
### Description
This PR implements a proposal by @firefishy (https://github.com/openstreetmap/openstreetmap-website/issues/6287#issuecomment-3156583006): it changes the gem dependency to use a fork that implements the required change. Since it's bound to the specific SHA of the commit, it should be safe to use.
This fix is based on an outstanding PR for the `gd2-ffij` repository, awaiting since last June. Given the low level of activity in [the `gd2-ffij` repo](https://github.com/dark-panda/gd2-ffij) (last commit September 2021), it's unlikely that it will be merged.
### How has this been tested?
I have tested this on my MacBook M1 Pro machine.
### Caveat
If the forked repo or the relevant commit are removed from GitHub, that will break our builds. A fix for this would be for OSM to host this fork instead.
Thoughts?
You can view, comment on, or merge this pull request online at:
https://github.com/openstreetmap/openstreetmap-website/pull/6408
-- Commit Summary --
* Use fork that introduces support for Docker on Apple silicon
-- File Changes --
M Gemfile (3)
M Gemfile.lock (12)
-- Patch Links --
https://github.com/openstreetmap/openstreetmap-website/pull/6408.patch
https://github.com/openstreetmap/openstreetmap-website/pull/6408.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6408
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6408 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250922/ce19456a/attachment.htm>
More information about the rails-dev
mailing list