From 3725fe00fea23322965aa6833e7aa957ad3403d0 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 18 Apr 2023 15:58:43 +0800 Subject: [PATCH] Fix build error for loongarch64 Signed-off-by: Wenlong Zhang --- postgresql.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/postgresql.spec b/postgresql.spec index 58c4a86..9d0c556 100644 --- a/postgresql.spec +++ b/postgresql.spec @@ -1,6 +1,6 @@ %{!?beta:%global beta 0} %{!?test:%global test 1} -%ifarch riscv64 +%ifarch riscv64 loongarch64 # Fail to pass tests on riscv64 %{!?llvmjit:%global llvmjit 0} %else @@ -32,7 +32,7 @@ Summary: PostgreSQL client programs Name: postgresql %global majorversion 13 Version: %{majorversion}.3 -Release: 7 +Release: 8 # The PostgreSQL license is very similar to other MIT licenses, but the OSI # recognizes it as an independent license, so we do as well. @@ -453,7 +453,7 @@ export CFLAGS # since that's still considered the default plpython version. common_configure_options=' --disable-rpath -%ifarch riscv64 +%ifarch riscv64 loongarch64 --disable-spinlocks %endif %if %beta @@ -645,7 +645,7 @@ upgrade_configure () --host=%{_host} \ --prefix=%prev_prefix \ --disable-rpath \ -%ifarch riscv64 +%ifarch riscv64 loongarch64 --disable-spinlocks \ %endif %if %beta @@ -1295,6 +1295,9 @@ make -C postgresql-setup-%{setup_version} check %changelog +* Tue Apr 18 2023 Wenlong Zhang - 13.3-8 +- Fix build error for loongarch64 + * Tue Mar 7 2023 dillon chen - 13.3-7 - Fix issue: confilct between libpq-devel and postgresql-devel - guess init spec from redhat -- Gitee