Package list lwjgl / f57d384
Add add-missing-symbols-in-native-lib-v2.patch. Readd the missing symbols in lwjgl's native library. Closes: #912631 Thanks: Petr Cvek for the report and Le Gall Guillaume for the patch. Markus Koschany 2 years ago
2 changed file(s) with 58 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Description: Compile and add to library missing object files
1 Some C files present in "src/native/common", and "src/native/linux"
2 were not included in the native library build. This patch should include them
3 back.
4 .
5 Also, when building the Debian package, the library "jawt", which is a
6 dependency, was missing as well when building the native library.
7 .
8 This patch should allow building the Debian package with OpenJDK 11.
9 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=912631#5
10 Last-Update: 2018-12-31
11
12 --- lwjgl-2.9.3+dfsg.orig/platform_build/linux_ant/build.xml
13 +++ lwjgl-2.9.3+dfsg/platform_build/linux_ant/build.xml
14 @@ -6,7 +6,7 @@
15 <property name="libname64" value="liblwjgl64.so"/>
16 <property name="libs32" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -lpthread -L${java.home}/lib/i386 -ljawt" />
17 <property name="libs64" value="-L/usr/X11R6/lib64 -L/usr/X11/lib64 -lm -lX11 -lXext -lXcursor -lXrandr -lXxf86vm -lpthread -L${java.home}/lib/amd64 -ljawt" />
18 - <property name="libs" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXcursor -lXrandr -lXxf86vm -L${java.home}/lib/${os.arch}" />
19 + <property name="libs" value="-L/usr/X11R6/lib -L/usr/X11/lib -lm -lX11 -lXcursor -lXrandr -lXxf86vm -L${java.home}/lib -ljawt" />
20 <property name="cflags32" value="-O2 -Wall -c -fPIC -std=c99 -Wunused"/>
21
22 <target name="clean">
23 @@ -148,8 +148,12 @@
24 <arg value="-I${native}/linux/opengl"/>
25 <mapper type="glob" from="*.c" to="*.o"/>
26 <fileset dir="${native}/linux" includes="*.c"/>
27 + <fileset dir="${native}/linux/opengl" includes="*.c"/>
28 <fileset dir="${native}/generated" includes="*.c"/>
29 - <fileset dir="${native}/common" includes="*.c"/>
30 + <fileset dir="${native}/common" includes="**/*.c" excludes="opengles/**/*"/>
31 + <fileset dir="${native}/generated/openal" includes="*.c"/>
32 + <fileset dir="${native}/generated/opencl" includes="*.c"/>
33 + <fileset dir="${native}/generated/opengl" includes="*.c"/>
34 </apply>
35 <apply dir="." parallel="true" executable="gcc" failonerror="true">
36 <srcfile/>
37 --- lwjgl-2.9.3+dfsg.orig/src/java/org/lwjgl/opengl/Pbuffer.java
38 +++ lwjgl-2.9.3+dfsg/src/java/org/lwjgl/opengl/Pbuffer.java
39 @@ -52,6 +52,7 @@ public final class Pbuffer extends Drawa
40 /**
41 * Indicates that Pbuffers can be created.
42 */
43 + @java.lang.annotation.Native
44 public static final int PBUFFER_SUPPORTED = 1 << 0;
45
46 /**
47 --- lwjgl-2.9.3+dfsg.orig/src/native/linux/opengl/org_lwjgl_opengl_Pbuffer.c
48 +++ lwjgl-2.9.3+dfsg/src/native/linux/opengl/org_lwjgl_opengl_Pbuffer.c
49 @@ -42,6 +42,7 @@
50 #include <stdlib.h>
51 #include "org_lwjgl_opengl_LinuxPbufferPeerInfo.h"
52 #include "org_lwjgl_opengl_Pbuffer.h"
53 +#include "org_lwjgl_opengl_LinuxDisplay.h"
54 #include "extgl.h"
55 #include "context.h"
56 #include "common_tools.h"
88 java9-compatibility.patch
99 annotation-processor-workaround.patch
1010 javah.patch
11 add-missing-symbols-in-native-lib-v2.patch