aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk15
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2005-12-03 06:24:01 +0800
committerglewis <glewis@FreeBSD.org>2005-12-03 06:24:01 +0800
commitce7953a3920bd04064dfd4b667cd9dbda68c202e (patch)
treeaced6b6fd9b09a61ec7583b216a956e738b97621 /java/jdk15
parent5c6d3b09f1e593bc190049307024da422d93416c (diff)
downloadfreebsd-ports-gnome-ce7953a3920bd04064dfd4b667cd9dbda68c202e.tar.gz
freebsd-ports-gnome-ce7953a3920bd04064dfd4b667cd9dbda68c202e.tar.zst
freebsd-ports-gnome-ce7953a3920bd04064dfd4b667cd9dbda68c202e.zip
. "Privatise" the symbols in libzip.so to avoid conflicting with those
in the systems libz.so. This conflict broke applications such as Eclipse which is linked with libz.so (via gtk+ I believe). This is a slightly modified version of the submitter's patch. A better solution may be to link with the system's libz.so and remove the JDK's internal zlib code altogether, but I'd like to test that a little more first. Until then this solves the problem. . Bump PORTREVISION since Eclipse seems to be quite widely used. Submitted by: "Arno J. Klaassen" <arno@heho.snv.jussieu.fr>
Diffstat (limited to 'java/jdk15')
-rw-r--r--java/jdk15/Makefile2
-rw-r--r--java/jdk15/files/patch-j2se::zlib-1.1.3::zconf.h85
2 files changed, 86 insertions, 1 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
index a87e5f7674b1..33d492e49934 100644
--- a/java/jdk15/Makefile
+++ b/java/jdk15/Makefile
@@ -7,7 +7,7 @@
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= java devel
MASTER_SITES= # http://www.sun.com/software/communitysource/j2se/java2/download.xml
# http://www.eyesbeyond.com/freebsddom/java/jdk15.html
diff --git a/java/jdk15/files/patch-j2se::zlib-1.1.3::zconf.h b/java/jdk15/files/patch-j2se::zlib-1.1.3::zconf.h
new file mode 100644
index 000000000000..8dd29d8f9508
--- /dev/null
+++ b/java/jdk15/files/patch-j2se::zlib-1.1.3::zconf.h
@@ -0,0 +1,85 @@
+--- ../../j2se/src/share/native/java/util/zip/zlib-1.1.3/zconf.h 8 Nov 2004 22:27:36 -0000 1.1.1.1
++++ ../../j2se/src/share/native/java/util/zip/zlib-1.1.3/zconf.h 20 Oct 2005 18:19:49 -0000
+@@ -11,44 +11,49 @@
+ /* for _LP64 */
+ #include <sys/types.h>
+
++/**
++ * Privatise the symbols to the JDK.
++ */
++#define Z_PREFIX
++
+ /*
+ * If you *really* need a unique prefix for all types and library functions,
+ * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
+ */
+ #ifdef Z_PREFIX
+-# define deflateInit_ z_deflateInit_
+-# define deflate z_deflate
+-# define deflateEnd z_deflateEnd
+-# define inflateInit_ z_inflateInit_
+-# define inflate z_inflate
+-# define inflateEnd z_inflateEnd
+-# define deflateInit2_ z_deflateInit2_
+-# define deflateSetDictionary z_deflateSetDictionary
+-# define deflateCopy z_deflateCopy
+-# define deflateReset z_deflateReset
+-# define deflateParams z_deflateParams
+-# define inflateInit2_ z_inflateInit2_
+-# define inflateSetDictionary z_inflateSetDictionary
+-# define inflateSync z_inflateSync
+-# define inflateSyncPoint z_inflateSyncPoint
+-# define inflateReset z_inflateReset
+-# define compress z_compress
+-# define compress2 z_compress2
+-# define uncompress z_uncompress
+-# define adler32 z_adler32
+-# define crc32 z_crc32
+-# define get_crc_table z_get_crc_table
+-
+-# define Byte z_Byte
+-# define uInt z_uInt
+-# define uLong z_uLong
+-# define Bytef z_Bytef
+-# define charf z_charf
+-# define intf z_intf
+-# define uIntf z_uIntf
+-# define uLongf z_uLongf
+-# define voidpf z_voidpf
+-# define voidp z_voidp
++# define deflateInit_ _java_libz_deflateInit_
++# define deflate _java_libz_deflate
++# define deflateEnd _java_libz_deflateEnd
++# define inflateInit_ _java_libz_inflateInit_
++# define inflate _java_libz_inflate
++# define inflateEnd _java_libz_inflateEnd
++# define deflateInit2_ _java_libz_deflateInit2_
++# define deflateSetDictionary _java_libz_deflateSetDictionary
++# define deflateCopy _java_libz_deflateCopy
++# define deflateReset _java_libz_deflateReset
++# define deflateParams _java_libz_deflateParams
++# define inflateInit2_ _java_libz_inflateInit2_
++# define inflateSetDictionary _java_libz_inflateSetDictionary
++# define inflateSync _java_libz_inflateSync
++# define inflateSyncPoint _java_libz_inflateSyncPoint
++# define inflateReset _java_libz_inflateReset
++# define compress _java_libz_compress
++# define compress2 _java_libz_compress2
++# define uncompress _java_libz_uncompress
++# define adler32 _java_libz_adler32
++# define crc32 _java_libz_crc32
++# define get_crc_table _java_libz_get_crc_table
++
++# define Byte _java_libz_Byte
++# define uInt _java_libz_uInt
++# define uLong _java_libz_uLong
++# define Bytef _java_libz_Bytef
++# define charf _java_libz_charf
++# define intf _java_libz_intf
++# define uIntf _java_libz_uIntf
++# define uLongf _java_libz_uLongf
++# define voidpf _java_libz_voidpf
++# define voidp _java_libz_voidp
+ #endif
+
+ #if (defined(_WIN32) || defined(__WIN32__)) && !defined(WIN32)