openadk.patch 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. diff -Nur icedtea-2.3.9.orig/Makefile.in icedtea-2.3.9/Makefile.in
  2. --- icedtea-2.3.9.orig/Makefile.in 2013-04-21 22:48:31.000000000 +0200
  3. +++ icedtea-2.3.9/Makefile.in 2013-11-15 12:28:32.000000000 +0100
  4. @@ -90,7 +90,6 @@
  5. @WITH_ALT_HSBUILD_TRUE@ patches/hotspot/$(HSBUILD)/7089790-bsd_port.patch \
  6. @WITH_ALT_HSBUILD_TRUE@ patches/hotspot/$(HSBUILD)/7098194-macosx_port.patch \
  7. @WITH_ALT_HSBUILD_TRUE@ patches/hotspot/$(HSBUILD)/7116189-setnativethreadname.patch \
  8. -@WITH_ALT_HSBUILD_TRUE@ patches/hotspot/$(HSBUILD)/6924259-string_offset.patch \
  9. @WITH_ALT_HSBUILD_TRUE@ patches/hotspot/$(HSBUILD)/revert_arm_debug.patch
  10. @WITH_RHINO_TRUE@am__append_9 = \
  11. @@ -657,7 +656,7 @@
  12. $(am__append_17) $(am__append_18) $(DISTRIBUTION_PATCHES)
  13. # Bootstrapping patches
  14. -ICEDTEA_BOOT_PATCHES = patches/boot/javafiles.patch \
  15. +ICEDTEA_BOOT_PATCHES = patches/openadk.patch patches/boot/javafiles.patch \
  16. patches/boot/ant-javac.patch patches/boot/corba-idlj.patch \
  17. patches/boot/corba-no-gen.patch patches/boot/corba-orb.patch \
  18. patches/boot/demos.patch patches/boot/ecj-fphexconstants.patch \
  19. @@ -2050,7 +2049,7 @@
  20. # Optional native ecj
  21. stamps/native-ecj.stamp:
  22. mkdir -p stamps
  23. -@BUILD_NATIVE_ECJ_TRUE@ ${GCJ} $(IT_CFLAGS) -Wl,-Bsymbolic -findirect-dispatch -o native-ecj \
  24. +@BUILD_NATIVE_ECJ_TRUE@ ${GCJ} -lgcj -Wl,-Bsymbolic -findirect-dispatch -o native-ecj \
  25. @BUILD_NATIVE_ECJ_TRUE@ --main=org.eclipse.jdt.internal.compiler.batch.Main ${ECJ_JAR}
  26. touch $@
  27. diff -Nur icedtea-2.3.9.orig/patches/openadk.patch icedtea-2.3.9/patches/openadk.patch
  28. --- icedtea-2.3.9.orig/patches/openadk.patch 1970-01-01 01:00:00.000000000 +0100
  29. +++ icedtea-2.3.9/patches/openadk.patch 2013-11-15 13:52:27.000000000 +0100
  30. @@ -0,0 +1,493 @@
  31. +diff -Nur openjdk.orig/hotspot/src/os/linux/vm/os_linux.cpp openjdk/hotspot/src/os/linux/vm/os_linux.cpp
  32. +--- openjdk.orig/hotspot/src/os/linux/vm/os_linux.cpp 2013-03-15 17:33:37.000000000 +0100
  33. ++++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp 2013-11-15 13:51:09.000000000 +0100
  34. +@@ -115,7 +115,6 @@
  35. + # include <string.h>
  36. + # include <syscall.h>
  37. + # include <sys/sysinfo.h>
  38. +-# include <gnu/libc-version.h>
  39. + # include <sys/ipc.h>
  40. + # include <sys/shm.h>
  41. + # include <link.h>
  42. +@@ -644,9 +643,7 @@
  43. + os::Linux::set_glibc_version(str);
  44. + } else {
  45. + // _CS_GNU_LIBC_VERSION is not supported, try gnu_get_libc_version()
  46. +- static char _gnu_libc_version[32];
  47. +- jio_snprintf(_gnu_libc_version, sizeof(_gnu_libc_version),
  48. +- "glibc %s %s", gnu_get_libc_version(), gnu_get_libc_release());
  49. ++ static char _gnu_libc_version[32] = "2.9";
  50. + os::Linux::set_glibc_version(_gnu_libc_version);
  51. + }
  52. +
  53. +@@ -2640,10 +2637,7 @@
  54. + // If we are running with earlier version, which did not have symbol versions,
  55. + // we should use the base version.
  56. + void* os::Linux::libnuma_dlsym(void* handle, const char *name) {
  57. +- void *f = dlvsym(handle, name, "libnuma_1.1");
  58. +- if (f == NULL) {
  59. +- f = dlsym(handle, name);
  60. +- }
  61. ++ void *f = dlsym(handle, name);
  62. + return f;
  63. + }
  64. +
  65. +@@ -4908,7 +4902,21 @@
  66. + // Linux doesn't yet have a (official) notion of processor sets,
  67. + // so just return the system wide load average.
  68. + int os::loadavg(double loadavg[], int nelem) {
  69. +- return ::getloadavg(loadavg, nelem);
  70. ++ FILE *LOADAVG;
  71. ++ double avg[3] = { 0.0, 0.0, 0.0 };
  72. ++ int i, res = -1;;
  73. ++
  74. ++ if ((LOADAVG = fopen("/proc/loadavg", "r"))) {
  75. ++ fscanf(LOADAVG, "%lf %lf %lf", &avg[0], &avg[1], &avg[2]);
  76. ++ res = 0;
  77. ++ fclose(LOADAVG);
  78. ++ }
  79. ++
  80. ++ for (i = 0; (i < nelem) && (i < 3); i++) {
  81. ++ loadavg[i] = avg[i];
  82. ++ }
  83. ++
  84. ++ return res;
  85. + }
  86. +
  87. + void os::pause() {
  88. +diff -Nur openjdk.orig/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp
  89. +--- openjdk.orig/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp 2013-03-15 17:33:37.000000000 +0100
  90. ++++ openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp 2013-11-15 13:51:57.000000000 +0100
  91. +@@ -253,7 +253,7 @@
  92. + #elif defined(__APPLE__)
  93. + inline int g_isnan(double f) { return isnan(f); }
  94. + #elif defined(LINUX) || defined(_ALLBSD_SOURCE)
  95. +-inline int g_isnan(float f) { return isnanf(f); }
  96. ++inline int g_isnan(float f) { return __isnanf(f); }
  97. + inline int g_isnan(double f) { return isnan(f); }
  98. + #else
  99. + #error "missing platform-specific definition here"
  100. +@@ -267,8 +267,8 @@
  101. +
  102. + // Checking for finiteness
  103. +
  104. +-inline int g_isfinite(jfloat f) { return finite(f); }
  105. +-inline int g_isfinite(jdouble f) { return finite(f); }
  106. ++inline int g_isfinite(jfloat f) { return isfinite(f); }
  107. ++inline int g_isfinite(jdouble f) { return isfinite(f); }
  108. +
  109. +
  110. + // Wide characters
  111. +diff -Nur openjdk.orig/jdk/make/com/sun/java/pack/Makefile openjdk/jdk/make/com/sun/java/pack/Makefile
  112. +--- openjdk.orig/jdk/make/com/sun/java/pack/Makefile 2013-04-16 00:41:13.000000000 +0200
  113. ++++ openjdk/jdk/make/com/sun/java/pack/Makefile 2013-11-15 13:51:09.000000000 +0100
  114. +@@ -80,7 +80,7 @@
  115. + LDDFLAGS += $(ZIPOBJS)
  116. + endif
  117. + else
  118. +- OTHER_CXXFLAGS += -DNO_ZLIB -DUNPACK_JNI
  119. ++ CXXFLAGS_COMMON += -DNO_ZLIB -DUNPACK_JNI
  120. + OTHER_LDLIBS += $(JVMLIB)
  121. + endif
  122. +
  123. +diff -Nur openjdk.orig/jdk/make/com/sun/nio/sctp/Makefile openjdk/jdk/make/com/sun/nio/sctp/Makefile
  124. +--- openjdk.orig/jdk/make/com/sun/nio/sctp/Makefile 2013-04-16 00:41:13.000000000 +0200
  125. ++++ openjdk/jdk/make/com/sun/nio/sctp/Makefile 2013-11-15 13:51:09.000000000 +0100
  126. +@@ -64,7 +64,7 @@
  127. + COMPILER_WARNINGS_FATAL=true
  128. + endif
  129. + #OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread -ldl
  130. +-OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -lnio -lnet -lpthread -ldl
  131. ++OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -lnio -ljavanet -lpthread -ldl
  132. + endif
  133. + ifeq ($(PLATFORM), solaris)
  134. + #LIBSCTP = -lsctp
  135. +diff -Nur openjdk.orig/jdk/make/common/Defs.gmk openjdk/jdk/make/common/Defs.gmk
  136. +--- openjdk.orig/jdk/make/common/Defs.gmk 2013-04-16 00:41:13.000000000 +0200
  137. ++++ openjdk/jdk/make/common/Defs.gmk 2013-11-15 13:51:09.000000000 +0100
  138. +@@ -204,7 +204,7 @@
  139. + ifeq ($(PLATFORM), macosx)
  140. + FREETYPE_HEADERS_PATH = /usr/X11R6/include
  141. + else
  142. +- FREETYPE_HEADERS_PATH = /usr/include
  143. ++ FREETYPE_HEADERS_PATH = /usr/include/disabled
  144. + endif
  145. + endif
  146. + endif
  147. +diff -Nur openjdk.orig/jdk/make/common/shared/Platform.gmk openjdk/jdk/make/common/shared/Platform.gmk
  148. +--- openjdk.orig/jdk/make/common/shared/Platform.gmk 2013-04-16 00:41:13.000000000 +0200
  149. ++++ openjdk/jdk/make/common/shared/Platform.gmk 2013-11-15 13:51:09.000000000 +0100
  150. +@@ -160,9 +160,6 @@
  151. + else
  152. + mach := $(shell uname -m)
  153. + endif
  154. +- ifneq (,$(wildcard /usr/bin/dpkg-architecture))
  155. +- mach := $(shell (dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null || echo $(mach)) | sed 's/powerpc$$/ppc/;s/hppa/parisc/')
  156. +- endif
  157. + archExpr = case "$(mach)" in \
  158. + i[3-9]86) \
  159. + echo i586 \
  160. +diff -Nur openjdk.orig/jdk/make/java/instrument/Makefile openjdk/jdk/make/java/instrument/Makefile
  161. +--- openjdk.orig/jdk/make/java/instrument/Makefile 2013-04-16 00:41:13.000000000 +0200
  162. ++++ openjdk/jdk/make/java/instrument/Makefile 2013-11-15 13:51:09.000000000 +0100
  163. +@@ -140,6 +140,8 @@
  164. + # We don't want to link against -ljava
  165. + JAVALIB=
  166. +
  167. ++OTHER_LDLIBS += -liconv
  168. ++
  169. + #
  170. + # Add to ambient vpath so we pick up the library files
  171. + #
  172. +diff -Nur openjdk.orig/jdk/make/java/net/Makefile openjdk/jdk/make/java/net/Makefile
  173. +--- openjdk.orig/jdk/make/java/net/Makefile 2013-04-16 00:41:13.000000000 +0200
  174. ++++ openjdk/jdk/make/java/net/Makefile 2013-11-15 13:51:09.000000000 +0100
  175. +@@ -25,7 +25,7 @@
  176. +
  177. + BUILDDIR = ../..
  178. + PACKAGE = java.net
  179. +-LIBRARY = net
  180. ++LIBRARY = javanet
  181. + PRODUCT = sun
  182. + include $(BUILDDIR)/common/Defs.gmk
  183. +
  184. +diff -Nur openjdk.orig/jdk/make/java/nio/Makefile openjdk/jdk/make/java/nio/Makefile
  185. +--- openjdk.orig/jdk/make/java/nio/Makefile 2013-04-16 00:41:13.000000000 +0200
  186. ++++ openjdk/jdk/make/java/nio/Makefile 2013-11-15 13:51:09.000000000 +0100
  187. +@@ -369,7 +369,7 @@
  188. + endif
  189. +
  190. + ifeq ($(PLATFORM), linux)
  191. +- OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread $(LIBDL)
  192. ++ OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -ljavanet -lpthread $(LIBDL)
  193. + ifdef USE_SYSTEM_GIO
  194. + OTHER_LDLIBS += $(GIO_LIBS)
  195. + OTHER_INCLUDES += $(GIO_CFLAGS) -DUSE_SYSTEM_GIO
  196. +@@ -923,7 +923,7 @@
  197. +
  198. + $(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
  199. + $(prep-target)
  200. +- ($(CD) $(TEMPDIR); $(NIO_CC) $(CPPFLAGS) $(LDDFLAGS) \
  201. ++ ($(CD) $(TEMPDIR); $(HOST_CC) $(CPPFLAGS_FOR_BUILD) $(LDDFLAGS) \
  202. + -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
  203. +
  204. + ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
  205. +@@ -959,7 +959,7 @@
  206. +
  207. + $(GENUC_EXE) : $(GENUC_SRC)
  208. + $(prep-target)
  209. +- $(NIO_CC) $(CPPFLAGS) -o $@ $(GENUC_SRC)
  210. ++ $(HOST_CC) $(CPPFLAGS_FOR_BUILD) -o $@ $(GENUC_SRC)
  211. +
  212. + ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
  213. + $(SFS_GEN)/UnixConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/UnixConstants-$(PLATFORM)-$(ARCH).java
  214. +diff -Nur openjdk.orig/jdk/make/java/npt/Makefile openjdk/jdk/make/java/npt/Makefile
  215. +--- openjdk.orig/jdk/make/java/npt/Makefile 2013-04-16 00:41:13.000000000 +0200
  216. ++++ openjdk/jdk/make/java/npt/Makefile 2013-11-15 13:51:09.000000000 +0100
  217. +@@ -64,6 +64,8 @@
  218. + # We don't want to link against -ljava
  219. + JAVALIB=
  220. +
  221. ++OTHER_LDLIBS += -liconv
  222. ++
  223. + # Add -export options to explicitly spell exported symbols
  224. + ifeq ($(PLATFORM), windows)
  225. + OTHER_LCF += -export:nptInitialize -export:nptTerminate
  226. +diff -Nur openjdk.orig/jdk/make/sun/awt/mawt.gmk openjdk/jdk/make/sun/awt/mawt.gmk
  227. +--- openjdk.orig/jdk/make/sun/awt/mawt.gmk 2013-04-16 00:41:13.000000000 +0200
  228. ++++ openjdk/jdk/make/sun/awt/mawt.gmk 2013-11-15 13:51:09.000000000 +0100
  229. +@@ -151,22 +151,6 @@
  230. + #endif
  231. +
  232. + LIBXTST = -lXtst
  233. +-ifeq ($(PLATFORM), linux)
  234. +- ifeq ($(ARCH_DATA_MODEL), 64)
  235. +- # XXX what about the rest of them?
  236. +- LIBXT = -lXt
  237. +- else
  238. +- # Allows for builds on Debian GNU Linux, X11 is in a different place
  239. +- LIBXT = $(firstword $(wildcard $(OPENWIN_LIB)/libXt.a) \
  240. +- $(wildcard /usr/lib/libXt.a))
  241. +- LIBSM = $(firstword $(wildcard $(OPENWIN_LIB)/libSM.a) \
  242. +- $(wildcard /usr/lib/libSM.a))
  243. +- LIBICE = $(firstword $(wildcard $(OPENWIN_LIB)/libICE.a) \
  244. +- $(wildcard /usr/lib/libICE.a))
  245. +- LIBXTST = $(firstword $(wildcard $(OPENWIN_LIB)/libXtst.a) \
  246. +- $(wildcard /usr/lib/libXtst.a))
  247. +- endif
  248. +-endif
  249. +
  250. + # Use -lXmu for EditRes support
  251. + LIBXMU_DBG = -lXmu
  252. +@@ -181,7 +165,7 @@
  253. + OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH
  254. + # XXX what is this define below? Isn't it motif-related?
  255. + OTHER_CFLAGS += -DXMSTRINGDEFINES=1
  256. +-OTHER_LDLIBS = $(LIBXMU) $(LIBXTST) -lXext $(LIBXT) $(LIBSM) $(LIBICE) -lX11 -lXi
  257. ++OTHER_LDLIBS = $(LIBXMU) $(LIBXTST) -lXext -lXt -lSM -lICE -lX11 -lXi
  258. + endif
  259. +
  260. + endif
  261. +@@ -230,11 +214,6 @@
  262. + CPPFLAGS += -I$(PLATFORM_SRC)/native/common/deps/fontconfig2
  263. + endif
  264. +
  265. +-ifndef HEADLESS
  266. +-CPPFLAGS += -I$(OPENWIN_HOME)/include
  267. +-LDFLAGS += -L$(OPENWIN_LIB)
  268. +-
  269. +-endif # !HEADLESS
  270. +
  271. + CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
  272. + -I$(SHARE_SRC)/native/$(PKGDIR)/../font \
  273. +@@ -269,11 +248,6 @@
  274. + endif # !HEADLESS
  275. + endif # PLATFORM
  276. +
  277. +-ifeq ($(PLATFORM), linux)
  278. +- # Checking for the X11/extensions headers at the additional location
  279. +- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \
  280. +- $(wildcard /usr/include/X11/extensions))
  281. +-endif
  282. +
  283. + ifeq ($(PLATFORM), macosx))
  284. + CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions \
  285. +diff -Nur openjdk.orig/jdk/make/sun/splashscreen/Makefile openjdk/jdk/make/sun/splashscreen/Makefile
  286. +--- openjdk.orig/jdk/make/sun/splashscreen/Makefile 2013-04-16 00:41:13.000000000 +0200
  287. ++++ openjdk/jdk/make/sun/splashscreen/Makefile 2013-11-15 13:51:09.000000000 +0100
  288. +@@ -55,6 +55,8 @@
  289. +
  290. + JAVALIB=
  291. +
  292. ++OTHER_LDLIBS += -liconv
  293. ++
  294. + #
  295. + # C Flags
  296. + #
  297. +diff -Nur openjdk.orig/jdk/make/sun/xawt/Makefile openjdk/jdk/make/sun/xawt/Makefile
  298. +--- openjdk.orig/jdk/make/sun/xawt/Makefile 2013-04-16 00:41:13.000000000 +0200
  299. ++++ openjdk/jdk/make/sun/xawt/Makefile 2013-11-15 13:51:09.000000000 +0100
  300. +@@ -292,16 +292,10 @@
  301. + SIZERS = $(SIZER).32
  302. + SIZERS_C = $(SIZER_32_C)
  303. + SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
  304. +-ifdef CROSS_COMPILE_ARCH
  305. +-CFLAGS_32 = -m32
  306. +-endif
  307. + else # !32
  308. + SIZERS = $(SIZER).64
  309. + SIZERS_C = $(SIZER_64_C)
  310. + SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64
  311. +-ifdef CROSS_COMPILE_ARCH
  312. +-CFLAGS_64 = -m64
  313. +-endif
  314. + endif # 32
  315. + endif # !macosx
  316. + endif # solaris
  317. +@@ -337,11 +331,7 @@
  318. + WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class
  319. + XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
  320. +
  321. +-ifndef CROSS_COMPILE_ARCH
  322. +-SIZERS_CC = $(CC)
  323. +-else
  324. +-SIZERS_CC = $(HOST_CC)
  325. +-endif
  326. ++SIZERS_CC = $(CC) -static
  327. +
  328. + $(SIZERS): $(SIZERS_C)
  329. + $(prep-target)
  330. +@@ -364,7 +354,7 @@
  331. + $(CHMOD) +w $@;\
  332. + else \
  333. + $(ECHO) GENERATING $@; \
  334. +- $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
  335. ++ $(QEMU) $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
  336. + fi
  337. + @if [ "$(DOCOMPARE)$(suffix $@)" = "true.64" ]; then \
  338. + $(ECHO) COMPARING $@ and $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \
  339. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java openjdk/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
  340. +--- openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java 2013-04-16 00:41:13.000000000 +0200
  341. ++++ openjdk/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java 2013-11-15 13:51:09.000000000 +0100
  342. +@@ -69,7 +69,7 @@
  343. + */
  344. + static {
  345. + java.security.AccessController.doPrivileged(
  346. +- new sun.security.action.LoadLibraryAction("net"));
  347. ++ new sun.security.action.LoadLibraryAction("javanet"));
  348. + }
  349. +
  350. + /**
  351. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java openjdk/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java
  352. +--- openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java 2013-04-16 00:41:13.000000000 +0200
  353. ++++ openjdk/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java 2013-11-15 13:51:09.000000000 +0100
  354. +@@ -78,7 +78,7 @@
  355. + */
  356. + static {
  357. + java.security.AccessController.doPrivileged(
  358. +- new sun.security.action.LoadLibraryAction("net"));
  359. ++ new sun.security.action.LoadLibraryAction("javanet"));
  360. + }
  361. +
  362. + /**
  363. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/DatagramPacket.java openjdk/jdk/src/share/classes/java/net/DatagramPacket.java
  364. +--- openjdk.orig/jdk/src/share/classes/java/net/DatagramPacket.java 2013-04-16 00:41:13.000000000 +0200
  365. ++++ openjdk/jdk/src/share/classes/java/net/DatagramPacket.java 2013-11-15 13:51:09.000000000 +0100
  366. +@@ -47,7 +47,7 @@
  367. + */
  368. + static {
  369. + java.security.AccessController.doPrivileged(
  370. +- new sun.security.action.LoadLibraryAction("net"));
  371. ++ new sun.security.action.LoadLibraryAction("javanet"));
  372. + init();
  373. + }
  374. +
  375. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/InetAddress.java openjdk/jdk/src/share/classes/java/net/InetAddress.java
  376. +--- openjdk.orig/jdk/src/share/classes/java/net/InetAddress.java 2013-04-16 00:41:13.000000000 +0200
  377. ++++ openjdk/jdk/src/share/classes/java/net/InetAddress.java 2013-11-15 13:51:09.000000000 +0100
  378. +@@ -260,7 +260,7 @@
  379. + static {
  380. + preferIPv6Address = java.security.AccessController.doPrivileged(
  381. + new GetBooleanAction("java.net.preferIPv6Addresses")).booleanValue();
  382. +- AccessController.doPrivileged(new LoadLibraryAction("net"));
  383. ++ AccessController.doPrivileged(new LoadLibraryAction("javanet"));
  384. + init();
  385. + }
  386. +
  387. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/NetworkInterface.java openjdk/jdk/src/share/classes/java/net/NetworkInterface.java
  388. +--- openjdk.orig/jdk/src/share/classes/java/net/NetworkInterface.java 2013-04-16 00:41:13.000000000 +0200
  389. ++++ openjdk/jdk/src/share/classes/java/net/NetworkInterface.java 2013-11-15 13:51:09.000000000 +0100
  390. +@@ -53,7 +53,7 @@
  391. + private static final int defaultIndex; /* index of defaultInterface */
  392. +
  393. + static {
  394. +- AccessController.doPrivileged(new LoadLibraryAction("net"));
  395. ++ AccessController.doPrivileged(new LoadLibraryAction("javanet"));
  396. + init();
  397. + defaultInterface = DefaultInterface.getDefault();
  398. + if (defaultInterface != null) {
  399. +diff -Nur openjdk.orig/jdk/src/share/classes/sun/net/sdp/SdpSupport.java openjdk/jdk/src/share/classes/sun/net/sdp/SdpSupport.java
  400. +--- openjdk.orig/jdk/src/share/classes/sun/net/sdp/SdpSupport.java 2013-04-16 00:41:13.000000000 +0200
  401. ++++ openjdk/jdk/src/share/classes/sun/net/sdp/SdpSupport.java 2013-11-15 13:51:09.000000000 +0100
  402. +@@ -76,6 +76,6 @@
  403. +
  404. + static {
  405. + AccessController.doPrivileged(
  406. +- new sun.security.action.LoadLibraryAction("net"));
  407. ++ new sun.security.action.LoadLibraryAction("javanet"));
  408. + }
  409. + }
  410. +diff -Nur openjdk.orig/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java openjdk/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java
  411. +--- openjdk.orig/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java 2013-04-16 00:41:13.000000000 +0200
  412. ++++ openjdk/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java 2013-11-15 13:51:09.000000000 +0100
  413. +@@ -95,7 +95,7 @@
  414. + }});
  415. + if (b != null && b.booleanValue()) {
  416. + java.security.AccessController.doPrivileged(
  417. +- new sun.security.action.LoadLibraryAction("net"));
  418. ++ new sun.security.action.LoadLibraryAction("javanet"));
  419. + hasSystemProxies = init();
  420. + }
  421. + }
  422. +diff -Nur openjdk.orig/jdk/src/share/classes/sun/nio/ch/Util.java openjdk/jdk/src/share/classes/sun/nio/ch/Util.java
  423. +--- openjdk.orig/jdk/src/share/classes/sun/nio/ch/Util.java 2013-04-16 00:41:13.000000000 +0200
  424. ++++ openjdk/jdk/src/share/classes/sun/nio/ch/Util.java 2013-11-15 13:51:09.000000000 +0100
  425. +@@ -483,7 +483,7 @@
  426. + return;
  427. + loaded = true;
  428. + java.security.AccessController
  429. +- .doPrivileged(new sun.security.action.LoadLibraryAction("net"));
  430. ++ .doPrivileged(new sun.security.action.LoadLibraryAction("javanet"));
  431. + java.security.AccessController
  432. + .doPrivileged(new sun.security.action.LoadLibraryAction("nio"));
  433. + // IOUtil must be initialized; Its native methods are called from
  434. +diff -Nur openjdk.orig/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java openjdk/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java
  435. +--- openjdk.orig/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java 2013-04-16 00:41:13.000000000 +0200
  436. ++++ openjdk/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java 2013-11-15 13:51:09.000000000 +0100
  437. +@@ -247,7 +247,7 @@
  438. +
  439. + static {
  440. + java.security.AccessController.doPrivileged(
  441. +- new sun.security.action.LoadLibraryAction("net"));
  442. ++ new sun.security.action.LoadLibraryAction("javanet"));
  443. + }
  444. +
  445. + }
  446. +diff -Nur openjdk.orig/jdk/src/solaris/native/sun/awt/awt_InputMethod.c openjdk/jdk/src/solaris/native/sun/awt/awt_InputMethod.c
  447. +--- openjdk.orig/jdk/src/solaris/native/sun/awt/awt_InputMethod.c 2013-04-16 00:41:13.000000000 +0200
  448. ++++ openjdk/jdk/src/solaris/native/sun/awt/awt_InputMethod.c 2013-11-15 13:51:09.000000000 +0100
  449. +@@ -246,7 +246,8 @@
  450. + if (wcs == NULL)
  451. + return NULL;
  452. +
  453. +- n = len*MB_CUR_MAX + 1;
  454. ++ //evil hack for uclibc
  455. ++ n = len*1 + 1;
  456. +
  457. + mbs = (char *) malloc(n * sizeof(char));
  458. + if (mbs == NULL) {
  459. +diff -Nur openjdk.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c
  460. +--- openjdk.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c 2013-04-16 00:41:13.000000000 +0200
  461. ++++ openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c 2013-11-15 13:51:09.000000000 +0100
  462. +@@ -27,9 +27,6 @@
  463. + #include <X11/Xutil.h>
  464. + #include <X11/Xos.h>
  465. + #include <X11/Xatom.h>
  466. +-#ifdef __linux__
  467. +-#include <execinfo.h>
  468. +-#endif
  469. +
  470. + #include <jvm.h>
  471. + #include <jni.h>
  472. +@@ -785,25 +782,6 @@
  473. + return ret;
  474. + }
  475. +
  476. +-#ifdef __linux__
  477. +-void print_stack(void)
  478. +-{
  479. +- void *array[10];
  480. +- size_t size;
  481. +- char **strings;
  482. +- size_t i;
  483. +-
  484. +- size = backtrace (array, 10);
  485. +- strings = backtrace_symbols (array, size);
  486. +-
  487. +- fprintf (stderr, "Obtained %zd stack frames.\n", size);
  488. +-
  489. +- for (i = 0; i < size; i++)
  490. +- fprintf (stderr, "%s\n", strings[i]);
  491. +-
  492. +- free (strings);
  493. +-}
  494. +-#endif
  495. +
  496. + Window get_xawt_root_shell(JNIEnv *env) {
  497. + static jclass classXRootWindow = NULL;
  498. +diff -Nur openjdk.orig/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java openjdk/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java
  499. +--- openjdk.orig/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java 2013-04-16 00:41:13.000000000 +0200
  500. ++++ openjdk/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java 2013-11-15 13:51:09.000000000 +0100
  501. +@@ -159,7 +159,7 @@
  502. +
  503. + static {
  504. + java.security.AccessController.doPrivileged(
  505. +- new sun.security.action.LoadLibraryAction("net"));
  506. ++ new sun.security.action.LoadLibraryAction("javanet"));
  507. + init0();
  508. +
  509. + // start the address listener thread
  510. +diff -Nur openjdk.orig/Makefile openjdk/Makefile
  511. +--- openjdk.orig/Makefile 2013-03-08 17:04:19.000000000 +0100
  512. ++++ openjdk/Makefile 2013-11-15 13:51:09.000000000 +0100
  513. +@@ -53,9 +53,7 @@
  514. + REL_JDK_DEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-debug)/$(JDK_IMAGE_DIRNAME)
  515. + REL_JDK_FASTDEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-fastdebug)/$(JDK_IMAGE_DIRNAME)
  516. +
  517. +-ifndef TOPDIR
  518. +- TOPDIR:=.
  519. +-endif
  520. ++TOPDIR:=.
  521. +
  522. + ifndef JDK_TOPDIR
  523. + JDK_TOPDIR=$(TOPDIR)/jdk