Added giflib-5.1 patch

This commit is contained in:
Denis Silakov 2014-06-02 17:46:32 +04:00
parent d6da38a1a8
commit 0c50ecc2ad
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,15 @@
diff -Naur jdk8.orig/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c jdk8/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c
--- jdk8.orig/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c 2014-06-02 17:38:17.544451940 +0400
+++ jdk8/jdk/src/share/native/sun/awt/splashscreen/splashscreen_gif.c 2014-06-02 17:44:24.887734150 +0400
@@ -310,7 +310,11 @@
free(pBitmapBits);
free(pOldBitmapBits);
+#if GIFLIB_MAJOR * 100 + GIFLIB_MINOR >= 501
+ DGifCloseFile(gif, NULL);
+#else
DGifCloseFile(gif);
+#fi
return 1;
}

View file

@ -226,6 +226,8 @@ Patch203: system-lcms.patch
Patch301: java-1.8.0-openjdk-giflib5.patch
Patch302: java-1.8.0-openjdk-make-4.0.patch
Patch303: java-1.8.0-openjdk-gilib-5.1.patch
Patch999: 0001-PPC64LE-arch-support-in-openjdk-1.8.patch
@ -454,9 +456,10 @@ sh %{SOURCE12}
%patch999 -p1
%endif
# omv patches
# omv/rosa patches
%patch301
%patch302 -p1
%patch303 -p1
# Extract systemtap tapsets
%if %{with_systemtap}