aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2021-03-17 21:12:37 +0100
committerJakub Jirutka <jakub@jirutka.cz>2021-03-17 21:20:45 +0100
commitefd847c05e10333cf5475902d4f4a55222cdc669 (patch)
tree9b0a4cdc2c5030822954ec9c6a37951025380e97 /testing
parent973ffb05e6b0c75c381184172dd4da24035104e3 (diff)
downloadaports-efd847c05e10333cf5475902d4f4a55222cdc669.tar.gz
aports-efd847c05e10333cf5475902d4f4a55222cdc669.tar.bz2
aports-efd847c05e10333cf5475902d4f4a55222cdc669.tar.xz
testing/postgresql-timescaledb: call cmake directly and fix flags
To be more clear what's going on.
Diffstat (limited to 'testing')
-rw-r--r--testing/postgresql-timescaledb/APKBUILD19
1 files changed, 14 insertions, 5 deletions
diff --git a/testing/postgresql-timescaledb/APKBUILD b/testing/postgresql-timescaledb/APKBUILD
index 57cfd3a730..24c556dce0 100644
--- a/testing/postgresql-timescaledb/APKBUILD
+++ b/testing/postgresql-timescaledb/APKBUILD
@@ -12,13 +12,22 @@ provides="timescaledb=$pkgver-r$pkgrel" # for backward compatibility
makedepends="postgresql-dev cmake bash"
source="https://github.com/timescale/timescaledb/archive/$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_projname-$pkgver"
+options="!check" # FIXME: see comment on REGRESS_CHECKS=OFF below
+
+export USE_PGXS=1
build() {
+ # CFLAGS - performance is more important than binary size in this case
# REGRESS_CHECKS=OFF - disable regress test
- # regress need https://github.com/timescale/timescaledb/blob/master/test/pg_isolation_regress.sh
- # which need to compile pg - https://github.com/timescale/timescaledb/issues/1655#issuecomment-578683986
- BUILD_FORCE_REMOVE=true ./bootstrap -DREGRESS_CHECKS=OFF
- make -C build USE-PGXS=1
+ # regress need https://github.com/timescale/timescaledb/blob/master/test/pg_isolation_regress.sh
+ # which need to compile pg - https://github.com/timescale/timescaledb/issues/1655#issuecomment-578683986
+ cmake -B build . \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_C_FLAGS="${CFLAGS/-Os/-O2} -DNDEBUG" \
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
+ -DREGRESS_CHECKS=OFF
+ make -C build
}
check() {
@@ -26,7 +35,7 @@ check() {
}
package() {
- make -C build USE_PGXS=1 DESTDIR="$pkgdir" install
+ make -C build install DESTDIR="$pkgdir"
}
sha512sums="53fddb9fe4c4ab51ebc020e90eea5b032b41259d3bd45e8a03a86451acd7f8864b5a6ecba1b82b7c78e230f62cfddf1da75ff27e6629ad5fe8178839ac411ce4 postgresql-timescaledb-2.1.0.tar.gz"