add riscv jit support backport

(cherry picked from commit 09851d3e147189b202631a5b492203a9356fe065)
This commit is contained in:
TexasOct 2024-04-08 23:48:56 +08:00 committed by openeuler-sync-bot
parent b95755ab36
commit 3262bf0567
2 changed files with 3526 additions and 4 deletions

3511
add-riscv-jit-backport.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
Name: pcre Name: pcre
Version: 8.45 Version: 8.45
Release: 5 Release: 6
Summary: Perl Compatible Regular Expressions Summary: Perl Compatible Regular Expressions
## Source package only: ## Source package only:
# INSTALL: FSFAP # INSTALL: FSFAP
@ -26,7 +26,7 @@ Summary: Perl Compatible Regular Expressions
License: BSD License: BSD
URL: http://www.pcre.org/ URL: http://www.pcre.org/
Source0: https://sourceforge.net/projects/pcre/files/%{name}/%{version}/%{name}-%{version}.tar.bz2 Source0: https://sourceforge.net/projects/pcre/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
Patch0001: add-riscv-jit-backport.patch
BuildRequires: readline-devel autoconf automake coreutils BuildRequires: readline-devel autoconf automake coreutils
BuildRequires: gcc gcc-c++ glibc-common libtool make BuildRequires: gcc gcc-c++ glibc-common libtool make
@ -69,13 +69,18 @@ Requires: man
The %{name}-help package contains doc files for %{name}. The %{name}-help package contains doc files for %{name}.
%prep %prep
%autosetup -n %{name}-%{version} -p1 %setup -n %{name}-%{version}
%ifarch riscv64
%patch -P0001 -p1
%endif
%build %build
libtoolize -cf libtoolize -cf
autoreconf -vif autoreconf -vif
%configure \ %configure \
%ifarch riscv64 sw_64 loongarch64 %ifarch sw_64 loongarch64
--disable-jit \ --disable-jit \
%else %else
--enable-jit \ --enable-jit \
@ -116,6 +121,12 @@ make check VERBOSE=yes
%{_mandir}/man3/* %{_mandir}/man3/*
%changelog %changelog
* Tue Apr 30 2024 TexasOct <xinhao.oerv@isrc.iscas.ac.cn> - 8.45-6
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:add RISCV support backport
* Sat Nov 26 2022 yangmingtai <yangmingtai@huawei.com> - 8.45-5 * Sat Nov 26 2022 yangmingtai <yangmingtai@huawei.com> - 8.45-5
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA