databases/postgresql-promscale: Fix build with NLS
PR: 267550
This commit is contained in:
parent
58608051fa
commit
2735159edc
@ -1,6 +1,6 @@
|
||||
PORTNAME= promscale
|
||||
PORTVERSION= 0.7.0
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= databases
|
||||
PKGNAMEPREFIX= postgresql${PGSQL_VER:S/.//}-
|
||||
|
||||
@ -36,6 +36,10 @@ MAKE_ENV+= MAKE=gmake PATH=${PATH}:${WRKDIR}/.cargo/bin
|
||||
post-extract:
|
||||
mv ${WRKDIR}/pgx-* ${WRKDIR}/pgx
|
||||
|
||||
pre-configure:
|
||||
@${PATCH} -d ${WRKDIR} ${PATCH_ARGS} < ${PATCHDIR}/pgx-include-patch
|
||||
${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKDIR}/pgx/pgx-pg-sys/build.rs
|
||||
|
||||
pre-build:
|
||||
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cargo install --offline --path ../pgx/cargo-pgx cargo-pgx
|
||||
mkdir -p ${WRKDIR}/.pgx
|
||||
|
10
databases/postgresql-promscale/files/pgx-include-patch
Normal file
10
databases/postgresql-promscale/files/pgx-include-patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- pgx/pgx-pg-sys/build.rs.orig 2022-11-06 21:01:34.720308000 +0000
|
||||
+++ pgx/pgx-pg-sys/build.rs 2022-11-06 21:02:14.469075000 +0000
|
||||
@@ -507,6 +507,7 @@
|
||||
let bindings = bindgen::Builder::default()
|
||||
.header(include_h.display().to_string())
|
||||
.clang_arg(&format!("-I{}", includedir_server.display()))
|
||||
+ .clang_arg("-I%%LOCALBASE%%/include")
|
||||
.parse_callbacks(Box::new(IgnoredMacros::default()))
|
||||
.blocklist_function("varsize_any") // pgx converts the VARSIZE_ANY macro, so we don't want to also have this function, which is in heaptuple.c
|
||||
.blocklist_function("query_tree_walker")
|
Loading…
Reference in New Issue
Block a user