From a0087b9c879b5af33a8b2485628c47a2388106f4 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Tue, 9 May 2023 12:49:36 +0800 Subject: [PATCH] fix build error for loongarch64 Signed-off-by: Wenlong Zhang --- erlang.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/erlang.spec b/erlang.spec index 0b70d8d..8e67d96 100644 --- a/erlang.spec +++ b/erlang.spec @@ -1,7 +1,7 @@ %global need_bootstrap_set 0 %{!?need_bootstrap: %global need_bootstrap %{need_bootstrap_set}} %bcond_with doc -%ifarch %{arm} %{ix86} x86_64 ppc %{power64} +%ifarch %{arm} %{ix86} x86_64 ppc %{power64} loongarch64 %global __with_hipe 1 %endif %global __with_emacs 1 @@ -11,7 +11,7 @@ %global __with_wxwidgets 1 Name: erlang Version: 23.3.4.9 -Release: 3 +Release: 4 Summary: General-purpose programming language and runtime environment License: ASL 2.0 URL: https://www.erlang.org @@ -1474,7 +1474,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %dir %{_libdir}/erlang/lib/wx-*/ %{_libdir}/erlang/lib/wx-*/ebin %{_libdir}/erlang/lib/wx-*/include +%ifnarch loongarch64 %{_libdir}/erlang/lib/wx-*/priv +%endif %{_libdir}/erlang/lib/wx-*/src %if %{with doc} %{_mandir}/man3/gl.* @@ -1725,6 +1727,9 @@ useradd -r -g epmd -d /dev/null -s /sbin/nologin \ %endif %changelog +* Mon May 8 2023 Wenlong Zhang - 23.3.4.9-4 +- fix build error for loongarch64 + * Fri Feb 10 2023 yaoxin - 23.3.4.9-3 - Fix build failed due to emacs update to 28.2 -- Gitee