Received: by mail.netbsd.org (Postfix, from userid 605) id B14EF84DB2; Tue, 19 Jul 2022 19:40:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id E8B1984DA9 for ; Tue, 19 Jul 2022 19:40:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 2pr1GlPdj8bn for ; Tue, 19 Jul 2022 19:40:32 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 41B5B84D51 for ; Tue, 19 Jul 2022 19:40:32 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 3B351FB1A; Tue, 19 Jul 2022 19:40:32 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_165825963282780" MIME-Version: 1.0 Date: Tue, 19 Jul 2022 19:40:32 +0000 From: "Tobias Nygren" Subject: CVS commit: pkgsrc/databases/postgresql-promscale_extension To: pkgsrc-changes@NetBSD.org Reply-To: tnn@netbsd.org X-Mailer: log_accum Message-Id: <20220719194032.3B351FB1A@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_165825963282780 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: tnn Date: Tue Jul 19 19:40:32 UTC 2022 Modified Files: pkgsrc/databases/postgresql-promscale_extension: Makefile Log Message: postgresql-promscale_extension: don't bomb when build user is root To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 \ pkgsrc/databases/postgresql-promscale_extension/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_165825963282780 Content-Disposition: inline Content-Length: 1247 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/databases/postgresql-promscale_extension/Makefile diff -u pkgsrc/databases/postgresql-promscale_extension/Makefile:1.15 pkgsrc/databases/postgresql-promscale_extension/Makefile:1.16 --- pkgsrc/databases/postgresql-promscale_extension/Makefile:1.15 Mon Jul 18 22:14:25 2022 +++ pkgsrc/databases/postgresql-promscale_extension/Makefile Tue Jul 19 19:40:32 2022 @@ -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 @@ post-extract: 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: --_----------=_165825963282780--