Skip to content

Commit

Permalink
databases/rubygem-pg_query: fix build on FreeBSD 13.3
Browse files Browse the repository at this point in the history
I reported this fix also upstream:
pganalyze/pg_query#313

PR:		277535
  • Loading branch information
mfechner committed Mar 7, 2024
1 parent 29aac7c commit 44edb6f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions databases/rubygem-pg_query/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PORTNAME= pg_query
PORTVERSION= 5.1.0
PORTREVISION= 1
CATEGORIES= databases rubygems
MASTER_SITES= RG

Expand All @@ -10,11 +11,12 @@ WWW= https://github.com/lfittl/pg_query
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BROKEN_FreeBSD_15= fails to link: ld: error: version script assignment of 'global' to symbol '_Init_pg_query' failed: symbol not defined

BUILD_DEPENDS= rubygem-pathname>0:devel/rubygem-pathname
RUN_DEPENDS= rubygem-google-protobuf>=3.22.3:devel/rubygem-google-protobuf

USES= gem

post-patch:
# ${RM} ${WRKSRC}/ext/pg_query/pg_query_ruby_freebsd.sym

.include <bsd.port.mk>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--- ext/pg_query/pg_query_ruby_freebsd.sym.orig 2024-03-07 07:21:50 UTC
+++ ext/pg_query/pg_query_ruby_freebsd.sym
@@ -1,2 +1 @@
-_Init_pg_query
Init_pg_query

0 comments on commit 44edb6f

Please sign in to comment.