From 49f9a89bc21932a7a6ac0c9a5da91943d53d7fe1 Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Sun, 16 Aug 2020 17:08:52 +0200 Subject: [PATCH] - updated to 11.9 --- postgresql-disable_horology_test.patch | 51 -------------------------- postgresql-tests.patch | 10 +++++ postgresql.spec | 6 +-- 3 files changed, 13 insertions(+), 54 deletions(-) delete mode 100644 postgresql-disable_horology_test.patch create mode 100644 postgresql-tests.patch diff --git a/postgresql-disable_horology_test.patch b/postgresql-disable_horology_test.patch deleted file mode 100644 index 636116e..0000000 --- a/postgresql-disable_horology_test.patch +++ /dev/null @@ -1,51 +0,0 @@ -# -# an ugly hack to disable some "horology" tests,which fail if built -# --with-system-tzdata and non-US /usr/share/zoneinfo/posixrules: -# http://www.nabble.com/Beta2-%22horology%22-test-failure-on-non-US-zoneinfo-posixrules-td13691442.html -# ---- postgresql-8.3RC1/src/test/regress/expected/horology.out 2007-07-25 18:22:36.000000000 +0100 -+++ postgresql-8.3.0/src/test/regress/expected/horology.out 2008-02-04 20:20:16.091518646 +0000 -@@ -602,30 +602,12 @@ - - -- timestamp with time zone, interval arithmetic around DST change - SET TIME ZONE 'CST7CDT'; --SELECT timestamp with time zone '2005-04-02 12:00-07' + interval '1 day' as "Apr 3, 12:00"; -- Apr 3, 12:00 -------------------------------- -- Sun Apr 03 12:00:00 2005 CDT --(1 row) -- - SELECT timestamp with time zone '2005-04-02 12:00-07' + interval '24 hours' as "Apr 3, 13:00"; - Apr 3, 13:00 - ------------------------------ - Sun Apr 03 13:00:00 2005 CDT - (1 row) - --SELECT timestamp with time zone '2005-04-03 12:00-06' - interval '1 day' as "Apr 2, 12:00"; -- Apr 2, 12:00 -------------------------------- -- Sat Apr 02 12:00:00 2005 CST --(1 row) -- --SELECT timestamp with time zone '2005-04-03 12:00-06' - interval '24 hours' as "Apr 2, 11:00"; -- Apr 2, 11:00 -------------------------------- -- Sat Apr 02 11:00:00 2005 CST --(1 row) -- - RESET TIME ZONE; - SELECT timestamptz(date '1994-01-01', time '11:00') AS "Jan_01_1994_10am"; - Jan_01_1994_10am ---- postgresql-8.3RC1/src/test/regress/sql/horology.sql 2007-07-25 18:22:37.000000000 +0100 -+++ postgresql-8.3.0/src/test/regress/sql/horology.sql 2008-02-04 20:20:18.091381199 +0000 -@@ -114,10 +114,7 @@ - - -- timestamp with time zone, interval arithmetic around DST change - SET TIME ZONE 'CST7CDT'; --SELECT timestamp with time zone '2005-04-02 12:00-07' + interval '1 day' as "Apr 3, 12:00"; - SELECT timestamp with time zone '2005-04-02 12:00-07' + interval '24 hours' as "Apr 3, 13:00"; --SELECT timestamp with time zone '2005-04-03 12:00-06' - interval '1 day' as "Apr 2, 12:00"; --SELECT timestamp with time zone '2005-04-03 12:00-06' - interval '24 hours' as "Apr 2, 11:00"; - RESET TIME ZONE; - - diff --git a/postgresql-tests.patch b/postgresql-tests.patch new file mode 100644 index 0000000..f931424 --- /dev/null +++ b/postgresql-tests.patch @@ -0,0 +1,10 @@ +--- ./src/test/regress/pg_regress.c.orig 2020-08-10 23:15:53.000000000 +0200 ++++ ./src/test/regress/pg_regress.c 2020-08-16 15:50:06.439293508 +0200 +@@ -2408,6 +2408,7 @@ + header(_("starting postmaster")); + snprintf(buf, sizeof(buf), + "\"%s%spostgres\" -D \"%s/data\" -F%s " ++ "-c \"log_directory=log\" " + "-c \"listen_addresses=%s\" -k \"%s\" " + "> \"%s/log/postmaster.log\" 2>&1", + bindir ? bindir : "", diff --git a/postgresql.spec b/postgresql.spec index 24b112f..4a5a0af 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -28,12 +28,12 @@ Summary(tr.UTF-8): Veri Tabanı Yönetim Sistemi Summary(uk.UTF-8): PostgreSQL - система керування базами даних Summary(zh_CN.UTF-8): PostgreSQL 客户端程序和库文件 Name: postgresql-%{pgsqlversion} -Version: %{pgsqlversion}.8 +Version: %{pgsqlversion}.9 Release: 1 License: BSD Group: Applications/Databases Source0: http://ftp.postgresql.org/pub/source/v%{version}/postgresql-%{version}.tar.bz2 -# Source0-md5: e041b208b48750288789477df237123e +# Source0-md5: 2d20502cbce1c7531bb69e56f5c5c65a Source1: postgresql.init Source2: pgsql-Database-HOWTO-html.tar.gz # Source2-md5: 5b656ddf1db41965761f85204a14398e @@ -42,7 +42,7 @@ Patch0: postgresql-conf.patch Patch1: postgresql-absolute_dbpaths.patch Patch2: postgresql-ecpg-includedir.patch Patch3: per-version-dirs.patch -Patch4: postgresql-disable_horology_test.patch +Patch4: postgresql-tests.patch Patch5: postgresql-heimdal.patch Patch6: postgresql-link.patch Patch7: socket-dir-fixes.patch -- 2.46.0