View | Details | Raw Unified | Return to bug 31794
Collapse All | Expand All

(-)a/scilab.spec (-2 / +12 lines)
Lines 23-28 Patch1: scilab-5.4.0-find-jhall.patch Link Here
23
Patch2:  scilab-5.4.0-find-jgoodies-looks.patch
23
Patch2:  scilab-5.4.0-find-jgoodies-looks.patch
24
Patch3:  scilab-5.4.0-find-xml-apis-ext.patch
24
Patch3:  scilab-5.4.0-find-xml-apis-ext.patch
25
Patch4:	 scilab-fix-make-doc-ja_JP.patch
25
Patch4:	 scilab-fix-make-doc-ja_JP.patch
26
Patch5:  scilab-5.5.2-jogl-2.3.patch
27
Patch6:  scilab-5.5.2-batik-1.8.patch
28
Patch7:  scilab-5.5.2-fop-2.0.patch
29
Patch8:  scilab-5.5.2-xmlgraphics-commons-2.0.patch
30
Patch9:  scilab-5.5.2-disable-doclint.patch
26
31
27
URL: http://www.scilab.org
32
URL: http://www.scilab.org
28
AutoReq: yes, noshell
33
AutoReq: yes, noshell
Lines 48-54 BuildRequires: ant Link Here
48
53
49
BuildRequires: flexdock >= 1.0
54
BuildRequires: flexdock >= 1.0
50
BuildRequires: gluegen2
55
BuildRequires: gluegen2
51
BuildRequires: jogl2 >= 2.2
56
BuildRequires: jogl2 >= 2.3
52
BuildRequires: libGL-devel
57
BuildRequires: libGL-devel
53
BuildRequires: jrosetta >= 1.0.4
58
BuildRequires: jrosetta >= 1.0.4
54
59
Lines 101-106 BuildRequires: libcurl-devel Link Here
101
BuildRequires: fonts-ttf-liberation
106
BuildRequires: fonts-ttf-liberation
102
107
103
Requires: flexdock jrosetta
108
Requires: flexdock jrosetta
109
Requires: scirenderer saxon
104
Requires: apache-commons-logging
110
Requires: apache-commons-logging
105
Requires: javahelp2
111
Requires: javahelp2
106
Requires: jlatexmath >= 1.0.2
112
Requires: jlatexmath >= 1.0.2
Lines 134-139 tar xf %SOURCE1 Link Here
134
%patch2 -p2
140
%patch2 -p2
135
%patch3 -p2
141
%patch3 -p2
136
%patch4 -p1
142
%patch4 -p1
143
%patch5 -p2
144
%patch6 -p2
145
%patch7 -p2
146
%patch8 -p2
147
%patch9 -p2
137
148
138
# Update saxon dependency
149
# Update saxon dependency
139
# http://bugzilla.scilab.org/show_bug.cgi?id=8479
150
# http://bugzilla.scilab.org/show_bug.cgi?id=8479
Lines 194-200 rm -f %buildroot%_xdgmimedir/packages/scilab.xml Link Here
194
- New version (ALT #31794)
205
- New version (ALT #31794)
195
- Build from upstream git repository
206
- Build from upstream git repository
196
- Require version-independed JDK
207
- Require version-independed JDK
197
- Disable scirenderer
198
208
199
* Sun Nov 16 2014 Andrey Cherepanov <cas@altlinux.org> 5.5.1-alt1
209
* Sun Nov 16 2014 Andrey Cherepanov <cas@altlinux.org> 5.5.1-alt1
200
- New version
210
- New version
(-)a/scilab-5.5.2-batik-1.8.patch (+13 lines)
Line 0 Link Here
1
diff --git a/scilab/modules/graph/src/java/org/scilab/modules/graph/utils/ScilabGraphUtils.java b/scilab/modules/graph/src/java/org/scilab/modules/graph/utils/ScilabGraphUtils.java
2
index ddf6d1b..3613193 100644
3
--- a/scilab/modules/graph/src/java/org/scilab/modules/graph/utils/ScilabGraphUtils.java
4
+++ b/scilab/modules/graph/src/java/org/scilab/modules/graph/utils/ScilabGraphUtils.java
5
@@ -28,7 +28,7 @@ import org.apache.batik.bridge.DocumentLoader;
6
 import org.apache.batik.bridge.GVTBuilder;
7
 import org.apache.batik.bridge.UserAgent;
8
 import org.apache.batik.bridge.UserAgentAdapter;
9
-import org.apache.batik.dom.svg.SAXSVGDocumentFactory;
10
+import org.apache.batik.anim.dom.SAXSVGDocumentFactory;
11
 import org.apache.batik.gvt.GraphicsNode;
12
 import org.apache.batik.util.XMLResourceDescriptor;
13
 import org.scilab.forge.jlatexmath.ParseException;
(-)a/scilab-5.5.2-disable-doclint.patch (+20 lines)
Line 0 Link Here
1
diff --git a/scilab/Makefile.in b/scilab/Makefile.in
2
index 5f80c2a..0b7fdd5 100644
3
--- a/scilab/Makefile.in
4
+++ b/scilab/Makefile.in
5
@@ -2100,6 +2100,7 @@ check-libstdcpp-dep:
6
 # module
7
 javadoc:
8
 	$(JAVADOC) -noindex -nohelp -nonavbar -notree \
9
+	-Xdoclint:none \
10
 	-d $(top_builddir)/modules/javasci/javadoc \
11
 	-sourcepath $(top_srcdir)/modules/javasci/src/java:$(top_srcdir)/modules/types/src/java::$(top_srcdir)/modules/localization/src/java \
12
 	org.scilab.modules.javasci org.scilab.modules.types
13
@@ -2113,6 +2114,7 @@ javadoc-all:
14
 		LISTPKG="$$LISTPKG org.scilab.modules.$$MODULE"; \
15
 	done; \
16
 	$(JAVADOC) \
17
+	-Xdoclint:none \
18
 	-d $(top_builddir)/javadocall \
19
 	-sourcepath $$LISTMODULES \
20
 	$$LISTPKG
(-)a/scilab-5.5.2-fop-2.0.patch (+34 lines)
Line 0 Link Here
1
diff --git a/scilab/modules/helptools/src/java/org/scilab/modules/helptools/FopConverter.java b/scilab/modules/helptools/src/java/org/scilab/modules/helptools/FopConverter.java
2
index c34f4aa..ed2df07 100644
3
--- a/scilab/modules/helptools/src/java/org/scilab/modules/helptools/FopConverter.java
4
+++ b/scilab/modules/helptools/src/java/org/scilab/modules/helptools/FopConverter.java
5
@@ -43,10 +43,10 @@ public class FopConverter extends ContainerConverter {
6
         String fileName = outputDirectory + "/" + baseName + "." + format.name().toLowerCase();
7
 
8
         try {
9
-            FopFactory fopFactory = FopFactory.newInstance();
10
+            final File configuration = new File(System.getenv("SCI") + "/modules/helptools/etc/fopconf.xml");
11
+            FopFactory fopFactory = FopFactory.newInstance(configuration);
12
             fopFactory.addElementMapping(new JLaTeXMathElementMapping());
13
             fopFactory.getXMLHandlerRegistry().addXMLHandler(new JLaTeXMathXMLHandler());
14
-            fopFactory.setUserConfig(new File(System.getenv("SCI") + "/modules/helptools/etc/fopconf.xml"));
15
 
16
             // Step 3: Construct fop with desired output format
17
             OutputStream out = new BufferedOutputStream(new FileOutputStream(fileName));
18
diff --git a/scilab/modules/scinotes/src/java/org/scilab/modules/scinotes/utils/CodeExporter.java b/scilab/modules/scinotes/src/java/org/scilab/modules/scinotes/utils/CodeExporter.java
19
index bf8afd3..5ff6004 100644
20
--- a/scilab/modules/scinotes/src/java/org/scilab/modules/scinotes/utils/CodeExporter.java
21
+++ b/scilab/modules/scinotes/src/java/org/scilab/modules/scinotes/utils/CodeExporter.java
22
@@ -114,11 +114,10 @@ public class CodeExporter extends FOCodeConverter {
23
      * @param format the page format
24
      */
25
     public void convert(String code, int[] lineNumberArray, String fileName, String type, String title, PageFormat format) {
26
-        FopFactory fopFactory = FopFactory.newInstance();
27
         OutputStream out = null;
28
 
29
         try {
30
-            fopFactory.setUserConfig(new File(ScilabConstants.SCI + "/modules/helptools/etc/fopconf.xml"));
31
+            FopFactory fopFactory = FopFactory.newInstance(new File(ScilabConstants.SCI + "/modules/helptools/etc/fopconf.xml"));
32
             FOUserAgent userAgent = fopFactory.newFOUserAgent();
33
             userAgent.setProducer(CREATOR);
34
             userAgent.setTitle(title);
(-)a/scilab-5.5.2-jogl-2.3.patch (+482 lines)
Line 0 Link Here
1
diff --git a/scilab/configure b/scilab/configure
2
index 13eafb1..a9a3eff 100755
3
--- a/scilab/configure
4
+++ b/scilab/configure
5
@@ -14264,7 +14264,7 @@ $as_echo_n "checking jogl2... " >&6; }
6
 // #line 14264 "configure"
7
 import java.util.regex.Pattern;
8
 
9
-import javax.media.opengl.glu.GLUnurbs;
10
+import jogamp.opengl.x11.glx.GLX;
11
 
12
 public class conftest {
13
     public static void main(String[] argv) {
14
@@ -14350,10 +14350,10 @@ $as_echo "$jar_resolved" >&6; }
15
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16
 $as_echo "no" >&6; }
17
       if test "" = "yes"; then
18
-         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jogl2 used by Scilab 3D rendering - Version 2.0 (looking for package javax.media.opengl.glu.GLUnurbs)" >&5
19
-$as_echo "$as_me: WARNING: Could not find or use the Java package/jar jogl2 used by Scilab 3D rendering - Version 2.0 (looking for package javax.media.opengl.glu.GLUnurbs)" >&2;}
20
+         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar jogl2 used by Scilab 3D rendering - Version 2.3 (looking for package jogamp.opengl.x11.glx.GLX)" >&5
21
+$as_echo "$as_me: WARNING: Could not find or use the Java package/jar jogl2 used by Scilab 3D rendering - Version 2.3 (looking for package jogamp.opengl.x11.glx.GLX)" >&2;}
22
       else
23
-          as_fn_error $? "Could not find or use the Java package/jar jogl2 used by Scilab 3D rendering - Version 2.0 (looking for package javax.media.opengl.glu.GLUnurbs)" "$LINENO" 5
24
+          as_fn_error $? "Could not find or use the Java package/jar jogl2 used by Scilab 3D rendering - Version 2.3 (looking for package jogamp.opengl.x11.glx.GLX)" "$LINENO" 5
25
       fi
26
     fi
27
 
28
@@ -14649,7 +14649,7 @@ $as_echo_n "checking gluegen2-rt... " >&6; }
29
 // #line 14649 "configure"
30
 import java.util.regex.Pattern;
31
 
32
-import jogamp.common.os.MachineDescriptionRuntime;
33
+import com.jogamp.common.os.Platform;
34
 
35
 public class conftest {
36
     public static void main(String[] argv) {
37
@@ -14735,10 +14735,10 @@ $as_echo "$jar_resolved" >&6; }
38
       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39
 $as_echo "no" >&6; }
40
       if test "" = "yes"; then
41
-         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar gluegen2-rt used by Scilab 3D rendering (looking for package jogamp.common.os.MachineDescriptionRuntime)" >&5
42
-$as_echo "$as_me: WARNING: Could not find or use the Java package/jar gluegen2-rt used by Scilab 3D rendering (looking for package jogamp.common.os.MachineDescriptionRuntime)" >&2;}
43
+         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find or use the Java package/jar gluegen2-rt used by Scilab 3D rendering (looking for package com.jogamp.common.os.Platform)" >&5
44
+$as_echo "$as_me: WARNING: Could not find or use the Java package/jar gluegen2-rt used by Scilab 3D rendering (looking for package com.jogamp.common.os.Platform)" >&2;}
45
       else
46
-          as_fn_error $? "Could not find or use the Java package/jar gluegen2-rt used by Scilab 3D rendering (looking for package jogamp.common.os.MachineDescriptionRuntime)" "$LINENO" 5
47
+          as_fn_error $? "Could not find or use the Java package/jar gluegen2-rt used by Scilab 3D rendering (looking for package com.jogamp.common.os.Platform)" "$LINENO" 5
48
       fi
49
     fi
50
 
51
diff --git a/scilab/configure.ac b/scilab/configure.ac
52
index 433059f..c6eb9c5 100644
53
--- a/scilab/configure.ac
54
+++ b/scilab/configure.ac
55
@@ -912,7 +912,7 @@ if test "$with_javasci" != no -o "$with_gui" != no -o "$enable_build_help" != no
56
                 AC_SUBST(SKINLF)
57
 
58
                 # JOGL 2
59
-                AC_JAVA_CHECK_PACKAGE([jogl2],[javax.media.opengl.glu.GLUnurbs],[Scilab 3D rendering - Version 2.0])
60
+                AC_JAVA_CHECK_PACKAGE([jogl2],[jogamp.opengl.opengl.glu.GLUnurbs],[Scilab 3D rendering - Version 2.3])
61
                 JOGL2=$PACKAGE_JAR_FILE
62
                 AC_SUBST(JOGL2)
63
 
64
@@ -943,7 +943,7 @@ interface for JOGL2 - or libGL (OpenGL library) are installed and if the version
65
                 fi
66
 
67
                 # JoGL Native <=> Java connector
68
-                AC_JAVA_CHECK_PACKAGE([gluegen2-rt],[jogamp.common.os.MachineDescriptionRuntime],[Scilab 3D rendering])
69
+                AC_JAVA_CHECK_PACKAGE([gluegen2-rt],[com.jogamp.common.os.Platform],[Scilab 3D rendering])
70
                 GLUEGEN2_RT=$PACKAGE_JAR_FILE
71
                 AC_SUBST(GLUEGEN2_RT)
72
 
73
diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/SwingView.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/SwingView.java
74
index c1434c0..d91cf1b 100644
75
--- a/scilab/modules/gui/src/java/org/scilab/modules/gui/SwingView.java
76
+++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/SwingView.java
77
@@ -84,10 +84,10 @@ import java.util.Map;
78
 import java.util.Set;
79
 import java.util.UUID;
80
 
81
-import javax.media.opengl.GL;
82
-import javax.media.opengl.GLCapabilities;
83
-import javax.media.opengl.GLProfile;
84
-import javax.media.opengl.awt.GLCanvas;
85
+import com.jogamp.opengl.GL;
86
+import com.jogamp.opengl.GLCapabilities;
87
+import com.jogamp.opengl.GLProfile;
88
+import com.jogamp.opengl.awt.GLCanvas;
89
 import javax.swing.JComponent;
90
 import javax.swing.JSeparator;
91
 import javax.swing.SwingUtilities;
92
diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/ScilabBridge.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/ScilabBridge.java
93
index dc872e5..2bc7d4d 100644
94
--- a/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/ScilabBridge.java
95
+++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/ScilabBridge.java
96
@@ -20,7 +20,7 @@ import java.awt.Cursor;
97
 import java.awt.Font;
98
 import java.awt.image.BufferedImage;
99
 
100
-import javax.media.opengl.GL;
101
+import com.jogamp.opengl.GL;
102
 
103
 import org.scilab.modules.gui.canvas.Canvas;
104
 import org.scilab.modules.gui.canvas.ScilabCanvas;
105
diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvas.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvas.java
106
index 6554a33..0cb580f 100644
107
--- a/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvas.java
108
+++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvas.java
109
@@ -32,8 +32,8 @@ import java.awt.event.MouseListener;
110
 import java.awt.event.MouseMotionListener;
111
 import java.awt.image.BufferedImage;
112
 
113
-import javax.media.opengl.GL;
114
-import javax.media.opengl.GLAutoDrawable;
115
+import com.jogamp.opengl.GL;
116
+import com.jogamp.opengl.GLAutoDrawable;
117
 import javax.swing.JPanel;
118
 
119
 import org.scilab.forge.scirenderer.Canvas;
120
diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java
121
index 3c5fc99..dc4ad24 100644
122
--- a/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java
123
+++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/canvas/SwingScilabCanvasImpl.java
124
@@ -19,12 +19,12 @@ import java.awt.HeadlessException;
125
 import java.util.Calendar;
126
 import java.util.StringTokenizer;
127
 
128
-import javax.media.opengl.GL;
129
-import javax.media.opengl.GLCapabilities;
130
-import javax.media.opengl.GLException;
131
-import javax.media.opengl.GLProfile;
132
-import javax.media.opengl.awt.GLCanvas;
133
-import javax.media.opengl.awt.GLJPanel;
134
+import com.jogamp.opengl.GL;
135
+import com.jogamp.opengl.GLCapabilities;
136
+import com.jogamp.opengl.GLException;
137
+import com.jogamp.opengl.GLProfile;
138
+import com.jogamp.opengl.awt.GLCanvas;
139
+import com.jogamp.opengl.awt.GLJPanel;
140
 
141
 import org.scilab.modules.action_binding.InterpreterManagement;
142
 import org.scilab.modules.commons.OS;
143
diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/Canvas.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/Canvas.java
144
index e7255f8..06d3dc7 100644
145
--- a/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/Canvas.java
146
+++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/Canvas.java
147
@@ -14,7 +14,7 @@ package org.scilab.modules.gui.canvas;
148
 
149
 import java.awt.image.BufferedImage;
150
 
151
-import javax.media.opengl.GL;
152
+import com.jogamp.opengl.GL;
153
 
154
 import org.scilab.modules.gui.dockable.Dockable;
155
 
156
diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/ScilabCanvas.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/ScilabCanvas.java
157
index 46af840..fe34230 100644
158
--- a/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/ScilabCanvas.java
159
+++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/ScilabCanvas.java
160
@@ -16,7 +16,7 @@ package org.scilab.modules.gui.canvas;
161
 
162
 import java.awt.image.BufferedImage;
163
 
164
-import javax.media.opengl.GL;
165
+import com.jogamp.opengl.GL;
166
 
167
 import org.scilab.modules.gui.bridge.ScilabBridge;
168
 import org.scilab.modules.gui.dockable.ScilabDockable;
169
diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/ScilabCanvasBridge.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/ScilabCanvasBridge.java
170
index 174d93d..a26eea9 100644
171
--- a/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/ScilabCanvasBridge.java
172
+++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/ScilabCanvasBridge.java
173
@@ -14,7 +14,7 @@ package org.scilab.modules.gui.canvas;
174
 
175
 import java.awt.image.BufferedImage;
176
 
177
-import javax.media.opengl.GL;
178
+import com.jogamp.opengl.GL;
179
 
180
 import org.scilab.modules.gui.bridge.canvas.SwingScilabCanvas;
181
 import org.scilab.modules.gui.utils.Position;
182
diff --git a/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/SimpleCanvas.java b/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/SimpleCanvas.java
183
index 207debd..9790c8b 100644
184
--- a/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/SimpleCanvas.java
185
+++ b/scilab/modules/gui/src/java/org/scilab/modules/gui/canvas/SimpleCanvas.java
186
@@ -15,7 +15,7 @@ package org.scilab.modules.gui.canvas;
187
 import org.scilab.modules.gui.utils.Position;
188
 import org.scilab.modules.gui.utils.Size;
189
 
190
-import javax.media.opengl.GL;
191
+import com.jogamp.opengl.GL;
192
 import java.awt.image.BufferedImage;
193
 
194
 /**
195
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvas.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvas.java
196
index f048402..e3cc37c 100644
197
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvas.java
198
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvas.java
199
@@ -16,16 +16,16 @@ import java.awt.image.BufferedImage;
200
 import java.lang.reflect.InvocationTargetException;
201
 import java.util.concurrent.Semaphore;
202
 
203
-import javax.media.opengl.DebugGL2;
204
-import javax.media.opengl.GL2;
205
-import javax.media.opengl.GLAutoDrawable;
206
-import javax.media.opengl.GLCapabilities;
207
-import javax.media.opengl.GLContext;
208
-import javax.media.opengl.GLDrawableFactory;
209
-import javax.media.opengl.GLEventListener;
210
-import javax.media.opengl.GLException;
211
-import javax.media.opengl.GLOffscreenAutoDrawable;
212
-import javax.media.opengl.GLProfile;
213
+import com.jogamp.opengl.DebugGL2;
214
+import com.jogamp.opengl.GL2;
215
+import com.jogamp.opengl.GLAutoDrawable;
216
+import com.jogamp.opengl.GLCapabilities;
217
+import com.jogamp.opengl.GLContext;
218
+import com.jogamp.opengl.GLDrawableFactory;
219
+import com.jogamp.opengl.GLEventListener;
220
+import com.jogamp.opengl.GLException;
221
+import com.jogamp.opengl.GLOffscreenAutoDrawable;
222
+import com.jogamp.opengl.GLProfile;
223
 import javax.swing.SwingUtilities;
224
 
225
 import org.scilab.forge.scirenderer.Canvas;
226
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvasFactory.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvasFactory.java
227
index f82ae92..843d587 100644
228
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvasFactory.java
229
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCanvasFactory.java
230
@@ -13,7 +13,7 @@ package org.scilab.forge.scirenderer.implementation.jogl;
231
 
232
 import org.scilab.forge.scirenderer.Canvas;
233
 
234
-import javax.media.opengl.GLAutoDrawable;
235
+import com.jogamp.opengl.GLAutoDrawable;
236
 
237
 /**
238
  * @author Pierre Lando
239
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCapacity.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCapacity.java
240
index e27be41..42fca2f 100644
241
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCapacity.java
242
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLCapacity.java
243
@@ -11,7 +11,7 @@
244
 
245
 package org.scilab.forge.scirenderer.implementation.jogl;
246
 
247
-import javax.media.opengl.GL2;
248
+import com.jogamp.opengl.GL2;
249
 
250
 /**
251
  * This class store current OpenGl context capacity.
252
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLDrawingTools.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLDrawingTools.java
253
index d7b34d3..d05605c 100644
254
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLDrawingTools.java
255
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLDrawingTools.java
256
@@ -30,7 +30,7 @@ import org.scilab.forge.scirenderer.tranformations.TransformationManagerImpl;
257
 import org.scilab.forge.scirenderer.tranformations.TransformationManagerListener;
258
 import org.scilab.forge.scirenderer.tranformations.Vector3d;
259
 
260
-import javax.media.opengl.GL2;
261
+import com.jogamp.opengl.GL2;
262
 
263
 /**
264
  *
265
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLParameters.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLParameters.java
266
index 86ab16b..ed342db 100644
267
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLParameters.java
268
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/JoGLParameters.java
269
@@ -11,8 +11,8 @@
270
 
271
 package org.scilab.forge.scirenderer.implementation.jogl;
272
 
273
-import javax.media.opengl.GL;
274
-import javax.media.opengl.glu.GLU;
275
+import com.jogamp.opengl.GL;
276
+import com.jogamp.opengl.glu.GLU;
277
 
278
 /**
279
  * @author Pierre Lando
280
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLBuffersManager.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLBuffersManager.java
281
index 25a1c1b..fbc1ad8 100644
282
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLBuffersManager.java
283
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLBuffersManager.java
284
@@ -16,7 +16,7 @@ import org.scilab.forge.scirenderer.buffers.DataBuffer;
285
 import org.scilab.forge.scirenderer.buffers.ElementsBuffer;
286
 import org.scilab.forge.scirenderer.buffers.IndicesBuffer;
287
 
288
-import javax.media.opengl.GL2;
289
+import com.jogamp.opengl.GL2;
290
 import java.util.Collection;
291
 import java.util.HashSet;
292
 import java.util.Set;
293
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLDataBuffer.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLDataBuffer.java
294
index 0912785..b609a27 100644
295
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLDataBuffer.java
296
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLDataBuffer.java
297
@@ -13,7 +13,7 @@ package org.scilab.forge.scirenderer.implementation.jogl.buffers;
298
 
299
 import org.scilab.forge.scirenderer.buffers.DataBuffer;
300
 
301
-import javax.media.opengl.GL;
302
+import com.jogamp.opengl.GL;
303
 import java.nio.Buffer;
304
 
305
 /**
306
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLElementsBuffer.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLElementsBuffer.java
307
index 0824b71..0488d99 100644
308
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLElementsBuffer.java
309
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLElementsBuffer.java
310
@@ -13,7 +13,7 @@ package org.scilab.forge.scirenderer.implementation.jogl.buffers;
311
 
312
 import org.scilab.forge.scirenderer.buffers.ElementsBuffer;
313
 
314
-import javax.media.opengl.GL2;
315
+import com.jogamp.opengl.GL2;
316
 import java.nio.Buffer;
317
 import java.nio.FloatBuffer;
318
 
319
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLIndicesBuffer.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLIndicesBuffer.java
320
index a6678c2..2baebf4 100644
321
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLIndicesBuffer.java
322
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/buffers/JoGLIndicesBuffer.java
323
@@ -13,7 +13,7 @@ package org.scilab.forge.scirenderer.implementation.jogl.buffers;
324
 
325
 import org.scilab.forge.scirenderer.buffers.IndicesBuffer;
326
 
327
-import javax.media.opengl.GL;
328
+import com.jogamp.opengl.GL;
329
 import java.nio.Buffer;
330
 import java.nio.IntBuffer;
331
 import java.util.Collection;
332
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/clipping/JoGLClippingManager.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/clipping/JoGLClippingManager.java
333
index 48722c6..341bed6 100644
334
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/clipping/JoGLClippingManager.java
335
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/clipping/JoGLClippingManager.java
336
@@ -15,7 +15,7 @@ import org.scilab.forge.scirenderer.clipping.ClippingManager;
337
 import org.scilab.forge.scirenderer.clipping.ClippingPlane;
338
 import org.scilab.forge.scirenderer.implementation.jogl.JoGLDrawingTools;
339
 
340
-import javax.media.opengl.GL2;
341
+import com.jogamp.opengl.GL2;
342
 
343
 /**
344
  * @author Pierre Lando
345
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/clipping/JoGLClippingPlane.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/clipping/JoGLClippingPlane.java
346
index dc4361b..9198ddd 100644
347
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/clipping/JoGLClippingPlane.java
348
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/clipping/JoGLClippingPlane.java
349
@@ -17,7 +17,7 @@ import org.scilab.forge.scirenderer.tranformations.Transformation;
350
 import org.scilab.forge.scirenderer.tranformations.TransformationFactory;
351
 import org.scilab.forge.scirenderer.tranformations.Vector4d;
352
 
353
-import javax.media.opengl.GL2;
354
+import com.jogamp.opengl.GL2;
355
 
356
 /**
357
  * @author Pierre Lando
358
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/drawer/JoGLShapeDrawer.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/drawer/JoGLShapeDrawer.java
359
index 87f3099..fa3da7e 100644
360
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/drawer/JoGLShapeDrawer.java
361
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/drawer/JoGLShapeDrawer.java
362
@@ -23,7 +23,7 @@ import org.scilab.forge.scirenderer.texture.Texture;
363
 import org.scilab.forge.scirenderer.lightning.LightManager;
364
 import org.scilab.forge.scirenderer.shapes.appearance.Material;
365
 
366
-import javax.media.opengl.GL2;
367
+import com.jogamp.opengl.GL2;
368
 import java.nio.FloatBuffer;
369
 import java.nio.IntBuffer;
370
 
371
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/lightning/JoGLLight.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/lightning/JoGLLight.java
372
index 2a99c41..9f8ac14 100644
373
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/lightning/JoGLLight.java
374
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/lightning/JoGLLight.java
375
@@ -11,7 +11,7 @@
376
 
377
 package org.scilab.forge.scirenderer.implementation.jogl.lightning;
378
 
379
-import javax.media.opengl.GL2;
380
+import com.jogamp.opengl.GL2;
381
 
382
 import org.scilab.forge.scirenderer.implementation.jogl.utils.GLShortCuts;
383
 import org.scilab.forge.scirenderer.lightning.Light;
384
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/lightning/JoGLLightManager.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/lightning/JoGLLightManager.java
385
index 4621f50..c35096a 100644
386
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/lightning/JoGLLightManager.java
387
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/lightning/JoGLLightManager.java
388
@@ -17,7 +17,7 @@ import org.scilab.forge.scirenderer.lightning.Light;
389
 import org.scilab.forge.scirenderer.lightning.LightManager;
390
 import org.scilab.forge.scirenderer.shapes.appearance.Material;
391
 
392
-import javax.media.opengl.GL2;
393
+import com.jogamp.opengl.GL2;
394
 
395
 /**
396
  * JoGL implementation of {@link LightManager}
397
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/picking/GLPickingManager.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/picking/GLPickingManager.java
398
index 799c93e..d90ccee 100644
399
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/picking/GLPickingManager.java
400
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/picking/GLPickingManager.java
401
@@ -11,7 +11,7 @@
402
 
403
 package org.scilab.forge.scirenderer.implementation.jogl.picking;
404
 
405
-import javax.media.opengl.GL;
406
+import com.jogamp.opengl.GL;
407
 
408
 /**
409
  * @author Pierre Lando
410
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/picking/JoGLPickingTools.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/picking/JoGLPickingTools.java
411
index dbb3dd7..7470c81 100644
412
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/picking/JoGLPickingTools.java
413
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/picking/JoGLPickingTools.java
414
@@ -16,7 +16,7 @@ import org.scilab.forge.scirenderer.implementation.jogl.JoGLDrawingTools;
415
 import org.scilab.forge.scirenderer.picking.PickingTools;
416
 import org.scilab.forge.scirenderer.tranformations.Vector3d;
417
 
418
-import javax.media.opengl.GL2;
419
+import com.jogamp.opengl.GL2;
420
 import java.awt.Point;
421
 import java.nio.FloatBuffer;
422
 
423
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/renderer/JoGLRenderer.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/renderer/JoGLRenderer.java
424
index cc43ada..c0df74f 100644
425
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/renderer/JoGLRenderer.java
426
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/renderer/JoGLRenderer.java
427
@@ -15,7 +15,7 @@ import org.scilab.forge.scirenderer.Drawer;
428
 import org.scilab.forge.scirenderer.implementation.jogl.JoGLDrawingTools;
429
 import org.scilab.forge.scirenderer.renderer.Renderer;
430
 
431
-import javax.media.opengl.GL2;
432
+import com.jogamp.opengl.GL2;
433
 
434
 /**
435
  * @author Pierre Lando
436
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/renderer/JoGLRendererManager.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/renderer/JoGLRendererManager.java
437
index ed10de4..f24d544 100644
438
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/renderer/JoGLRendererManager.java
439
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/renderer/JoGLRendererManager.java
440
@@ -15,7 +15,7 @@ import org.scilab.forge.scirenderer.implementation.jogl.JoGLDrawingTools;
441
 import org.scilab.forge.scirenderer.renderer.Renderer;
442
 import org.scilab.forge.scirenderer.renderer.RendererManager;
443
 
444
-import javax.media.opengl.GL2;
445
+import com.jogamp.opengl.GL2;
446
 import java.util.HashSet;
447
 import java.util.Set;
448
 import java.util.Stack;
449
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/texture/JoGLTextureManager.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/texture/JoGLTextureManager.java
450
index 71876e1..5d6d95e 100644
451
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/texture/JoGLTextureManager.java
452
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/texture/JoGLTextureManager.java
453
@@ -28,11 +28,11 @@ import org.scilab.forge.scirenderer.tranformations.TransformationManager;
454
 import org.scilab.forge.scirenderer.tranformations.Vector3d;
455
 
456
 
457
-import javax.media.opengl.GL;
458
-import javax.media.opengl.GL2;
459
-import javax.media.opengl.GL2ES1;
460
-import javax.media.opengl.GL2GL3;
461
-import javax.media.opengl.GLProfile;
462
+import com.jogamp.opengl.GL;
463
+import com.jogamp.opengl.GL2;
464
+import com.jogamp.opengl.GL2ES1;
465
+import com.jogamp.opengl.GL2GL3;
466
+import com.jogamp.opengl.GLProfile;
467
 import java.awt.Dimension;
468
 import java.nio.ByteBuffer;
469
 import java.nio.FloatBuffer;
470
diff --git a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/utils/GLShortCuts.java b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/utils/GLShortCuts.java
471
index 7928a7e..5273573 100644
472
--- a/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/utils/GLShortCuts.java
473
+++ b/scilab/modules/scirenderer/src/org/scilab/forge/scirenderer/implementation/jogl/utils/GLShortCuts.java
474
@@ -14,7 +14,7 @@ package org.scilab.forge.scirenderer.implementation.jogl.utils;
475
 import org.scilab.forge.scirenderer.shapes.appearance.Appearance;
476
 import org.scilab.forge.scirenderer.shapes.appearance.Color;
477
 
478
-import javax.media.opengl.GL2;
479
+import com.jogamp.opengl.GL2;
480
 
481
 /**
482
  *
(-)a/scilab-5.5.2-xmlgraphics-commons-2.0.patch (+84 lines)
Line 0 Link Here
1
diff --git a/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java b/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java
2
index 68a1cf9..8317dff 100644
3
--- a/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java
4
+++ b/scilab/modules/graphic_export/src/java/org/scilab/modules/graphic_export/Export.java
5
@@ -857,7 +857,7 @@ public class Export {
6
                     }
7
 
8
                     @Override
9
-                    public int processShape(Shape s) throws IOException {
10
+                    public int processShape(Shape s, boolean b) throws IOException {
11
                         if (s instanceof Ellipse2D.Double) {
12
                             Ellipse2D.Double ell = (Ellipse2D.Double) s;
13
                             if (ell.height == ell.width) {
14
@@ -880,10 +880,10 @@ public class Export {
15
                                     buffer.append("[").append(gen.formatDouble(coords[0])).append(" ").append(gen.formatDouble(coords[1]));
16
                                     it.next();
17
                                 } else {
18
-                                    return super.processShape(s);
19
+                                    return super.processShape(s, b);
20
                                 }
21
                             } else {
22
-                                return super.processShape(s);
23
+                                return super.processShape(s, b);
24
                             }
25
 
26
                             for (; !it.isDone(); it.next()) {
27
@@ -891,7 +891,7 @@ public class Export {
28
                                 if (type == PathIterator.SEG_LINETO) {
29
                                     buffer.append(" ").append(gen.formatDouble(coords[0])).append(" ").append(gen.formatDouble(coords[1]));
30
                                 } else {
31
-                                    return super.processShape(s);
32
+                                    return super.processShape(s, b);
33
                                 }
34
                             }
35
                             buffer.append("] DP");
36
@@ -899,7 +899,7 @@ public class Export {
37
                             return PathIterator.WIND_NON_ZERO;
38
                         }
39
 
40
-                        return super.processShape(s);
41
+                        return super.processShape(s, b);
42
                     }
43
                 };
44
                 g2d.setGraphicContext(new GraphicContext());
45
@@ -1029,7 +1029,7 @@ public class Export {
46
                     }
47
 
48
                     @Override
49
-                    public int processShape(Shape s) throws IOException {
50
+                    public int processShape(Shape s, boolean b) throws IOException {
51
                         if (s instanceof Ellipse2D.Double) {
52
                             Ellipse2D.Double ell = (Ellipse2D.Double) s;
53
                             if (ell.height == ell.width) {
54
@@ -1052,10 +1052,10 @@ public class Export {
55
                                     buffer.append("[").append(gen.formatDouble(coords[0])).append(" ").append(gen.formatDouble(coords[1]));
56
                                     it.next();
57
                                 } else {
58
-                                    return super.processShape(s);
59
+                                    return super.processShape(s, b);
60
                                 }
61
                             } else {
62
-                                return super.processShape(s);
63
+                                return super.processShape(s, b);
64
                             }
65
 
66
                             for (; !it.isDone(); it.next()) {
67
@@ -1063,7 +1063,7 @@ public class Export {
68
                                 if (type == PathIterator.SEG_LINETO) {
69
                                     buffer.append(" ").append(gen.formatDouble(coords[0])).append(" ").append(gen.formatDouble(coords[1]));
70
                                 } else {
71
-                                    return super.processShape(s);
72
+                                    return super.processShape(s, b);
73
                                 }
74
                             }
75
                             buffer.append("] DP");
76
@@ -1071,7 +1071,7 @@ public class Export {
77
                             return PathIterator.WIND_NON_ZERO;
78
                         }
79
 
80
-                        return super.processShape(s);
81
+                        return super.processShape(s, b);
82
                     }
83
 
84
                 };

Return to bug 31794