[packages/postgresql/POSTGRESQL_11] upstream patch to fix build with llvm 11

atler atler at pld-linux.org
Sat Jan 2 11:47:18 CET 2021


commit 5e7e22ba646f62abc18c72a9035d029c08e49b0d
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Jan 2 11:46:20 2021 +0100

    upstream patch to fix build with llvm 11

 llvm11.patch    | 28 ++++++++++++++++++++++++++++
 postgresql.spec |  2 ++
 2 files changed, 30 insertions(+)
---
diff --git a/postgresql.spec b/postgresql.spec
index 498452c..06b4744 100644
--- a/postgresql.spec
+++ b/postgresql.spec
@@ -56,6 +56,7 @@ Patch4:		%{name}-disable_horology_test.patch
 Patch5:		%{name}-heimdal.patch
 Patch6:		%{name}-link.patch
 Patch7:		llvm10.patch
+Patch8:		llvm11.patch
 URL:		http://www.postgresql.org/
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake
@@ -793,6 +794,7 @@ Różne moduły dołączone do PostgreSQL-a.
 %patch5 -p1
 %patch6 -p1
 %patch7 -p1
+%patch8 -p1
 
 # force rebuild of bison/flex files
 find src -name \*.l -o -name \*.y | xargs touch
diff --git a/llvm11.patch b/llvm11.patch
new file mode 100644
index 0000000..0f16a8d
--- /dev/null
+++ b/llvm11.patch
@@ -0,0 +1,28 @@
+From c001c115bcb2accddc23a25c605886e01475db4f Mon Sep 17 00:00:00 2001
+From: Andres Freund <andres at anarazel.de>
+Date: Thu, 28 May 2020 15:08:12 -0700
+Subject: [PATCH] llvmjit: Fix building against LLVM 11 by removing unnecessary
+ include.
+
+LLVM has removed this header, in the branch that will become llvm
+11. But as it turns out we didn't actually need it, so just remove it.
+
+Author: Jesse Zhang <sbjesse at gmail.com>
+Discussion: https://postgr.es/m/CAGf+fX7bvtP0YXMu7pOsu_NwhxW6dArTkxb=jt7M2-UJkyJ_3g@mail.gmail.com
+Backpatch: 11, where JIT support using llvm was introduced.
+---
+ src/backend/jit/llvm/llvmjit_inline.cpp | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/backend/jit/llvm/llvmjit_inline.cpp b/src/backend/jit/llvm/llvmjit_inline.cpp
+index aa0473dacd22..c489a632ff9e 100644
+--- a/src/backend/jit/llvm/llvmjit_inline.cpp
++++ b/src/backend/jit/llvm/llvmjit_inline.cpp
+@@ -56,7 +56,6 @@ extern "C"
+ #include <llvm/Support/Error.h>
+ #endif
+ #include <llvm/IR/Attributes.h>
+-#include <llvm/IR/CallSite.h>
+ #include <llvm/IR/DebugInfo.h>
+ #include <llvm/IR/IntrinsicInst.h>
+ #include <llvm/IR/IRBuilder.h>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/postgresql.git/commitdiff/5e7e22ba646f62abc18c72a9035d029c08e49b0d



More information about the pld-cvs-commit mailing list