Verified Commit c7085888 authored by Vitaly Slobodin's avatar Vitaly Slobodin 🔮
Browse files

Update gemspec to require pg_query >= v6.1

Bump the minimum required version of pg_query dependency from 5.1.0
to 6.1.0 to resolve compatibility issues with macOS sonoma.

Building the native extension of the `pg_query` gem is broken
on macOS 15.4 and later due to changes introduced in macOS Sonoma.

The underlying issue is fixed in the dependent library, `libpg_query`,\
which addresses `strchrnul` detection on macOS 15.4:

>After upgrading the host to macOS Sequoia 15.4, builds broke due to
`strchrnul` now being available in libc but gated by <string.h> and
deployment target constraints.

See also:

- https://github.com/pganalyze/pg_query/issues/327
- https://github.com/pganalyze/libpg_query/issues/276
parent 40c7fdf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
  spec.add_runtime_dependency "google-protobuf", "~> 3" # Keep the major version to 3 until we update the `grpc` gem
  spec.add_runtime_dependency "jaeger-client", "~> 1.1.0"
  spec.add_runtime_dependency "opentracing", "~> 0.4"
  spec.add_runtime_dependency "pg_query", ">= 5.1.0", "< 7.0"
  spec.add_runtime_dependency "pg_query", ">= 6.1.0", "< 7.0"
  spec.add_runtime_dependency "redis", "> 3.0.0", "< 6.0.0"

  # Please maintain alphabetical order for dev dependencies