ports/databases/rubygem-pg_query/files/patch-ext_pg__query_extconf.rb
Matthias Fechner 03804b4085 databases/rubygem-pg_query: update to 4.2.1
Required for gitlab-ce 16.1
Changelog:
https://github.com/pganalyze/pg_query/blob/main/CHANGELOG.md

Upstream was a fix committed which breaks the compilation:
684aa77a21
this is undone with a patch included here.
I reported this upstream:
https://github.com/pganalyze/pg_query/issues/291
Till this is fixed, we can keep the patch that undo 684aa77a21
2023-07-06 14:32:19 +03:00

14 lines
498 B
Ruby

--- ext/pg_query/extconf.rb.orig 2023-06-25 07:15:18 UTC
+++ ext/pg_query/extconf.rb
@@ -12,11 +12,7 @@ $CFLAGS << " -fvisibility=hidden -O3 -Wall -fno-strict
$INCFLAGS = "-I#{File.join(__dir__, 'include')} " + $INCFLAGS
SYMFILE =
- if RUBY_PLATFORM =~ /freebsd/
- File.join(__dir__, 'pg_query_ruby_freebsd.sym')
- else
File.join(__dir__, 'pg_query_ruby.sym')
- end
if RUBY_PLATFORM =~ /darwin/
$DLDFLAGS << " -Wl,-exported_symbols_list #{SYMFILE}" unless defined?(::Rubinius)