Accepting request 1172963 from server:database:postgresql

- Upgrade to 13.15 (bsc#1224051):
  * Fix incompatibility with LLVM 18.
  * https://www.postgresql.org/docs/release/13.15/
- Prepare for PostgreSQL 17.
- Make sure all compilation and doc generation happens in %build.

- Require LLVM <= 17 for now, because LLVM 18 doesn't seem to work.

- Remove constraints file because improved memory usage for s390x

  * https://www.postgresql.org/docs/release/13.14/

OBS-URL: https://build.opensuse.org/request/show/1172963
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/postgresql13?expand=0&rev=29
This commit is contained in:
Dominique Leuenberger 2024-05-10 10:05:18 +00:00 committed by Git OBS Bridge
commit e2b03ae23b
7 changed files with 44 additions and 24 deletions

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<constraints>
<overwrite>
<conditions>
<arch>s390x</arch>
</conditions>
<hardware>
<memory>
<size unit="G">12</size>
</memory>
</hardware>
</overwrite>
</constraints>

View File

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

View File

@ -1 +0,0 @@
b8df078551898960bd500dc5d38a177e9905376df81fe7f2b660a1407fa6a5ed postgresql-13.14.tar.bz2

3
postgresql-13.15.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42edd415446d33b8c242be76d1ad057531b2264b2e86939339b7075c6e4ec925
size 21597871

View File

@ -0,0 +1 @@
42edd415446d33b8c242be76d1ad057531b2264b2e86939339b7075c6e4ec925 postgresql-13.15.tar.bz2

View File

@ -1,3 +1,22 @@
-------------------------------------------------------------------
Wed May 8 14:10:27 UTC 2024 - Reinhard Max <max@suse.com>
- Upgrade to 13.15 (bsc#1224051):
* Fix incompatibility with LLVM 18.
* https://www.postgresql.org/docs/release/13.15/
- Prepare for PostgreSQL 17.
- Make sure all compilation and doc generation happens in %build.
-------------------------------------------------------------------
Wed May 1 15:24:39 UTC 2024 - Aaron Puchert <aaronpuchert@alice-dsl.net>
- Require LLVM <= 17 for now, because LLVM 18 doesn't seem to work.
-------------------------------------------------------------------
Thu Mar 7 15:04:40 UTC 2024 - Sarah Kriesch <sarah.kriesch@opensuse.org>
- Remove constraints file because improved memory usage for s390x
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 29 14:37:18 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org> Thu Feb 29 14:37:18 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
@ -19,7 +38,7 @@ Thu Feb 8 14:10:04 UTC 2024 - Reinhard Max <max@suse.com>
* If you use GIN indexes, you may need to reindex after updating * If you use GIN indexes, you may need to reindex after updating
to this release. to this release.
* LLVM 18 is now supported. * LLVM 18 is now supported.
* https://www.postgresql.org/docs/release/13.4/ * https://www.postgresql.org/docs/release/13.14/
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 8 14:35:06 UTC 2023 - Reinhard Max <max@suse.com> Wed Nov 8 14:35:06 UTC 2023 - Reinhard Max <max@suse.com>

View File

@ -16,11 +16,11 @@
# #
%define pgversion 13.14 %define pgversion 13.15
%define pgmajor 13 %define pgmajor 13
%define buildlibs 0 %define buildlibs 0
%define tarversion %{pgversion} %define tarversion %{pgversion}
%define latest_supported_llvm_ver 18 %define latest_supported_llvm_ver 17
### CUT HERE ### ### CUT HERE ###
%define pgname postgresql%pgmajor %define pgname postgresql%pgmajor
@ -59,6 +59,12 @@ Name: %pgname
%define python python %define python python
%endif %endif
%if %pgmajor >= 17
%bcond_with dreived
%else
%bcond_without derived
%endif
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
%bcond_without liblz4 %bcond_without liblz4
%endif %endif
@ -88,6 +94,12 @@ 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)
@ -573,7 +585,7 @@ PACKAGE_TARNAME=%pgname %configure \
%if %mini %if %mini
make -C src/interfaces %{?_smp_mflags} PACKAGE_TARNAME=%pgname make -C src/interfaces %{?_smp_mflags} PACKAGE_TARNAME=%pgname
%else %else
make %{?_smp_mflags} PACKAGE_TARNAME=%pgname make %{?_smp_mflags} PACKAGE_TARNAME=%pgname world
%if %{with check} %if %{with check}
@ -641,9 +653,9 @@ find %buildroot -type f -cnewer flag -printf "/%%P\n" |
> contrib.files > contrib.files
rm flag rm flag
install -d -m 750 %buildroot/var/lib/pgsql install -d -m 750 %buildroot/var/lib/pgsql
install -d -m755 %buildroot%pgdocdir install -d -m 755 %buildroot%pgdocdir
cp doc/KNOWN_BUGS doc/MISSING_FEATURES COPYRIGHT \ cp doc/KNOWN_BUGS doc/MISSING_FEATURES COPYRIGHT \
README HISTORY %buildroot%pgdocdir README* HISTORY %buildroot%pgdocdir
# Use versioned names for the man pages: # Use versioned names for the man pages:
for f in %buildroot%pgmandir/man*/*; do for f in %buildroot%pgmandir/man*/*; do
mv $f ${f}pg%pgmajor mv $f ${f}pg%pgmajor
@ -701,6 +713,7 @@ genlists main \
pg_receivewal \ pg_receivewal \
pg_verify_checksums \ pg_verify_checksums \
pg_checksums \ pg_checksums \
pg_combinebackup \
pg_verifybackup pg_verifybackup
%find_lang plpgsql-$VLANG main.files %find_lang plpgsql-$VLANG main.files
@ -711,6 +724,8 @@ genlists server \
pg_ctl \ pg_ctl \
pg_controldata \ pg_controldata \
pg_resetwal \ pg_resetwal \
pg_createsubscriber \
pg_walsummary \
pg_waldump \ pg_waldump \
pg_resetxlog \ pg_resetxlog \
%if %pgmajor >= 15 %if %pgmajor >= 15
@ -924,7 +939,6 @@ fi
%files llvmjit-devel %files llvmjit-devel
%defattr(-,root,root) %defattr(-,root,root)
%doc README
%files pltcl -f pltcl.lang %files pltcl -f pltcl.lang
%defattr(-,root,root) %defattr(-,root,root)