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

(-)b/databases/postgresql-promscale/Makefile (+4 lines)
Lines 36-41 MAKE_ENV+= MAKE=gmake PATH=${PATH}:${WRKDIR}/.cargo/bin Link Here
36
post-extract:
36
post-extract:
37
	mv ${WRKDIR}/pgx-* ${WRKDIR}/pgx
37
	mv ${WRKDIR}/pgx-* ${WRKDIR}/pgx
38
38
39
pre-configure:
40
	@${PATCH} -d ${WRKDIR} ${PATCH_ARGS} < ${PATCHDIR}/pgx-include-patch
41
	${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKDIR}/pgx/pgx-pg-sys/build.rs
42
39
pre-build:
43
pre-build:
40
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cargo install --offline --path ../pgx/cargo-pgx cargo-pgx
44
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cargo install --offline --path ../pgx/cargo-pgx cargo-pgx
41
	mkdir -p ${WRKDIR}/.pgx
45
	mkdir -p ${WRKDIR}/.pgx
(-)b/databases/postgresql-promscale/files/pgx-include-patch (-1 / +10 lines)
Added Link Here
0
- 
1
--- pgx/pgx-pg-sys/build.rs.orig        2022-11-06 21:01:34.720308000 +0000
2
+++ pgx/pgx-pg-sys/build.rs     2022-11-06 21:02:14.469075000 +0000
3
@@ -507,6 +507,7 @@
4
     let bindings = bindgen::Builder::default()
5
         .header(include_h.display().to_string())
6
         .clang_arg(&format!("-I{}", includedir_server.display()))
7
+        .clang_arg("-I%%LOCALBASE%%/include")
8
         .parse_callbacks(Box::new(IgnoredMacros::default()))
9
         .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
10
         .blocklist_function("query_tree_walker")

Return to bug 267550