pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/databases/postgresql-promscale_extension postgresql-pr...
details: https://anonhg.NetBSD.org/pkgsrc/rev/d49202b2f968
branches: trunk
changeset: 382067:d49202b2f968
user: tnn <tnn%pkgsrc.org@localhost>
date: Tue Jul 19 19:40:32 2022 +0000
description:
postgresql-promscale_extension: don't bomb when build user is root
diffstat:
databases/postgresql-promscale_extension/Makefile | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r cd739e641638 -r d49202b2f968 databases/postgresql-promscale_extension/Makefile
--- a/databases/postgresql-promscale_extension/Makefile Tue Jul 19 18:12:29 2022 +0000
+++ b/databases/postgresql-promscale_extension/Makefile Tue Jul 19 19:40:32 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2022/07/18 22:14:25 tnn Exp $
+# $NetBSD: Makefile,v 1.16 2022/07/19 19:40:32 tnn Exp $
DISTNAME= promscale_extension-0.5.2
PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME}
@@ -41,7 +41,10 @@
pre-build:
ln -sf ${PREFIX}/bin/cargo ${TOOLS_DIR}/bin/cargo
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cargo install --offline --path ../pgx/cargo-pgx cargo-pgx
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cargo pgx init --pg${PGSQL_VERSION}=${PREFIX}/bin/pg_config
+# cargo pgx init (initdb) refuses to run as root
+# cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} cargo pgx init --pg${PGSQL_VERSION}=${PREFIX}/bin/pg_config
+ mkdir -p ${FAKEHOMEDIR}/.pgx
+ printf '[configs]\npg${PGSQL_VERSION}="${PREFIX}/bin/pg_config"\n' > ${FAKEHOMEDIR}/.pgx/config.toml
# prevent cargo.mk from claiming do-build
do-build:
Home |
Main Index |
Thread Index |
Old Index