!44 update riscv64 support and sync with mainline rolling

From: @TexasOct 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2024-03-25 06:07:28 +00:00 committed by Gitee
commit c61d032140
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 8876 additions and 3419 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
Name: luajit Name: luajit
Version: 2.1.0 Version: 2.1.0
Release: 7 Release: 8
Summary: Just-In-Time Compiler for Lua Summary: Just-In-Time Compiler for Lua
License: MIT License: MIT
URL: http://luajit.org/ URL: http://luajit.org/
@ -10,7 +10,7 @@ Source0: http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
# Patches from https://github.com/LuaJit/LuaJIT.git # Patches from https://github.com/LuaJit/LuaJIT.git
# Generated from v2.1 branch against the 2.1.0-beta3 tag using # Generated from v2.1 branch against the 2.1.0-beta3 tag using
# git diff v2.1.0-beta3..v2.1 > luajit-2.1-update.patch # git diff v2.1.0-beta3..v2.1 > luajit-2.1-update.patch
Patch0001: luajit-2.1-224129a-update.patch Patch0001: luajit-2.1-d06beb0-update.patch
Patch0002: 0002-luajit-add-secure-compile-option-fstack.patch Patch0002: 0002-luajit-add-secure-compile-option-fstack.patch
Patch0003: add-riscv-support.patch Patch0003: add-riscv-support.patch
ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 riscv64 ExclusiveArch: %{arm} %{ix86} x86_64 %{mips} aarch64 riscv64
@ -36,7 +36,14 @@ Summary: Documents for luajit
Man pages and other related documents for luajit. Man pages and other related documents for luajit.
%prep %prep
%autosetup -n LuaJIT-2.1.0-beta3 -p1 %setup -q -n LuaJIT-2.1.0-beta3
%patch -P0001 -p1
%patch -P0002 -p1
# riscv64 arch patch
%ifarch riscv64
%patch -P0003 -p1
%endif
sed -i -e '/install -m/s/-m/-p -m/' Makefile sed -i -e '/install -m/s/-m/-p -m/' Makefile
@ -51,7 +58,6 @@ sed -i -e '/install -m/s/-m/-p -m/' Makefile
rm -rf _tmp_html ; mkdir _tmp_html rm -rf _tmp_html ; mkdir _tmp_html
cp -a doc _tmp_html/html cp -a doc _tmp_html/html
ln -s luajit-2.1.0-beta3 %{buildroot}%{_bindir}/luajit
%post %post
/sbin/ldconfig /sbin/ldconfig
@ -62,9 +68,9 @@ ln -s luajit-2.1.0-beta3 %{buildroot}%{_bindir}/luajit
%files %files
%doc README COPYRIGHT %doc README COPYRIGHT
%{_bindir}/%{name} %{_bindir}/%{name}
%{_bindir}/%{name}-2.1.0-beta3 %{_bindir}/%{name}-2.1.ROLLING
%{_libdir}/lib%{name}-*.so.* %{_libdir}/lib%{name}-*.so.*
%{_datadir}/%{name}-2.1.0-beta3/ %{_datadir}/%{name}-2.1/
%files devel %files devel
%doc _tmp_html/html/ %doc _tmp_html/html/
@ -77,6 +83,9 @@ ln -s luajit-2.1.0-beta3 %{buildroot}%{_bindir}/luajit
%{_mandir}/man1/%{name}.1* %{_mandir}/man1/%{name}.1*
%changelog %changelog
* Thu Mar 21 2024 TexasOct <TexasOct@isrc.iscas.ac.cn> - 2.1.0-8
- update riscv64 support and update to mainline d06beb04
* Wed Jul 19 2023 Jingwiw <wangjingwei@iscas.ac.cn> - 2.1.0-7 * Wed Jul 19 2023 Jingwiw <wangjingwei@iscas.ac.cn> - 2.1.0-7
- add riscv64 support - add riscv64 support