[packages/vtk] - workaround java build error on x32
baggins
baggins at pld-linux.org
Mon Jan 23 07:25:44 CET 2017
commit 2ed4fbd4c298acb083fd155dbfa6a53041214d5a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Jan 23 07:25:17 2017 +0100
- workaround java build error on x32
vtk.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/vtk.spec b/vtk.spec
index ee338db..ef7e15b 100644
--- a/vtk.spec
+++ b/vtk.spec
@@ -14,10 +14,6 @@
%bcond_with system_proj # use system PROJ.4 (needs 4.3 with exposed internals, not ready for 4.4+)
%bcond_with system_gl2ps # use system gl2ps (VTK currently is carrying local modifications to gl2ps)
-%ifarch x32
-%undefine with_java
-%endif
-
Summary: Toolkit for 3D computer graphics, image processing, and visualization
Summary(pl.UTF-8): Zestaw narzędzi do trójwymiarowej grafiki, przetwarzania obrazu i wizualizacji
Name: vtk
@@ -335,6 +331,10 @@ export CFLAGS="%{rpmcflags} -D_UNICODE -DHAVE_UINTPTR_T"
export CXXFLAGS="%{rpmcxxflags} -D_UNICODE -DHAVE_UINTPTR_T"
%if %{with java}
export JAVA_HOME=%{java_home}
+%ifarch x32
+# getting "java.lang.OutOfMemoryError: Java heap space" during the build
+export JAVA_TOOL_OPTIONS=-Xmx2048m
+%endif
%endif
# handle cmake & ccache
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/vtk.git/commitdiff/2ed4fbd4c298acb083fd155dbfa6a53041214d5a
More information about the pld-cvs-commit
mailing list