2 Commits

Author SHA256 Message Date
Reinhard Max
d0ce3570e0 Sync Factory 2026-02-17 09:55:31 +01:00
Reinhard Max
c2df52cb5f Merge remote-tracking branch 'origin/factory' into slfo-main 2026-01-22 12:28:19 +01:00
7 changed files with 26 additions and 54 deletions

View File

@@ -1,41 +0,0 @@
From 0dceba21d74f01e63aa690879b44808bbb74a9c3 Mon Sep 17 00:00:00 2001
From: Thomas Munro <tmunro@postgresql.org>
Date: Sat, 22 Nov 2025 20:51:16 +1300
Subject: [PATCH] jit: Adjust AArch64-only code for LLVM 21.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
LLVM 21 changed the arguments of RTDyldObjectLinkingLayer's
constructor, breaking compilation with the backported
SectionMemoryManager from commit 9044fc1d.
https://github.com/llvm/llvm-project/commit/cd585864c0bbbd74ed2a2b1ccc191eed4d1c8f90
Backpatch-through: 14
Author: Holger Hoffstätte <holger@applied-asynchrony.com>
Reviewed-by: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
Discussion: https://postgr.es/m/d25e6e4a-d1b4-84d3-2f8a-6c45b975f53d%40applied-asynchrony.com
---
src/backend/jit/llvm/llvmjit_wrap.cpp | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/backend/jit/llvm/llvmjit_wrap.cpp b/src/backend/jit/llvm/llvmjit_wrap.cpp
index da850d67ab647..c31a57b8563e8 100644
--- a/src/backend/jit/llvm/llvmjit_wrap.cpp
+++ b/src/backend/jit/llvm/llvmjit_wrap.cpp
@@ -53,7 +53,14 @@ DEFINE_SIMPLE_CONVERSION_FUNCTIONS(llvm::orc::ObjectLayer, LLVMOrcObjectLayerRef
LLVMOrcObjectLayerRef
LLVMOrcCreateRTDyldObjectLinkingLayerWithSafeSectionMemoryManager(LLVMOrcExecutionSessionRef ES)
{
+#if LLVM_VERSION_MAJOR >= 21
+ return wrap(new llvm::orc::RTDyldObjectLinkingLayer(
+ *unwrap(ES), [](const llvm::MemoryBuffer&) {
+ return std::make_unique<llvm::backport::SectionMemoryManager>(nullptr, true);
+ }));
+#else
return wrap(new llvm::orc::RTDyldObjectLinkingLayer(
*unwrap(ES), [] { return std::make_unique<llvm::backport::SectionMemoryManager>(nullptr, true); }));
+#endif
}
#endif

View File

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

View File

@@ -1 +0,0 @@
6deb08c23d03d77d8f8bd1c14049eeef64aef8968fd8891df2dfc0b42f178eac postgresql-16.11.tar.bz2

BIN
postgresql-16.12.tar.bz2 LFS Normal file

Binary file not shown.

View File

@@ -0,0 +1 @@
b253ee949303ef5df00e24002600da4fb37e5ccfafa78718c6ea6a936b4d97f1 postgresql-16.12.tar.bz2

View File

@@ -1,11 +1,29 @@
-------------------------------------------------------------------
Fri Dec 12 08:00:38 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
Wed Feb 11 18:49:03 UTC 2026 - Reinhard Max <max@suse.com>
- Update to 16.12:
* https://www.postgresql.org/about/news/p-3235/
* https://www.postgresql.org/docs/release/16.12/
* bsc#1258008, CVE-2026-2003: Guard against unexpected
dimensions of oidvector/int2vector
* bsc#1258009, CVE-2026-2004: Harden selectivity estimators
against being attached to operators that accept unexpected
data types.
* bsc#1258010, CVE-2026-2005: Fix buffer overrun in
contrib/pgcrypto's PGP decryption functions.
* bsc#1258011, CVE-2026-2006: Fix inadequate validation of
multibyte character lengths.
* obsoletes llvm-21-aarch64.patch
- Disown /var/lib/pgsql to support transactional updates.
-------------------------------------------------------------------
Tue Dec 9 08:23:44 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Fix build on aarch64 with upstream commit 0dceba2:
* llvm-21-aarch64.patch
-------------------------------------------------------------------
Mon Nov 24 16:44:38 UTC 2025 - Reinhard Max <max@suse.com>
Mon Nov 24 16:22:39 UTC 2025 - Reinhard Max <max@suse.com>
- Fix build with uring for post SLE15 code streams.

View File

@@ -1,7 +1,7 @@
#
# spec file for package postgresql16
#
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
%define pgmajor 16
%define pgminor 11
%define pgminor 12
### CUT HERE ###
%define pgname postgresql%pgmajor
@@ -218,8 +218,6 @@ Patch9: postgresql-var-run-socket.patch
%if %{with llvm}
Patch10: postgresql-llvm-optional.patch
Patch11: 0001-jit-Workaround-potential-datalayout-mismatch-on-s390.patch
# PATCH-FIX-UPSTREAM - commit 0dceba2
Patch12: llvm-21-aarch64.patch
%endif
URL: https://www.postgresql.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@@ -552,7 +550,6 @@ touch -r configure tmp
%if %{with llvm}
%patch -P 10
%patch -P 11
%patch -P 12 -p1
%endif
touch -r tmp configure
rm tmp
@@ -688,7 +685,6 @@ find %buildroot -type f -cnewer flag -printf "/%%P\n" |
grep -v -e %_docdir -e %pgbindir -e %pgincludedir -e %pglibdir/bitcode \
> contrib.files
rm flag
install -d -m 750 %buildroot/var/lib/pgsql
install -d -m 755 %buildroot%pgdocdir
cp doc/KNOWN_BUGS doc/MISSING_FEATURES COPYRIGHT \
README* HISTORY %buildroot%pgdocdir
@@ -956,7 +952,6 @@ fi
%pglibdir/euc2004_sjis2004.so
%pglibdir/libpqwalreceiver.so
%pgextensiondir/plpgsql*
%attr(750,postgres,postgres) %dir /var/lib/pgsql
%if %{with llvm}
%dir %pglibdir/bitcode