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/8a9dde959cbb
branches:  trunk
changeset: 382043:8a9dde959cbb
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Mon Jul 18 19:47:26 2022 +0000

description:
postgresql-promscale_extension: update to 0.5.2

0.5.x is a major release of the Promscale Database Extension.
The Promscale extension is mandatory for the connector deployment starting
with this release, as all the SQL codebase has been migrated to the
Promscale extension.
This has been done to improve performance and the query experience.
As such this version should only be used with promscale 0.11 or higher.

diffstat:

 databases/postgresql-promscale_extension/Makefile                                           |    36 +-
 databases/postgresql-promscale_extension/PLIST                                              |    16 +-
 databases/postgresql-promscale_extension/cargo-depends.mk                                   |   413 ++-
 databases/postgresql-promscale_extension/distinfo                                           |  1217 +++++++--
 databases/postgresql-promscale_extension/patches/patch-Cargo.toml                           |    31 +
 databases/postgresql-promscale_extension/patches/patch-pgx_pgx-pg-sys_src_submodules_mod.rs |     6 +-
 6 files changed, 1246 insertions(+), 473 deletions(-)

diffs (truncated from 2199 to 300 lines):

diff -r a494489fc73c -r 8a9dde959cbb databases/postgresql-promscale_extension/Makefile
--- a/databases/postgresql-promscale_extension/Makefile Mon Jul 18 19:09:42 2022 +0000
+++ b/databases/postgresql-promscale_extension/Makefile Mon Jul 18 19:47:26 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2022/04/18 19:10:39 adam Exp $
+# $NetBSD: Makefile,v 1.14 2022/07/18 19:47:26 tnn Exp $
 
-DISTNAME=      promscale_extension-0.3.2
+DISTNAME=      promscale_extension-0.5.2
 PKGNAME=       postgresql${PGSQL_VERSION}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    databases
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=timescale/}
 GITHUB_PROJECT=        promscale_extension
@@ -14,19 +13,36 @@
 LICENSE=       apache-2.0
 
 DEPENDS+=      postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
+
+# Depends on an unpublished crate. Can't use cargo.mk to fetch it.
+PGX_REV=       ee52db6bbaa006f6f3674bddeff8516c3b914e71
+DISTFILES=     ${DEFAULT_DISTFILES}
+DISTFILES+=    pgx-${PGX_REV}.tar.gz
+SITES.pgx-${PGX_REV}.tar.gz+= -${MASTER_SITE_GITHUB:=timescale/}pgx/archive/${PGX_REV}.tar.gz
+
 .include       "cargo-depends.mk"
 
 PGSQL_VERSIONS_ACCEPTED=       14 13 12
-CARGO_FEATURES+=               pg${PGSQL_VERSION}
 
-USE_TOOLS+=    gmake
+USE_TOOLS+=    gmake bash pax pkg-config
+BUILD_TARGET=  package
+MAKE_FLAGS+=   PG_CONFIG=${PREFIX}/bin/pg_config
+RUSTFLAGS+=    -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
+
+post-extract:
+       mv ${WRKDIR}/pgx-* ${WRKDIR}/pgx
 
-do-configure:
-       mkdir -p ${FAKEHOMEDIR}/.pgx
-       printf '[configs]\npg${PGSQL_VERSION}="${PREFIX}/bin/pg_config"\n' > ${FAKEHOMEDIR}/.pgx/config.toml
+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
 
-do-build: do-cargo-build
-       cd ${WRKSRC} && ${BUILD_MAKE_CMD}
+# prevent cargo.mk from claiming do-build
+do-build:
+       cd ${WRKSRC} && ${BUILD_MAKE_CMD} ${BUILD_TARGET}
+
+do-install:
+       cd ${WRKSRC}/target/release/promscale-pg${PGSQL_VERSION} && pax -rw . ${DESTDIR}
 
 .include "../../lang/clang/buildlink3.mk"
 .include "../../lang/rust/cargo.mk"
diff -r a494489fc73c -r 8a9dde959cbb databases/postgresql-promscale_extension/PLIST
--- a/databases/postgresql-promscale_extension/PLIST    Mon Jul 18 19:09:42 2022 +0000
+++ b/databases/postgresql-promscale_extension/PLIST    Mon Jul 18 19:47:26 2022 +0000
@@ -1,5 +1,9 @@
-@comment $NetBSD: PLIST,v 1.5 2022/03/11 18:47:30 tnn Exp $
-lib/postgresql/promscale.so
+@comment $NetBSD: PLIST,v 1.6 2022/07/18 19:47:26 tnn Exp $
+lib/postgresql/promscale-${PKGVERSION}.so
+share/postgresql/extension/promscale--0.0.0--0.5.0.sql
+share/postgresql/extension/promscale--0.0.0--0.5.1.sql
+share/postgresql/extension/promscale--0.0.0--${PKGVERSION}.sql
+share/postgresql/extension/promscale--0.0.0.sql
 share/postgresql/extension/promscale--0.1--0.1.1.sql
 share/postgresql/extension/promscale--0.1.1--0.1.2.sql
 share/postgresql/extension/promscale--0.1.1.sql
@@ -12,7 +16,13 @@
 share/postgresql/extension/promscale--0.2.0.sql
 share/postgresql/extension/promscale--0.3.0--0.3.1.sql
 share/postgresql/extension/promscale--0.3.0.sql
-share/postgresql/extension/promscale--0.3.1--${PKGVERSION}.sql
+share/postgresql/extension/promscale--0.3.1--0.3.2.sql
 share/postgresql/extension/promscale--0.3.1.sql
+share/postgresql/extension/promscale--0.3.2.sql
+share/postgresql/extension/promscale--0.5.0--0.5.1.sql
+share/postgresql/extension/promscale--0.5.0--${PKGVERSION}.sql
+share/postgresql/extension/promscale--0.5.0.sql
+share/postgresql/extension/promscale--0.5.1--${PKGVERSION}.sql
+share/postgresql/extension/promscale--0.5.1.sql
 share/postgresql/extension/promscale--${PKGVERSION}.sql
 share/postgresql/extension/promscale.control
diff -r a494489fc73c -r 8a9dde959cbb databases/postgresql-promscale_extension/cargo-depends.mk
--- a/databases/postgresql-promscale_extension/cargo-depends.mk Mon Jul 18 19:09:42 2022 +0000
+++ b/databases/postgresql-promscale_extension/cargo-depends.mk Mon Jul 18 19:47:26 2022 +0000
@@ -1,154 +1,271 @@
-# $NetBSD: cargo-depends.mk,v 1.3 2021/12/10 11:44:19 tnn Exp $
+# $NetBSD: cargo-depends.mk,v 1.4 2022/07/18 19:47:26 tnn Exp $
 
-CARGO_CRATE_DEPENDS+=  addr2line-0.16.0
+# make show-cargo-depends > a
+# make show-cargo-depends CARGO_WRKSRC=work/pgx > b
+# cat a b | sort -u > cargo-depends.mk
+
+CARGO_CRATE_DEPENDS+=  addr2line-0.17.0
 CARGO_CRATE_DEPENDS+=  adler-1.0.2
 CARGO_CRATE_DEPENDS+=  aho-corasick-0.7.18
-CARGO_CRATE_DEPENDS+=  ansi_term-0.11.0
 CARGO_CRATE_DEPENDS+=  ansi_term-0.12.1
-CARGO_CRATE_DEPENDS+=  async-trait-0.1.50
-CARGO_CRATE_DEPENDS+=  atomic-polyfill-0.1.5
+CARGO_CRATE_DEPENDS+=  arrayvec-0.7.2
+CARGO_CRATE_DEPENDS+=  askama-0.11.1
+CARGO_CRATE_DEPENDS+=  askama_derive-0.11.2
+CARGO_CRATE_DEPENDS+=  askama_escape-0.10.3
+CARGO_CRATE_DEPENDS+=  askama_shared-0.12.2
+CARGO_CRATE_DEPENDS+=  async-trait-0.1.52
+CARGO_CRATE_DEPENDS+=  async-trait-0.1.53
+CARGO_CRATE_DEPENDS+=  atomic-polyfill-0.1.6
+CARGO_CRATE_DEPENDS+=  atomic-polyfill-0.1.8
 CARGO_CRATE_DEPENDS+=  atomic-traits-0.3.0
 CARGO_CRATE_DEPENDS+=  atty-0.2.14
-CARGO_CRATE_DEPENDS+=  autocfg-1.0.1
-CARGO_CRATE_DEPENDS+=  backtrace-0.3.61
+CARGO_CRATE_DEPENDS+=  autocfg-1.1.0
+CARGO_CRATE_DEPENDS+=  backtrace-0.3.64
+CARGO_CRATE_DEPENDS+=  backtrace-0.3.65
 CARGO_CRATE_DEPENDS+=  bare-metal-0.2.5
 CARGO_CRATE_DEPENDS+=  bare-metal-1.0.0
 CARGO_CRATE_DEPENDS+=  base64-0.11.0
 CARGO_CRATE_DEPENDS+=  base64-0.13.0
 CARGO_CRATE_DEPENDS+=  bincode-1.3.3
-CARGO_CRATE_DEPENDS+=  bindgen-0.59.1
+CARGO_CRATE_DEPENDS+=  bindgen-0.59.2
+CARGO_CRATE_DEPENDS+=  bit-set-0.5.2
+CARGO_CRATE_DEPENDS+=  bit-vec-0.6.3
 CARGO_CRATE_DEPENDS+=  bit_field-0.10.1
 CARGO_CRATE_DEPENDS+=  bitfield-0.13.2
 CARGO_CRATE_DEPENDS+=  bitflags-1.3.2
-CARGO_CRATE_DEPENDS+=  bitvec-0.19.5
+CARGO_CRATE_DEPENDS+=  bitvec-1.0.0
+CARGO_CRATE_DEPENDS+=  block-buffer-0.10.2
 CARGO_CRATE_DEPENDS+=  block-buffer-0.9.0
+CARGO_CRATE_DEPENDS+=  brownstone-1.1.0
 CARGO_CRATE_DEPENDS+=  build-deps-0.1.4
 CARGO_CRATE_DEPENDS+=  byteorder-1.4.3
-CARGO_CRATE_DEPENDS+=  bytes-1.0.1
-CARGO_CRATE_DEPENDS+=  cc-1.0.71
-CARGO_CRATE_DEPENDS+=  cexpr-0.5.0
+CARGO_CRATE_DEPENDS+=  bytes-1.1.0
+CARGO_CRATE_DEPENDS+=  camino-1.0.7
+CARGO_CRATE_DEPENDS+=  cargo-platform-0.1.2
+CARGO_CRATE_DEPENDS+=  cargo_metadata-0.14.1
+CARGO_CRATE_DEPENDS+=  cargo_toml-0.11.4
+CARGO_CRATE_DEPENDS+=  cc-1.0.72
+CARGO_CRATE_DEPENDS+=  cc-1.0.73
+CARGO_CRATE_DEPENDS+=  cexpr-0.6.0
 CARGO_CRATE_DEPENDS+=  cfg-if-1.0.0
-CARGO_CRATE_DEPENDS+=  clang-sys-1.2.0
-CARGO_CRATE_DEPENDS+=  clap-2.33.3
-CARGO_CRATE_DEPENDS+=  color-eyre-0.5.11
-CARGO_CRATE_DEPENDS+=  color-spantrace-0.1.6
+CARGO_CRATE_DEPENDS+=  clang-sys-1.3.1
+CARGO_CRATE_DEPENDS+=  clap-2.34.0
+CARGO_CRATE_DEPENDS+=  clap-3.0.14
+CARGO_CRATE_DEPENDS+=  clap-3.1.17
+CARGO_CRATE_DEPENDS+=  clap-cargo-0.8.0
+CARGO_CRATE_DEPENDS+=  clap_derive-3.0.14
+CARGO_CRATE_DEPENDS+=  clap_derive-3.1.7
+CARGO_CRATE_DEPENDS+=  clap_lex-0.2.0
+CARGO_CRATE_DEPENDS+=  color-eyre-0.6.0
+CARGO_CRATE_DEPENDS+=  color-eyre-0.6.1
+CARGO_CRATE_DEPENDS+=  color-spantrace-0.2.0
 CARGO_CRATE_DEPENDS+=  colored-2.0.0
-CARGO_CRATE_DEPENDS+=  cortex-m-0.7.3
-CARGO_CRATE_DEPENDS+=  cpufeatures-0.1.4
-CARGO_CRATE_DEPENDS+=  crc32fast-1.2.1
+CARGO_CRATE_DEPENDS+=  console-0.15.0
+CARGO_CRATE_DEPENDS+=  convert_case-0.5.0
+CARGO_CRATE_DEPENDS+=  core-foundation-0.9.3
+CARGO_CRATE_DEPENDS+=  core-foundation-sys-0.8.3
+CARGO_CRATE_DEPENDS+=  cortex-m-0.7.4
+CARGO_CRATE_DEPENDS+=  cpufeatures-0.2.1
+CARGO_CRATE_DEPENDS+=  cpufeatures-0.2.2
+CARGO_CRATE_DEPENDS+=  crc32fast-1.3.2
 CARGO_CRATE_DEPENDS+=  critical-section-0.2.5
-CARGO_CRATE_DEPENDS+=  crossbeam-channel-0.5.1
-CARGO_CRATE_DEPENDS+=  crossbeam-deque-0.8.0
-CARGO_CRATE_DEPENDS+=  crossbeam-epoch-0.9.5
-CARGO_CRATE_DEPENDS+=  crossbeam-utils-0.8.5
-CARGO_CRATE_DEPENDS+=  crypto-mac-0.10.0
+CARGO_CRATE_DEPENDS+=  critical-section-0.2.7
+CARGO_CRATE_DEPENDS+=  crossbeam-channel-0.5.2
+CARGO_CRATE_DEPENDS+=  crossbeam-channel-0.5.4
+CARGO_CRATE_DEPENDS+=  crossbeam-deque-0.8.1
+CARGO_CRATE_DEPENDS+=  crossbeam-epoch-0.9.7
+CARGO_CRATE_DEPENDS+=  crossbeam-epoch-0.9.8
+CARGO_CRATE_DEPENDS+=  crossbeam-utils-0.8.7
+CARGO_CRATE_DEPENDS+=  crossbeam-utils-0.8.8
+CARGO_CRATE_DEPENDS+=  crypto-common-0.1.2
+CARGO_CRATE_DEPENDS+=  crypto-common-0.1.3
+CARGO_CRATE_DEPENDS+=  crypto-mac-0.10.1
+CARGO_CRATE_DEPENDS+=  cstr_core-0.2.5
+CARGO_CRATE_DEPENDS+=  cty-0.2.2
+CARGO_CRATE_DEPENDS+=  debugid-0.7.2
+CARGO_CRATE_DEPENDS+=  digest-0.10.2
+CARGO_CRATE_DEPENDS+=  digest-0.10.3
 CARGO_CRATE_DEPENDS+=  digest-0.9.0
 CARGO_CRATE_DEPENDS+=  dirs-4.0.0
 CARGO_CRATE_DEPENDS+=  dirs-sys-0.3.6
+CARGO_CRATE_DEPENDS+=  dirs-sys-0.3.7
+CARGO_CRATE_DEPENDS+=  dmsort-1.0.1
+CARGO_CRATE_DEPENDS+=  doc-comment-0.3.3
 CARGO_CRATE_DEPENDS+=  either-1.6.1
-CARGO_CRATE_DEPENDS+=  embedded-hal-0.2.6
+CARGO_CRATE_DEPENDS+=  elementtree-0.7.0
+CARGO_CRATE_DEPENDS+=  embedded-hal-0.2.7
+CARGO_CRATE_DEPENDS+=  encode_unicode-0.3.6
 CARGO_CRATE_DEPENDS+=  enum-primitive-derive-0.2.2
-CARGO_CRATE_DEPENDS+=  env_logger-0.8.4
+CARGO_CRATE_DEPENDS+=  env_logger-0.7.1
+CARGO_CRATE_DEPENDS+=  env_logger-0.9.0
 CARGO_CRATE_DEPENDS+=  env_proxy-0.4.1
-CARGO_CRATE_DEPENDS+=  eyre-0.6.5
+CARGO_CRATE_DEPENDS+=  eyre-0.6.6
+CARGO_CRATE_DEPENDS+=  eyre-0.6.8
 CARGO_CRATE_DEPENDS+=  fallible-iterator-0.2.0
-CARGO_CRATE_DEPENDS+=  fixedbitset-0.4.0
-CARGO_CRATE_DEPENDS+=  flate2-1.0.20
+CARGO_CRATE_DEPENDS+=  fastrand-1.7.0
+CARGO_CRATE_DEPENDS+=  fixedbitset-0.4.1
+CARGO_CRATE_DEPENDS+=  flate2-1.0.22
+CARGO_CRATE_DEPENDS+=  flate2-1.0.23
+CARGO_CRATE_DEPENDS+=  fnv-1.0.7
+CARGO_CRATE_DEPENDS+=  foreign-types-0.3.2
+CARGO_CRATE_DEPENDS+=  foreign-types-shared-0.1.1
+CARGO_CRATE_DEPENDS+=  fork-0.1.18
 CARGO_CRATE_DEPENDS+=  form_urlencoded-1.0.1
-CARGO_CRATE_DEPENDS+=  funty-1.1.0
-CARGO_CRATE_DEPENDS+=  futures-0.3.15
-CARGO_CRATE_DEPENDS+=  futures-channel-0.3.15
-CARGO_CRATE_DEPENDS+=  futures-core-0.3.15
-CARGO_CRATE_DEPENDS+=  futures-executor-0.3.15
-CARGO_CRATE_DEPENDS+=  futures-io-0.3.15
-CARGO_CRATE_DEPENDS+=  futures-macro-0.3.15
-CARGO_CRATE_DEPENDS+=  futures-sink-0.3.15
-CARGO_CRATE_DEPENDS+=  futures-task-0.3.15
-CARGO_CRATE_DEPENDS+=  futures-util-0.3.15
-CARGO_CRATE_DEPENDS+=  generic-array-0.14.4
+CARGO_CRATE_DEPENDS+=  funty-2.0.0
+CARGO_CRATE_DEPENDS+=  futures-0.3.21
+CARGO_CRATE_DEPENDS+=  futures-channel-0.3.21
+CARGO_CRATE_DEPENDS+=  futures-core-0.3.21
+CARGO_CRATE_DEPENDS+=  futures-executor-0.3.21
+CARGO_CRATE_DEPENDS+=  futures-io-0.3.21
+CARGO_CRATE_DEPENDS+=  futures-macro-0.3.21
+CARGO_CRATE_DEPENDS+=  futures-sink-0.3.21
+CARGO_CRATE_DEPENDS+=  futures-task-0.3.21
+CARGO_CRATE_DEPENDS+=  futures-util-0.3.21
+CARGO_CRATE_DEPENDS+=  generic-array-0.14.5
 CARGO_CRATE_DEPENDS+=  getrandom-0.1.16
-CARGO_CRATE_DEPENDS+=  getrandom-0.2.3
-CARGO_CRATE_DEPENDS+=  gimli-0.25.0
+CARGO_CRATE_DEPENDS+=  getrandom-0.2.4
+CARGO_CRATE_DEPENDS+=  getrandom-0.2.6
+CARGO_CRATE_DEPENDS+=  gimli-0.26.1
 CARGO_CRATE_DEPENDS+=  glob-0.3.0
-CARGO_CRATE_DEPENDS+=  half-1.7.1
+CARGO_CRATE_DEPENDS+=  goblin-0.4.3
+CARGO_CRATE_DEPENDS+=  half-1.8.2
 CARGO_CRATE_DEPENDS+=  hash32-0.2.1
 CARGO_CRATE_DEPENDS+=  hashbrown-0.11.2
-CARGO_CRATE_DEPENDS+=  heapless-0.7.7
-CARGO_CRATE_DEPENDS+=  hermit-abi-0.1.18
+CARGO_CRATE_DEPENDS+=  heapless-0.7.10
+CARGO_CRATE_DEPENDS+=  heapless-0.7.11
+CARGO_CRATE_DEPENDS+=  heck-0.4.0
+CARGO_CRATE_DEPENDS+=  hermit-abi-0.1.19
+CARGO_CRATE_DEPENDS+=  hex-0.4.3
 CARGO_CRATE_DEPENDS+=  hmac-0.10.1
+CARGO_CRATE_DEPENDS+=  hmac-0.12.0
+CARGO_CRATE_DEPENDS+=  hmac-0.12.1
 CARGO_CRATE_DEPENDS+=  httpdate-0.3.2
+CARGO_CRATE_DEPENDS+=  humansize-1.1.1
+CARGO_CRATE_DEPENDS+=  humantime-1.3.0
 CARGO_CRATE_DEPENDS+=  humantime-2.1.0
 CARGO_CRATE_DEPENDS+=  idna-0.2.3
+CARGO_CRATE_DEPENDS+=  indent_write-2.2.0
 CARGO_CRATE_DEPENDS+=  indenter-0.3.3
-CARGO_CRATE_DEPENDS+=  indexmap-1.7.0
-CARGO_CRATE_DEPENDS+=  instant-0.1.9
-CARGO_CRATE_DEPENDS+=  itoa-0.4.7
+CARGO_CRATE_DEPENDS+=  indexmap-1.8.0
+CARGO_CRATE_DEPENDS+=  indexmap-1.8.1
+CARGO_CRATE_DEPENDS+=  insta-1.14.0
+CARGO_CRATE_DEPENDS+=  instant-0.1.12
+CARGO_CRATE_DEPENDS+=  itoa-1.0.1
+CARGO_CRATE_DEPENDS+=  joinery-2.1.0
 CARGO_CRATE_DEPENDS+=  lazy_static-1.4.0
 CARGO_CRATE_DEPENDS+=  lazycell-1.3.0
-CARGO_CRATE_DEPENDS+=  libc-0.2.107
-CARGO_CRATE_DEPENDS+=  libloading-0.7.1
-CARGO_CRATE_DEPENDS+=  lock_api-0.4.4
+CARGO_CRATE_DEPENDS+=  libc-0.2.117



Home | Main Index | Thread Index | Old Index