From 0e79a44e5d1169f5beac8fa2e1f3a633459bb080b068b72f505e8c5db4b588e6 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 19 May 2021 16:13:51 +0000 Subject: [PATCH] - bsc#1185952: llvm12 breaks PostgreSQL 11 and 12 on s390x. Use llvm11 as a workaround. OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql13?expand=0&rev=24 --- postgresql13.changes | 6 ++++++ postgresql13.spec | 8 ++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/postgresql13.changes b/postgresql13.changes index e75b3e4..743a86e 100644 --- a/postgresql13.changes +++ b/postgresql13.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 19 15:24:24 UTC 2021 - Reinhard Max + +- bsc#1185952: llvm12 breaks PostgreSQL 11 and 12 on s390x. + Use llvm11 as a workaround. + ------------------------------------------------------------------- Tue May 11 13:50:14 UTC 2021 - Reinhard Max diff --git a/postgresql13.spec b/postgresql13.spec index d697b5d..dc152fe 100644 --- a/postgresql13.spec +++ b/postgresql13.spec @@ -91,7 +91,6 @@ BuildRequires: %libpq %if 0%{?suse_version} >= 1500 && %pgsuffix >= 11 && %pgsuffix < 90 %bcond_without llvm %else -# LLVM is currently unsupported on SLE, so don't use it %bcond_with llvm %endif %endif @@ -116,10 +115,15 @@ BuildRequires: libicu-devel BuildRequires: libselinux-devel %endif %if %{with llvm} -BuildRequires: clang BuildRequires: gcc-c++ +%ifarch s390x +BuildRequires: clang11 +BuildRequires: llvm11-devel +%else +BuildRequires: clang BuildRequires: llvm-devel %endif +%endif BuildRequires: libxslt-devel BuildRequires: openldap2-devel BuildRequires: openssl-devel