From e03707288a535c01683523d2d29171142d0d3b7a Mon Sep 17 00:00:00 2001 From: Devrim Gunduz Date: Tue, 11 Nov 2025 21:15:35 +0300 Subject: [PATCH] PostgreSQL 13: Update to 13.23, per changes described at https://www.postgresql.org/docs/release/13.23/ --- .../F-43/postgresql-13-llvm21.patch | 1 - .../main/postgresql-13-llvm21.patch | 33 ------------------- .../postgresql-13/main/postgresql-13.spec | 16 ++++----- 3 files changed, 7 insertions(+), 43 deletions(-) delete mode 120000 rpm/redhat/main/non-common/postgresql-13/F-43/postgresql-13-llvm21.patch delete mode 100644 rpm/redhat/main/non-common/postgresql-13/main/postgresql-13-llvm21.patch diff --git a/rpm/redhat/main/non-common/postgresql-13/F-43/postgresql-13-llvm21.patch b/rpm/redhat/main/non-common/postgresql-13/F-43/postgresql-13-llvm21.patch deleted file mode 120000 index 7002921d2..000000000 --- a/rpm/redhat/main/non-common/postgresql-13/F-43/postgresql-13-llvm21.patch +++ /dev/null @@ -1 +0,0 @@ -../main/postgresql-13-llvm21.patch \ No newline at end of file diff --git a/rpm/redhat/main/non-common/postgresql-13/main/postgresql-13-llvm21.patch b/rpm/redhat/main/non-common/postgresql-13/main/postgresql-13-llvm21.patch deleted file mode 100644 index 9c5b24e95..000000000 --- a/rpm/redhat/main/non-common/postgresql-13/main/postgresql-13-llvm21.patch +++ /dev/null @@ -1,33 +0,0 @@ -From c11ac811a30db4159543f8399f3c0b723369fa20 Mon Sep 17 00:00:00 2001 -From: Peter Eisentraut -Date: Mon, 15 Sep 2025 08:13:21 +0200 -Subject: jit: fix build with LLVM-21 - -LLVM-21 renamed llvm::GlobalValue::getGUID() to -getGUIDAssumingExternalLinkage(), so add a version guard. - -Author: Holger Hoffstätte -Discussion: https://www.postgresql.org/message-id/flat/d25e6e4a-d1b4-84d3-2f8a-6c45b975f53d%40applied-asynchrony.com ---- - src/backend/jit/llvm/llvmjit_inline.cpp | 4 ++++ - 1 file changed, 4 insertions(+) - -diff --git a/src/backend/jit/llvm/llvmjit_inline.cpp b/src/backend/jit/llvm/llvmjit_inline.cpp -index 2764c3bbe2f..51b32cd9f94 100644 ---- a/src/backend/jit/llvm/llvmjit_inline.cpp -+++ b/src/backend/jit/llvm/llvmjit_inline.cpp -@@ -238,7 +238,11 @@ llvm_build_inline_plan(LLVMContextRef lc, llvm::Module *mod) - - llvm_split_symbol_name(symbolName.data(), &cmodname, &cfuncname); - -+#if LLVM_VERSION_MAJOR >= 21 -+ funcGUID = llvm::GlobalValue::getGUIDAssumingExternalLinkage(cfuncname); -+#else - funcGUID = llvm::GlobalValue::getGUID(cfuncname); -+#endif - - /* already processed */ - if (inlineState.processed) --- -cgit v1.2.3 - diff --git a/rpm/redhat/main/non-common/postgresql-13/main/postgresql-13.spec b/rpm/redhat/main/non-common/postgresql-13/main/postgresql-13.spec index 4d2caeffe..7777ca7dd 100644 --- a/rpm/redhat/main/non-common/postgresql-13/main/postgresql-13.spec +++ b/rpm/redhat/main/non-common/postgresql-13/main/postgresql-13.spec @@ -77,13 +77,13 @@ Summary: PostgreSQL client programs and libraries Name: %{sname}%{pgmajorversion} -Version: 13.22 +Version: 13.23 %if 0%{?suse_version} >= 1315 # SuSE upstream packages have release numbers like 150200.5.19.1 # which overrides our packages. Increase our release number on SuSE. -Release: 420007PGDG%{?dist} +Release: 420001PGDG%{?dist} %else -Release: 7PGDG%{?dist} +Release: 1PGDG%{?dist} %endif License: PostgreSQL Url: https://www.postgresql.org/ @@ -115,9 +115,6 @@ Patch1: %{sname}-%{pgmajorversion}-rpm-pgsql.patch Patch3: %{sname}-%{pgmajorversion}-conf.patch Patch5: %{sname}-%{pgmajorversion}-var-run-socket.patch Patch6: %{sname}-%{pgmajorversion}-perl-rpath.patch -%if 0%{?fedora} == 43 -Patch7: %{sname}-%{pgmajorversion}-llvm21.patch -%endif BuildRequires: perl glibc-devel bison flex >= 2.5.31 BuildRequires: gcc-c++ @@ -576,9 +573,6 @@ benchmarks. %patch -P 3 -p0 %patch -P 5 -p0 %patch -P 6 -p0 -%if 0%{?fedora} == 43 -%patch -P 7 -p1 -%endif %{__cp} -p %{SOURCE12} . @@ -1383,6 +1377,10 @@ fi %endif %changelog +* Tue Nov 11 2025 Devrim Gündüz - 13.23-1PGDG +- Update to 13.23, per changes described at + https://www.postgresql.org/docs/release/13.23/ + * Fri Nov 7 2025 Devrim Gunduz - 13.22-7PGDG - Build against OpenSSL 3 on SLES 15. -- 2.39.5