fix Out of Memory bug on RISCV

(cherry picked from commit 1b7c16ad5f09c4f2410c097186b8c73445de69ae)
This commit is contained in:
李子建 2025-04-28 17:45:36 +08:00 committed by openeuler-sync-bot
parent 2272b4da08
commit 935fa9d8a7

View File

@ -1,6 +1,6 @@
Name: mxparser Name: mxparser
Version: 1.2.2 Version: 1.2.2
Release: 1 Release: 2
License: xpp License: xpp
Summary: MXParser is a fork of xpp3_min 1.1.7 containing only the parser with merged changes of the Plexus fork. Summary: MXParser is a fork of xpp3_min 1.1.7 containing only the parser with merged changes of the Plexus fork.
URL: https://github.com/x-stream/%{name} URL: https://github.com/x-stream/%{name}
@ -33,6 +33,11 @@ Help documents for mxparser.
%pom_xpath_set 'pom:project/pom:properties/pom:version.java.test.target' 1.8 %pom_xpath_set 'pom:project/pom:properties/pom:version.java.test.target' 1.8
%build %build
%if "%_arch" == "riscv64"
export JAVA_TOOL_OPTIONS="-Xmx4g"
%endif
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 %mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%install %install
@ -45,6 +50,9 @@ Help documents for mxparser.
%files help -f .mfiles-javadoc %files help -f .mfiles-javadoc
%changelog %changelog
* Mon Apr 28 2025 lizijian <zijian.oerv@isrc.iscas.ac.cn> - 1.2.2-2
- Enlarge heap size to pass test on RISCV architecture
* Wed Aug 21 2024 yaoxin <yao_xin001@hoperun.com> - 1.2.2-1 * Wed Aug 21 2024 yaoxin <yao_xin001@hoperun.com> - 1.2.2-1
- Update to 1.2.2: - Update to 1.2.2:
* XML declaration must produce a START_DOCUMENT event. * XML declaration must produce a START_DOCUMENT event.