From 9bfb9a457cff6dc5c162a77df03ffcc32b26f0f0 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 19 Jan 2020 08:03:11 +0100 Subject: tweak port used for test --- php-pecl-pq.spec | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/php-pecl-pq.spec b/php-pecl-pq.spec index 8f2dd81..16830a7 100644 --- a/php-pecl-pq.spec +++ b/php-pecl-pq.spec @@ -235,11 +235,8 @@ RET=0 : Running a server DATABASE=$PWD/data -%ifarch x86_64 -PORT=5440 -%else -PORT=5436 -%endif +PORT=$(%{__php} -r 'echo 5432 + PHP_MINOR_VERSION + PHP_INT_SIZE + 0%{?scl:1};') + pg_ctl initdb -D $DATABASE cat <>$DATABASE/postgresql.conf unix_socket_directories = '$DATABASE' -- cgit