From bcde5ecff3de5e9977eb1e13ad32563bb8a7aef3 Mon Sep 17 00:00:00 2001 From: David Abdurachmanov Date: Wed, 22 Mar 2023 12:12:20 +0200 Subject: [PATCH] Enable riscv64 Signed-off-by: David Abdurachmanov --- postgresql.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/postgresql.spec b/postgresql.spec index 5062238..aab5ae7 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -32,7 +32,12 @@ %{!?beta:%global beta 0} %{!?test:%global test 1} +%ifnarch riscv64 %{!?llvmjit:%global llvmjit 1} +%else +# Disable LLVM on riscv64 until LLVM 16 lands +%{!?llvmjit:%global llvmjit 0} +%endif %{!?external_libpq:%global external_libpq 0} %{!?upgrade:%global upgrade 1} %{!?plpython3:%global plpython3 1} @@ -65,7 +70,7 @@ Summary: PostgreSQL client programs Name: postgresql %global majorversion 15 Version: %{majorversion}.1 -Release: 2%{?dist} +Release: 2.0.riscv64%{?dist} # The PostgreSQL license is very similar to other MIT licenses, but the OSI # recognizes it as an independent license, so we do as well. @@ -467,7 +472,7 @@ find . -type f -name .gitignore | xargs rm %build # Avoid LTO on armv7hl as it runs out of memory -%ifarch armv7hl s390x +%ifarch armv7hl s390x riscv64 %define _lto_cflags %{nil} %endif # fail quickly and obviously if user tries to build as root @@ -1263,6 +1268,10 @@ make -C postgresql-setup-%{setup_version} check %changelog +* Tue Mar 22 2023 David Abdurachmanov - 15.1-2.0.riscv64 +- Disable LTO on riscv64 to avoid large memory usage +- Disable LLVM JIT on riscv64 until LLVM 16 is available + * Fri Jan 20 2023 Fedora Release Engineering - 15.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild