Index: head/databases/tsearch_extras/Makefile =================================================================== --- head/databases/tsearch_extras/Makefile (revision 468822) +++ head/databases/tsearch_extras/Makefile (revision 468823) @@ -1,24 +1,24 @@ # $FreeBSD$ PORTNAME= tsearch_extras -PORTVERSION= 0.2 +PORTVERSION= 0.3 CATEGORIES= databases MAINTAINER= rm@FreeBSD.org COMMENT= Functions for getting lower-level data about full text search LICENSE= PostgreSQL LICENSE_FILE= ${WRKSRC}/COPYRIGHT USE_GITHUB= yes GH_ACCOUNT= zulip USES= gmake pgsql PLIST_FILES= lib/postgresql/tsearch_extras.so \ share/postgresql/extension/tsearch_extras--1.0.sql \ share/postgresql/extension/tsearch_extras.control post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/tsearch_extras.so .include Index: head/databases/tsearch_extras/distinfo =================================================================== --- head/databases/tsearch_extras/distinfo (revision 468822) +++ head/databases/tsearch_extras/distinfo (revision 468823) @@ -1,3 +1,3 @@ -TIMESTAMP = 1469800079 -SHA256 (zulip-tsearch_extras-0.2_GH0.tar.gz) = cb52159a609627c032183cdb2adff0e5fe90476c1d5c614d3d51a556562a8ec6 -SIZE (zulip-tsearch_extras-0.2_GH0.tar.gz) = 4428 +TIMESTAMP = 1525257515 +SHA256 (zulip-tsearch_extras-0.3_GH0.tar.gz) = 5bf3bd1a3b6b8dbee636e69177ca980315f6d5bce69d3c10020e65daedb6d2e3 +SIZE (zulip-tsearch_extras-0.3_GH0.tar.gz) = 4666 Index: head/databases/tsearch_extras/files/patch-tsearch_extras.c =================================================================== --- head/databases/tsearch_extras/files/patch-tsearch_extras.c (nonexistent) +++ head/databases/tsearch_extras/files/patch-tsearch_extras.c (revision 468823) @@ -0,0 +1,24 @@ + +Upstream patch for building with PostgreSQL 10.x +https://github.com/zulip/tsearch_extras/issues/3 + +diff --git a/tsearch_extras.c b/tsearch_extras.c +index 062dcdb..7464c71 100644 +--- tsearch_extras.c ++++ tsearch_extras.c +@@ -77,9 +77,15 @@ ts_match_locs_setup(Oid cfgId, TsMatchesData *mdata, text* in, TSQuery query) + + hlparsetext(cfgId, &prs, query, VARDATA(in), VARSIZE(in) - VARHDRSZ); + ++ #if PG_VERSION_NUM >= 100000 ++ headline_options = lappend(headline_options, ++ makeDefElem(pstrdup("HighlightAll"), ++ (Node *) makeString(pstrdup("1")), -1)); ++ #else + headline_options = lappend(headline_options, + makeDefElem(pstrdup("HighlightAll"), + (Node *) makeString(pstrdup("1")))); ++ #endif + + FunctionCall3(&(prsobj->prsheadline), + PointerGetDatum(&prs), Property changes on: head/databases/tsearch_extras/files/patch-tsearch_extras.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property