SHA256
1
0
forked from pool/postgresql16

Compare commits

...

20 Commits

Author SHA256 Message Date
Ana Guerrero
085626e2f5 Accepting request 1240820 from server:database:postgresql
- Fix build, add postgresql-tzdata2025a.patch

OBS-URL: https://build.opensuse.org/request/show/1240820
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql16?expand=0&rev=13
2025-01-28 16:09:48 +00:00
Reinhard Max
013ecdec2d OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=46 2025-01-28 13:03:55 +00:00
Reinhard Max
9cc9e63479 - Fix build, add postgresql-tzdata2025a.patch
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=45
2025-01-28 12:36:50 +00:00
Ana Guerrero
33252a232e Accepting request 1225749 from server:database:postgresql
- Upgrade to 16.6:
  * Repair ABI break for extensions that work with struct
    ResultRelInfo.
  * Restore functionality of ALTER {ROLE|DATABASE} SET role.
  * Fix cases where a logical replication slot's restart_lsn could
    go backwards.
  * Avoid deleting still-needed WAL files during pg_rewind.
  * Fix race conditions associated with dropping shared statistics
    entries.
  * Count index scans in contrib/bloom indexes in the statistics
    views, such as the pg_stat_user_indexes.idx_scan counter.
  * Fix crash when checking to see if an index's opclass options
    have changed.
  * Avoid assertion failure caused by disconnected NFA sub-graphs
    in regular expression parsing.
  * https://www.postgresql.org/about/news/p-2965/
  * https://www.postgresql.org/docs/release/16.6/

OBS-URL: https://build.opensuse.org/request/show/1225749
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql16?expand=0&rev=12
2024-11-22 22:51:50 +00:00
Reinhard Max
ff949ca942 - Upgrade to 16.6:
* Repair ABI break for extensions that work with struct
    ResultRelInfo.
  * Restore functionality of ALTER {ROLE|DATABASE} SET role.
  * Fix cases where a logical replication slot's restart_lsn could
    go backwards.
  * Avoid deleting still-needed WAL files during pg_rewind.
  * Fix race conditions associated with dropping shared statistics
    entries.
  * Count index scans in contrib/bloom indexes in the statistics
    views, such as the pg_stat_user_indexes.idx_scan counter.
  * Fix crash when checking to see if an index's opclass options
    have changed.
  * Avoid assertion failure caused by disconnected NFA sub-graphs
    in regular expression parsing.
  * https://www.postgresql.org/about/news/p-2965/
  * https://www.postgresql.org/docs/release/16.6/

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=43
2024-11-21 17:46:07 +00:00
Ana Guerrero
5c4da96edf Accepting request 1224292 from server:database:postgresql
- Upgrade to 16.5:
  * CVE-2024-10976, bsc#1233323: Ensure cached plans are marked as
    dependent on the calling role when RLS applies to a
    non-top-level table reference.
  * CVE-2024-10977, bsc#1233325: Make libpq discard error messages
    received during SSL or GSS protocol negotiation.
  * CVE-2024-10978, bsc#1233326: Fix unintended interactions
    between SET SESSION AUTHORIZATION and SET ROLE
  * CVE-2024-10979, bsc#1233327: Prevent trusted PL/Perl code from
    changing environment variables.
  * obsoletes postgresql-testsuite-timezone-fix.patch
  * https://www.postgresql.org/about/news/p-2955/
  * https://www.postgresql.org/docs/release/16.5/

- Sync spec file from postgresql17.

  * https://www.postgresql.org/about/news/p-2910/

OBS-URL: https://build.opensuse.org/request/show/1224292
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql16?expand=0&rev=11
2024-11-15 14:43:16 +00:00
Reinhard Max
6a28d61790 - Upgrade to 16.5:
* CVE-2024-10976, bsc#1233323: Ensure cached plans are marked as
    dependent on the calling role when RLS applies to a
    non-top-level table reference.
  * CVE-2024-10977, bsc#1233325: Make libpq discard error messages
    received during SSL or GSS protocol negotiation.
  * CVE-2024-10978, bsc#1233326: Fix unintended interactions
    between SET SESSION AUTHORIZATION and SET ROLE
  * CVE-2024-10979, bsc#1233327: Prevent trusted PL/Perl code from
    changing environment variables.
  * obsoletes postgresql-testsuite-timezone-fix.patch
  * https://www.postgresql.org/about/news/p-2955/
  * https://www.postgresql.org/docs/release/16.5/
  * https://www.postgresql.org/about/news/p-2910/

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=41
2024-11-14 14:58:17 +00:00
Reinhard Max
eca81389b9 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=40 2024-11-05 13:55:23 +00:00
Reinhard Max
2ee914cc71 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=39 2024-11-05 13:45:32 +00:00
Reinhard Max
12dedfea40 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=38 2024-11-05 12:32:39 +00:00
Reinhard Max
e919adae5d OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=37 2024-11-05 11:57:02 +00:00
Ana Guerrero
21c179c8a0 Accepting request 1203874 from server:database:postgresql
OBS-URL: https://build.opensuse.org/request/show/1203874
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql16?expand=0&rev=10
2024-09-27 15:10:40 +00:00
Reinhard Max
baac25ce91 - Sync spec file from postgresql17.
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=35
2024-09-26 11:56:55 +00:00
Reinhard Max
a8438c53ea - Pull upstream patch to fix tests with timezone 2024b
* postgresql-testsuite-timezone-fix.patch

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=34
2024-09-26 11:55:58 +00:00
Ana Guerrero
9da9a245d4 Accepting request 1201997 from server:database:postgresql
- Don't build the libs and mini flavor anymore to hand over to
  PostgreSQL 17.

- Upgrade to 16.4 (bsc#1229013):
  * bsc#1229013, CVE-2024-7348 PostgreSQL relation replacement
    during pg_dump executes arbitrary SQL
  * https://www.postgresql.org/about/news/postgresql-164-158-1413-1316-1220-and-17-beta-3-released-2910/
  * https://www.postgresql.org/docs/release/16.4/

OBS-URL: https://build.opensuse.org/request/show/1201997
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql16?expand=0&rev=9
2024-09-23 13:18:58 +00:00
Reinhard Max
6a40dada4e OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=32 2024-09-19 11:34:57 +00:00
Reinhard Max
e26669fb77 - Remove buildlibs and the mini flavor to make PostgreSQL 17 the
new default.

OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=31
2024-09-19 11:28:32 +00:00
60d131c834 https://www.postgresql.org/about/news/postgresql-164-158-1413-1316-1220-and-17-beta-3-released-2910/
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=30
2024-08-10 14:37:54 +00:00
Reinhard Max
b505e46e37 OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=29 2024-06-27 14:40:25 +00:00
Reinhard Max
eedfaf955d typo
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql16?expand=0&rev=28
2024-05-15 08:19:46 +00:00
8 changed files with 121 additions and 28 deletions

View File

@ -1,3 +0,0 @@
<multibuild>
<package>mini</package>
</multibuild>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585
size 24737644

View File

@ -1 +0,0 @@
331963d5d3dc4caf4216a049fa40b66d6bcb8c730615859411b9518764e60585 postgresql-16.3.tar.bz2

BIN
postgresql-16.6.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
23369cdaccd45270ac5dcc30fa9da205d5be33fa505e1f17a0418d2caeca477b postgresql-16.6.tar.bz2

View File

@ -0,0 +1,26 @@
--- src/test/regress/expected/timestamptz.out.orig
+++ src/test/regress/expected/timestamptz.out
@@ -2388,10 +2388,10 @@ SELECT make_timestamptz(2014, 12, 10, 0,
Tue Dec 09 23:00:00 2014
(1 row)
-SELECT make_timestamptz(1846, 12, 10, 0, 0, 0, 'Asia/Manila') AT TIME ZONE 'UTC';
+SELECT make_timestamptz(1881, 12, 10, 0, 0, 0, 'Asia/Singapore') AT TIME ZONE 'UTC';
timezone
--------------------------
- Wed Dec 09 15:56:00 1846
+ Fri Dec 09 17:04:35 1881
(1 row)
SELECT make_timestamptz(1881, 12, 10, 0, 0, 0, 'Europe/Paris') AT TIME ZONE 'UTC';
--- src/test/regress/sql/timestamptz.sql.orig
+++ src/test/regress/sql/timestamptz.sql
@@ -442,7 +442,7 @@ SELECT make_timestamptz(1973, 07, 15, 08
-- full timezone names
SELECT make_timestamptz(2014, 12, 10, 0, 0, 0, 'Europe/Prague') = timestamptz '2014-12-10 00:00:00 Europe/Prague';
SELECT make_timestamptz(2014, 12, 10, 0, 0, 0, 'Europe/Prague') AT TIME ZONE 'UTC';
-SELECT make_timestamptz(1846, 12, 10, 0, 0, 0, 'Asia/Manila') AT TIME ZONE 'UTC';
+SELECT make_timestamptz(1881, 12, 10, 0, 0, 0, 'Asia/Singapore') AT TIME ZONE 'UTC';
SELECT make_timestamptz(1881, 12, 10, 0, 0, 0, 'Europe/Paris') AT TIME ZONE 'UTC';
SELECT make_timestamptz(1910, 12, 24, 0, 0, 0, 'Nehwon/Lankhmar');

View File

@ -1,3 +1,72 @@
-------------------------------------------------------------------
Tue Jan 28 12:23:29 UTC 2025 - Reinhard Max <max@suse.com>
- Fix build, add postgresql-tzdata2025a.patch
-------------------------------------------------------------------
Tue Nov 19 14:31:22 UTC 2024 - Reinhard Max <max@suse.com>
- Upgrade to 16.6:
* Repair ABI break for extensions that work with struct
ResultRelInfo.
* Restore functionality of ALTER {ROLE|DATABASE} SET role.
* Fix cases where a logical replication slot's restart_lsn could
go backwards.
* Avoid deleting still-needed WAL files during pg_rewind.
* Fix race conditions associated with dropping shared statistics
entries.
* Count index scans in contrib/bloom indexes in the statistics
views, such as the pg_stat_user_indexes.idx_scan counter.
* Fix crash when checking to see if an index's opclass options
have changed.
* Avoid assertion failure caused by disconnected NFA sub-graphs
in regular expression parsing.
* https://www.postgresql.org/about/news/p-2965/
* https://www.postgresql.org/docs/release/16.6/
-------------------------------------------------------------------
Wed Nov 13 13:56:14 UTC 2024 - Reinhard Max <max@suse.com>
- Upgrade to 16.5:
* CVE-2024-10976, bsc#1233323: Ensure cached plans are marked as
dependent on the calling role when RLS applies to a
non-top-level table reference.
* CVE-2024-10977, bsc#1233325: Make libpq discard error messages
received during SSL or GSS protocol negotiation.
* CVE-2024-10978, bsc#1233326: Fix unintended interactions
between SET SESSION AUTHORIZATION and SET ROLE
* CVE-2024-10979, bsc#1233327: Prevent trusted PL/Perl code from
changing environment variables.
* obsoletes postgresql-testsuite-timezone-fix.patch
* https://www.postgresql.org/about/news/p-2955/
* https://www.postgresql.org/docs/release/16.5/
-------------------------------------------------------------------
Tue Nov 5 11:56:16 UTC 2024 - Reinhard Max <max@suse.com>
- Sync spec file from postgresql17.
-------------------------------------------------------------------
Fri Sep 20 22:16:10 UTC 2024 - Antonio Teixeira <antonio.teixeira@suse.com>
- Pull upstream patch to fix tests with timezone 2024b
* postgresql-testsuite-timezone-fix.patch
-------------------------------------------------------------------
Thu Sep 19 11:21:38 UTC 2024 - Reinhard Max <max@suse.com>
- Don't build the libs and mini flavor anymore to hand over to
PostgreSQL 17.
-------------------------------------------------------------------
Sat Aug 10 14:08:50 UTC 2024 - Marcus Rueckert <mrueckert@suse.de>
- Upgrade to 16.4 (bsc#1229013):
* bsc#1229013, CVE-2024-7348 PostgreSQL relation replacement
during pg_dump executes arbitrary SQL
* https://www.postgresql.org/about/news/p-2910/
* https://www.postgresql.org/docs/release/16.4/
------------------------------------------------------------------- -------------------------------------------------------------------
Wed May 8 08:28:48 UTC 2024 - Reinhard Max <max@suse.com> Wed May 8 08:28:48 UTC 2024 - Reinhard Max <max@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package postgresql16 # spec file for package postgresql16
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,11 +16,13 @@
# #
%define pgversion 16.3 %define pgversion 16.6
%define pgmajor 16 %define pgmajor 16
%define buildlibs 1 %define buildlibs 0
%define tarversion %{pgversion} %define tarversion %{pgversion}
%define latest_supported_llvm_ver 18 %define oldest_supported_llvm_ver 10
# To be able to use cmake(LLVM) < ...
%define latest_supported_llvm_ver_plus_one 19
### CUT HERE ### ### CUT HERE ###
%define pgname postgresql%pgmajor %define pgname postgresql%pgmajor
@ -60,7 +62,7 @@ Name: %pgname
%endif %endif
%if %pgmajor >= 17 %if %pgmajor >= 17
%bcond_with dreived %bcond_with derived
%else %else
%bcond_without derived %bcond_without derived
%endif %endif
@ -73,6 +75,12 @@ Name: %pgname
%bcond_without libzstd %bcond_without libzstd
%endif %endif
%if %{without derived}
BuildRequires: bison
BuildRequires: docbook-xsl-stylesheets
BuildRequires: flex
BuildRequires: perl
%endif
%if %mini %if %mini
%bcond_with selinux %bcond_with selinux
%if %pgmajor >= 16 %if %pgmajor >= 16
@ -94,12 +102,6 @@ BuildRequires: zlib-devel
%if %{with liblz4} %if %{with liblz4}
BuildRequires: pkgconfig(liblz4) BuildRequires: pkgconfig(liblz4)
%endif %endif
%if %{without derived}
BuildRequires: bison
BuildRequires: docbook-xsl-stylesheets
BuildRequires: flex
BuildRequires: perl
%endif
%if %{with libzstd} %if %{with libzstd}
BuildRequires: pkgconfig(libzstd) BuildRequires: pkgconfig(libzstd)
@ -144,13 +146,8 @@ BuildRequires: libselinux-devel
%endif %endif
%if %{with llvm} %if %{with llvm}
BuildRequires: gcc-c++ BuildRequires: gcc-c++
%if 0%{?product_libs_llvm_ver} > %{latest_supported_llvm_ver} BuildRequires: (cmake(Clang) >= %{oldest_supported_llvm_ver} with cmake(Clang) < %{latest_supported_llvm_ver_plus_one})
BuildRequires: clang%{latest_supported_llvm_ver} BuildRequires: (cmake(LLVM) >= %{oldest_supported_llvm_ver} with cmake(LLVM) < %{latest_supported_llvm_ver_plus_one})
BuildRequires: llvm%{latest_supported_llvm_ver}-devel
%else
BuildRequires: clang
BuildRequires: llvm-devel
%endif
%endif %endif
BuildRequires: libxslt-devel BuildRequires: libxslt-devel
BuildRequires: openldap2-devel BuildRequires: openldap2-devel
@ -193,6 +190,7 @@ Patch9: postgresql-var-run-socket.patch
Patch10: postgresql-llvm-optional.patch Patch10: postgresql-llvm-optional.patch
Patch11: 0001-jit-Workaround-potential-datalayout-mismatch-on-s390.patch Patch11: 0001-jit-Workaround-potential-datalayout-mismatch-on-s390.patch
%endif %endif
Patch12: postgresql-tzdata2025a.patch
URL: https://www.postgresql.org/ URL: https://www.postgresql.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: postgresql = %version-%release Provides: postgresql = %version-%release
@ -526,6 +524,7 @@ touch -r configure tmp
%if %{with llvm} %if %{with llvm}
%patch -P 10 %patch -P 10
%patch -P 11 %patch -P 11
%patch -P 12
%endif %endif
touch -r tmp configure touch -r tmp configure
rm tmp rm tmp
@ -610,6 +609,7 @@ VLANG=%pgmajor
make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname -C src/include install make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname -C src/include install
make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname -C src/interfaces install make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname -C src/interfaces install
rm -rf %buildroot%pgincludedir/server rm -rf %buildroot%pgincludedir/server
rm -rf %buildroot%pgdatadir
%else %else
make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname install install-docs make DESTDIR=%buildroot PACKAGE_TARNAME=%pgname install install-docs
%if 0 %if 0
@ -772,8 +772,6 @@ done
%endif %endif
popd popd
mkdir -p %buildroot%pgmandir/man1
cp -a doc/src/sgml/man1/ecpg.1 %buildroot%pgmandir/man1/ecpg.1pg%pgmajor
%find_lang ecpg-$VLANG devel.files %find_lang ecpg-$VLANG devel.files
# The devel subpackage is exclusive across versions # The devel subpackage is exclusive across versions
# and not handled by update-alternatives. # and not handled by update-alternatives.
@ -791,8 +789,10 @@ cat server-devel.files >> devel.files
# Build up the file lists for the libpq and libecpg packages # Build up the file lists for the libpq and libecpg packages
cat > libpq.files <<EOF cat > libpq.files <<EOF
%defattr(-,root,root) %defattr(-,root,root)
%if !%mini
%dir %pgdatadir %dir %pgdatadir
%pgdatadir/pg_service.conf.sample %pgdatadir/pg_service.conf.sample
%endif
EOF EOF
find %buildroot -name 'libpq*.so.*' -printf '/%%P\n' >> libpq.files find %buildroot -name 'libpq*.so.*' -printf '/%%P\n' >> libpq.files
%find_lang libpq5-$VLANG libpq.files %find_lang libpq5-$VLANG libpq.files
@ -978,12 +978,13 @@ fi
%_libdir/pkgconfig/* %_libdir/pkgconfig/*
%_libdir/lib*.so %_libdir/lib*.so
%pgincludedir %pgincludedir
%if %{with server_devel} %if %{with server_devel}
%exclude %pgincludedir/server %exclude %pgincludedir/server
%endif %endif
%doc %pgmandir/man1/ecpg.1*
%if !%mini %if !%mini
%doc %pgmandir/man1/ecpg.1*
%if %{with server_devel} %if %{with server_devel}
%files server-devel -f server-devel.files %files server-devel -f server-devel.files
%endif %endif