From 06f40ac3ca4937ccc3dec9e00232b46cf78be78f7c763495d3afedd11099eff9 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Fri, 12 Feb 2021 19:15:05 +0000 Subject: [PATCH 1/2] - Upgrade to version 13.2: * https://www.postgresql.org/docs/13/release-13-2.html * Updating stored views and reindexing might be needed after applying this update. * CVE-2021-3393, bsc#1182040: Fix information leakage in constraint-violation error messages. * CVE-2021-20229, bsc#1182039: Fix failure to check per-column SELECT privileges in some join queries. * Obsoletes postgresql-icu68.patch. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql13?expand=0&rev=14 --- postgresql-13.1.tar.bz2 | 3 --- postgresql-13.1.tar.bz2.sha256 | 1 - postgresql-13.2.tar.bz2 | 3 +++ postgresql-13.2.tar.bz2.sha256 | 1 + postgresql-icu68.patch | 12 ------------ postgresql13.changes | 13 +++++++++++++ postgresql13.spec | 6 ++---- 7 files changed, 19 insertions(+), 20 deletions(-) delete mode 100644 postgresql-13.1.tar.bz2 delete mode 100644 postgresql-13.1.tar.bz2.sha256 create mode 100644 postgresql-13.2.tar.bz2 create mode 100644 postgresql-13.2.tar.bz2.sha256 delete mode 100644 postgresql-icu68.patch diff --git a/postgresql-13.1.tar.bz2 b/postgresql-13.1.tar.bz2 deleted file mode 100644 index 1403939..0000000 --- a/postgresql-13.1.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:12345c83b89aa29808568977f5200d6da00f88a035517f925293355432ffe61f -size 21034192 diff --git a/postgresql-13.1.tar.bz2.sha256 b/postgresql-13.1.tar.bz2.sha256 deleted file mode 100644 index 0ca1603..0000000 --- a/postgresql-13.1.tar.bz2.sha256 +++ /dev/null @@ -1 +0,0 @@ -12345c83b89aa29808568977f5200d6da00f88a035517f925293355432ffe61f postgresql-13.1.tar.bz2 diff --git a/postgresql-13.2.tar.bz2 b/postgresql-13.2.tar.bz2 new file mode 100644 index 0000000..14d2e2a --- /dev/null +++ b/postgresql-13.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fd7fcd08db86f5b2aed28fcfaf9ae0aca8e9428561ac547764c2a2b0f41adfc +size 21057276 diff --git a/postgresql-13.2.tar.bz2.sha256 b/postgresql-13.2.tar.bz2.sha256 new file mode 100644 index 0000000..f00521c --- /dev/null +++ b/postgresql-13.2.tar.bz2.sha256 @@ -0,0 +1 @@ +5fd7fcd08db86f5b2aed28fcfaf9ae0aca8e9428561ac547764c2a2b0f41adfc postgresql-13.2.tar.bz2 diff --git a/postgresql-icu68.patch b/postgresql-icu68.patch deleted file mode 100644 index fc24da2..0000000 --- a/postgresql-icu68.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -rupN a/src/backend/commands/collationcmds.c b/src/backend/commands/collationcmds.c ---- a/src/backend/commands/collationcmds.c 2020-11-07 08:03:24.122756440 +0300 -+++ b/src/backend/commands/collationcmds.c 2020-11-07 08:04:18.168901199 +0300 -@@ -464,7 +464,7 @@ get_icu_language_tag(const char *localen - UErrorCode status; - - status = U_ZERO_ERROR; -- uloc_toLanguageTag(localename, buf, sizeof(buf), TRUE, &status); -+ uloc_toLanguageTag(localename, buf, sizeof(buf), true, &status); - if (U_FAILURE(status)) - ereport(ERROR, - (errmsg("could not convert locale name \"%s\" to language tag: %s", diff --git a/postgresql13.changes b/postgresql13.changes index 4bc3394..a2e46aa 100644 --- a/postgresql13.changes +++ b/postgresql13.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Wed Feb 10 13:16:32 UTC 2021 - Reinhard Max + +- Upgrade to version 13.2: + * https://www.postgresql.org/docs/13/release-13-2.html + * Updating stored views and reindexing might be needed after + applying this update. + * CVE-2021-3393, bsc#1182040: Fix information leakage in + constraint-violation error messages. + * CVE-2021-20229, bsc#1182039: Fix failure to check per-column + SELECT privileges in some join queries. + * Obsoletes postgresql-icu68.patch. + ------------------------------------------------------------------- Mon Dec 14 16:19:05 UTC 2020 - Callum Farmer diff --git a/postgresql13.spec b/postgresql13.spec index 517a0dd..7a3efc1 100644 --- a/postgresql13.spec +++ b/postgresql13.spec @@ -1,7 +1,7 @@ # # spec file for package postgresql13 # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,7 +16,7 @@ # -%define pgversion 13.1 +%define pgversion 13.2 %define pgmajor 13 %define pgsuffix %pgmajor %define buildlibs 1 @@ -145,7 +145,6 @@ Patch4: postgresql-plperl-keep-rpath.patch Patch6: postgresql-testsuite-int8.sql.patch Patch8: postgresql-testsuite-keep-results-file.patch Patch9: postgresql-var-run-socket.patch -Patch10: postgresql-icu68.patch URL: https://www.postgresql.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: postgresql = %version-%release @@ -453,7 +452,6 @@ touch -r configure tmp %patch6 %patch8 -p1 %patch9 -%patch10 -p1 touch -r tmp configure rm tmp find src/test/ -name '*.orig' -delete From 3de008322dba28aea7a6ea3c345c1f9d4346ff546158d557684f7a952bb7bf97 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Fri, 19 Feb 2021 15:59:21 +0000 Subject: [PATCH 2/2] - boo#1179945: Disable icu for PostgreSQL 10 (and older) on TW. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql13?expand=0&rev=15 --- postgresql13.changes | 5 +++++ postgresql13.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/postgresql13.changes b/postgresql13.changes index a2e46aa..5739cd0 100644 --- a/postgresql13.changes +++ b/postgresql13.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Feb 19 15:30:08 UTC 2021 - Reinhard Max + +- boo#1179945: Disable icu for PostgreSQL 10 (and older) on TW. + ------------------------------------------------------------------- Wed Feb 10 13:16:32 UTC 2021 - Reinhard Max diff --git a/postgresql13.spec b/postgresql13.spec index 7a3efc1..db96661 100644 --- a/postgresql13.spec +++ b/postgresql13.spec @@ -72,7 +72,11 @@ BuildRequires: tcl-devel BuildRequires: timezone BuildRequires: zlib-devel %bcond_without selinux +%if %pgmajor > 10 || 0%{?suse_version} <= 1500 %bcond_without icu +%else +%bcond_with icu +%endif %if !%buildlibs BuildRequires: %libecpg BuildRequires: %libpq