From 7a141e8ae159af729184d77c5697ad3f595b08fb Mon Sep 17 00:00:00 2001 From: Honza Horak Date: Mon, 14 Jun 2021 15:24:48 +0200 Subject: [PATCH] Introduce postgresql_server_llvmjit macro This new postgresql_server_llvmjit macro allows extensions to use whatever server does in regards to llvmjit plugin. Typically, the same spec file works for a postgresql with and also without llvmjit enabled, because the byte-compiled files are packaged based on this macro value. The macro includes 1 if the postgresql server is compiled with the llvmjit support and 0 if without. Related: #1951268 --- postgresql.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/postgresql.spec b/postgresql.spec index 2a475f4..ad77571 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -765,6 +765,10 @@ rm $RPM_BUILD_ROOT/%{_datadir}/man/man1/ecpg.1 EOF %endif +# Let plugins use the same llvmjit settings as server has +cat <> $RPM_BUILD_ROOT%macrosdir/macros.%name +%%postgresql_server_llvmjit %llvmjit +EOF %if %test # tests. There are many files included here that are unnecessary, @@ -1218,6 +1222,9 @@ make -C postgresql-setup-%{setup_version} check - Build with a private libpq Resolves: #1967918 (also discussed in Fedora #1905584) +- Introduce postgresql_server_llvmjit macro to follow jit config of a server in + plugins + Related: #1951268 * Wed Jun 16 2021 Mohan Boddu - 13.2-7 - Rebuilt for RHEL 9 BETA for openssl 3.0