View | Details | Raw Unified | Return to bug 256741
Collapse All | Expand All

(-)databases/rubygem-pg_query/Makefile (-3 / +1 lines)
Lines 12-20 Link Here
12
LICENSE=	BSD3CLAUSE
12
LICENSE=	BSD3CLAUSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
13
LICENSE_FILE=	${WRKSRC}/LICENSE
14
14
15
MY_DEPENDS=	${LOCALBASE}/lib/libpg_query.a:databases/libpg_query
15
BUILD_DEPENDS=	rubygem-pathname>0:devel/rubygem-pathname
16
BUILD_DEPENDS=	${MY_DEPENDS} \
17
		rubygem-pathname>0:devel/rubygem-pathname
18
# rubygem-google-protobuf 3.17.1 is required to fix a segfault
16
# rubygem-google-protobuf 3.17.1 is required to fix a segfault
19
# see PR: https://github.com/pganalyze/pg_query/pull/212
17
# see PR: https://github.com/pganalyze/pg_query/pull/212
20
# and https://github.com/pganalyze/pg_query/pull/213
18
# and https://github.com/pganalyze/pg_query/pull/213
(-)databases/rubygem-pg_query/files/patch-ext_pg__query_extconf.rb (-2 / +3 lines)
Lines 1-6 Link Here
1
--- ext/pg_query/extconf.rb.orig	2021-05-19 21:51:31 UTC
1
--- ext/pg_query/extconf.rb.orig	2021-05-19 21:51:31 UTC
2
+++ ext/pg_query/extconf.rb
2
+++ ext/pg_query/extconf.rb
3
@@ -7,13 +7,6 @@ require 'pathname'
3
@@ -7,13 +7,7 @@ require 'pathname'
4
 
4
 
5
 $objs = Dir.glob(File.join(__dir__, '*.c')).map { |f| Pathname.new(f).sub_ext('.o').to_s }
5
 $objs = Dir.glob(File.join(__dir__, '*.c')).map { |f| Pathname.new(f).sub_ext('.o').to_s }
6
 
6
 
Lines 12-17 Link Here
12
-else
12
-else
13
-  $DLDFLAGS << " -Wl,--retain-symbols-file=#{SYMFILE}"
13
-  $DLDFLAGS << " -Wl,--retain-symbols-file=#{SYMFILE}"
14
-end
14
-end
15
+$CFLAGS << " -I#{File.join(__dir__, 'include')} -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -DHAVE_STRCHRNUL -g"
15
+$CFLAGS << " -O3 -Wall -fno-strict-aliasing -fwrapv -fstack-protector -Wno-unused-function -Wno-unused-variable -DHAVE_STRCHRNUL -g"
16
+$INCFLAGS = "-I#{File.join(__dir__, 'include')} " + $INCFLAGS
16
 
17
 
17
 create_makefile 'pg_query/pg_query'
18
 create_makefile 'pg_query/pg_query'

Return to bug 256741