1
0

openadk.patch 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703
  1. diff -Nur icedtea-2.4.7.orig/Makefile.in icedtea-2.4.7/Makefile.in
  2. --- icedtea-2.4.7.orig/Makefile.in 2014-04-16 06:20:44.689988653 +0200
  3. +++ icedtea-2.4.7/Makefile.in 2014-05-01 13:34:58.421434811 +0200
  4. @@ -712,7 +712,7 @@
  5. $(am__append_14) $(am__append_15) $(DISTRIBUTION_PATCHES)
  6. # Bootstrapping patches
  7. -ICEDTEA_BOOT_PATCHES = patches/boot/javafiles.patch \
  8. +ICEDTEA_BOOT_PATCHES = patches/openadk.patch patches/boot/javafiles.patch \
  9. patches/boot/ant-javac.patch patches/boot/corba-idlj.patch \
  10. patches/boot/corba-no-gen.patch patches/boot/corba-orb.patch \
  11. patches/boot/demos.patch patches/boot/fphexconstants.patch \
  12. diff -Nur icedtea-2.4.7.orig/patches/openadk.patch icedtea-2.4.7/patches/openadk.patch
  13. --- icedtea-2.4.7.orig/patches/openadk.patch 1970-01-01 01:00:00.000000000 +0100
  14. +++ icedtea-2.4.7/patches/openadk.patch 2014-05-01 20:04:14.470603940 +0200
  15. @@ -0,0 +1,687 @@
  16. +diff -Nur openjdk.orig/hotspot/src/os/linux/vm/os_linux.cpp openjdk/hotspot/src/os/linux/vm/os_linux.cpp
  17. +--- openjdk.orig/hotspot/src/os/linux/vm/os_linux.cpp 2014-01-28 18:58:08.000000000 +0100
  18. ++++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp 2014-02-10 11:31:48.000000000 +0100
  19. +@@ -112,7 +112,6 @@
  20. + # include <string.h>
  21. + # include <syscall.h>
  22. + # include <sys/sysinfo.h>
  23. +-# include <gnu/libc-version.h>
  24. + # include <sys/ipc.h>
  25. + # include <sys/shm.h>
  26. + # include <link.h>
  27. +@@ -650,9 +649,7 @@
  28. + os::Linux::set_glibc_version(str);
  29. + } else {
  30. + // _CS_GNU_LIBC_VERSION is not supported, try gnu_get_libc_version()
  31. +- static char _gnu_libc_version[32];
  32. +- jio_snprintf(_gnu_libc_version, sizeof(_gnu_libc_version),
  33. +- "glibc %s %s", gnu_get_libc_version(), gnu_get_libc_release());
  34. ++ static char _gnu_libc_version[32] = "2.9";
  35. + os::Linux::set_glibc_version(_gnu_libc_version);
  36. + }
  37. +
  38. +@@ -2951,10 +2948,7 @@
  39. + // If we are running with earlier version, which did not have symbol versions,
  40. + // we should use the base version.
  41. + void* os::Linux::libnuma_dlsym(void* handle, const char *name) {
  42. +- void *f = dlvsym(handle, name, "libnuma_1.1");
  43. +- if (f == NULL) {
  44. +- f = dlsym(handle, name);
  45. +- }
  46. ++ void *f = dlsym(handle, name);
  47. + return f;
  48. + }
  49. +
  50. +@@ -5312,7 +5306,21 @@
  51. + // Linux doesn't yet have a (official) notion of processor sets,
  52. + // so just return the system wide load average.
  53. + int os::loadavg(double loadavg[], int nelem) {
  54. +- return ::getloadavg(loadavg, nelem);
  55. ++ FILE *LOADAVG;
  56. ++ double avg[3] = { 0.0, 0.0, 0.0 };
  57. ++ int i, res = -1;;
  58. ++
  59. ++ if ((LOADAVG = fopen("/proc/loadavg", "r"))) {
  60. ++ fscanf(LOADAVG, "%lf %lf %lf", &avg[0], &avg[1], &avg[2]);
  61. ++ res = 0;
  62. ++ fclose(LOADAVG);
  63. ++ }
  64. ++
  65. ++ for (i = 0; (i < nelem) && (i < 3); i++) {
  66. ++ loadavg[i] = avg[i];
  67. ++ }
  68. ++
  69. ++ return res;
  70. + }
  71. +
  72. + void os::pause() {
  73. +diff -Nur openjdk.orig/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp
  74. +--- openjdk.orig/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp 2014-01-28 18:58:08.000000000 +0100
  75. ++++ openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp 2014-02-10 11:31:48.000000000 +0100
  76. +@@ -253,7 +253,7 @@
  77. + #elif defined(__APPLE__)
  78. + inline int g_isnan(double f) { return isnan(f); }
  79. + #elif defined(LINUX) || defined(_ALLBSD_SOURCE)
  80. +-inline int g_isnan(float f) { return isnanf(f); }
  81. ++inline int g_isnan(float f) { return __isnanf(f); }
  82. + inline int g_isnan(double f) { return isnan(f); }
  83. + #else
  84. + #error "missing platform-specific definition here"
  85. +@@ -267,8 +267,8 @@
  86. +
  87. + // Checking for finiteness
  88. +
  89. +-inline int g_isfinite(jfloat f) { return finite(f); }
  90. +-inline int g_isfinite(jdouble f) { return finite(f); }
  91. ++inline int g_isfinite(jfloat f) { return isfinite(f); }
  92. ++inline int g_isfinite(jdouble f) { return isfinite(f); }
  93. +
  94. +
  95. + // Wide characters
  96. +diff -Nur openjdk.orig/jdk/make/com/sun/java/pack/Makefile openjdk/jdk/make/com/sun/java/pack/Makefile
  97. +--- openjdk.orig/jdk/make/com/sun/java/pack/Makefile 2014-01-28 19:02:26.000000000 +0100
  98. ++++ openjdk/jdk/make/com/sun/java/pack/Makefile 2014-02-10 11:31:48.000000000 +0100
  99. +@@ -79,7 +79,7 @@
  100. + OTHER_CXXFLAGS += $(ZLIB_CFLAGS) -DSYSTEM_ZLIB
  101. + endif
  102. + else
  103. +- OTHER_CXXFLAGS += -DNO_ZLIB -DUNPACK_JNI
  104. ++ CXXFLAGS_COMMON += -DNO_ZLIB -DUNPACK_JNI
  105. + OTHER_LDLIBS += $(JVMLIB)
  106. + endif
  107. +
  108. +diff -Nur openjdk.orig/jdk/make/com/sun/nio/sctp/Makefile openjdk/jdk/make/com/sun/nio/sctp/Makefile
  109. +--- openjdk.orig/jdk/make/com/sun/nio/sctp/Makefile 2014-01-28 19:02:26.000000000 +0100
  110. ++++ openjdk/jdk/make/com/sun/nio/sctp/Makefile 2014-02-10 11:31:48.000000000 +0100
  111. +@@ -64,7 +64,7 @@
  112. + COMPILER_WARNINGS_FATAL=true
  113. + endif
  114. + #OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread -ldl
  115. +-OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -lnio -lnet -lpthread -ldl
  116. ++OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -lnio -ljavanet -lpthread -ldl
  117. + endif
  118. + ifeq ($(PLATFORM), solaris)
  119. + #LIBSCTP = -lsctp
  120. +diff -Nur openjdk.orig/jdk/make/common/Defs.gmk openjdk/jdk/make/common/Defs.gmk
  121. +--- openjdk.orig/jdk/make/common/Defs.gmk 2014-01-28 19:02:26.000000000 +0100
  122. ++++ openjdk/jdk/make/common/Defs.gmk 2014-02-10 11:31:48.000000000 +0100
  123. +@@ -204,7 +204,7 @@
  124. + ifeq ($(PLATFORM), macosx)
  125. + FREETYPE_HEADERS_PATH = /usr/X11R6/include
  126. + else
  127. +- FREETYPE_HEADERS_PATH = /usr/include
  128. ++ FREETYPE_HEADERS_PATH = /usr/include/disabled
  129. + endif
  130. + endif
  131. + endif
  132. +diff -Nur openjdk.orig/jdk/make/common/Sanity.gmk openjdk/jdk/make/common/Sanity.gmk
  133. +--- openjdk.orig/jdk/make/common/Sanity.gmk 2014-01-28 19:02:26.000000000 +0100
  134. ++++ openjdk/jdk/make/common/Sanity.gmk 2014-02-12 12:28:47.000000000 +0100
  135. +@@ -91,8 +91,7 @@
  136. + sane-ld_run_path \
  137. + sane-alt_bootdir \
  138. + sane-bootdir \
  139. +- sane-local-bootdir \
  140. +- sane-alsa-headers
  141. ++ sane-local-bootdir
  142. +
  143. + ifdef OPENJDK
  144. + sanity-all:: sane-freetype
  145. +diff -Nur openjdk.orig/jdk/make/common/shared/Platform.gmk openjdk/jdk/make/common/shared/Platform.gmk
  146. +--- openjdk.orig/jdk/make/common/shared/Platform.gmk 2014-01-28 19:02:26.000000000 +0100
  147. ++++ openjdk/jdk/make/common/shared/Platform.gmk 2014-02-10 11:32:16.000000000 +0100
  148. +@@ -160,9 +160,6 @@
  149. + else
  150. + mach := $(shell uname -m)
  151. + endif
  152. +- ifneq (,$(wildcard /usr/bin/dpkg-architecture))
  153. +- mach := $(shell (dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null || echo $(mach)) | sed 's/arm64/aarch64/;s/powerpc$$/ppc/;s/hppa/parisc/;s/ppc64el/ppc64le/')
  154. +- endif
  155. + archExpr = case "$(mach)" in \
  156. + i[3-9]86) \
  157. + echo i586 \
  158. +diff -Nur openjdk.orig/jdk/make/common/shared/Sanity.gmk openjdk/jdk/make/common/shared/Sanity.gmk
  159. +--- openjdk.orig/jdk/make/common/shared/Sanity.gmk 2014-01-28 19:02:26.000000000 +0100
  160. ++++ openjdk/jdk/make/common/shared/Sanity.gmk 2014-02-12 12:31:12.000000000 +0100
  161. +@@ -114,11 +114,6 @@
  162. + elif [ -f /etc/lsb-release ] ; then \
  163. + $(EGREP) DISTRIB_RELEASE /etc/lsb-release | $(SED) -e 's@.*DISTRIB_RELEASE=\(.*\)@\1@'; \
  164. + fi)
  165. +- ALSA_INCLUDE=/usr/include/alsa/version.h
  166. +- ALSA_LIBRARY=/usr/lib/libasound.so
  167. +- _ALSA_VERSION := $(shell $(EGREP) SND_LIB_VERSION_STR $(ALSA_INCLUDE) | \
  168. +- $(SED) -e 's@.*"\(.*\)".*@\1@' )
  169. +- ALSA_VERSION := $(call GetVersion,$(_ALSA_VERSION))
  170. + endif
  171. +
  172. + ifeq ($(PLATFORM), macosx)
  173. +@@ -225,7 +220,6 @@
  174. + sane-compiler \
  175. + sane-link \
  176. + sane-cacerts \
  177. +- sane-alsa-headers \
  178. + sane-ant_version \
  179. + sane-zip_version \
  180. + sane-unzip_version \
  181. +@@ -1381,34 +1375,6 @@
  182. + endif
  183. + endif
  184. +
  185. +-######################################################
  186. +-# Check that ALSA headers and libs are installed and
  187. +-# that the header has the right version. We only
  188. +-# need /usr/include/alsa/version.h and /usr/lib/libasound.so
  189. +-######################################################
  190. +-
  191. +-ifdef REQUIRED_ALSA_VERSION
  192. +- ALSA_CHECK := $(call CheckVersions,$(ALSA_VERSION),$(REQUIRED_ALSA_VERSION))
  193. +-endif
  194. +-sane-alsa-headers:
  195. +-ifdef REQUIRED_ALSA_VERSION
  196. +- @if [ "$(ALSA_CHECK)" != "missing" ] ; then \
  197. +- if [ "$(ALSA_CHECK)" != "same" -a "$(ALSA_CHECK)" != "newer" ] ; then \
  198. +- $(ECHO) "ERROR: The ALSA version must be $(REQUIRED_ALSA_VERSION) or higher. \n" \
  199. +- " You have the following ALSA version installed: $${alsa_version} \n" \
  200. +- " Please reinstall ALSA (drivers and lib). You can download \n" \
  201. +- " the source distribution from http://www.alsa-project.org \n" \
  202. +- " or go to http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages. \n" \
  203. +- "" >> $(ERROR_FILE) ; \
  204. +- fi ; \
  205. +- else \
  206. +- $(ECHO) "ERROR: You seem to not have installed ALSA $(REQUIRED_ALSA_VERSION) or higher. \n" \
  207. +- " Please install ALSA (drivers and lib). You can download the \n" \
  208. +- " source distribution from http://www.alsa-project.org or go to \n" \
  209. +- " http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages. \n" \
  210. +- "" >> $(ERROR_FILE) ; \
  211. +- fi
  212. +-endif
  213. +
  214. + # If a sanity file doesn't exist, just make sure it's dir exists
  215. + $(SANITY_FILES):
  216. +diff -Nur openjdk.orig/jdk/make/java/instrument/Makefile openjdk/jdk/make/java/instrument/Makefile
  217. +--- openjdk.orig/jdk/make/java/instrument/Makefile 2014-01-28 19:02:26.000000000 +0100
  218. ++++ openjdk/jdk/make/java/instrument/Makefile 2014-02-10 11:31:49.000000000 +0100
  219. +@@ -140,6 +140,8 @@
  220. + # We don't want to link against -ljava
  221. + JAVALIB=
  222. +
  223. ++OTHER_LDLIBS += -liconv
  224. ++
  225. + #
  226. + # Add to ambient vpath so we pick up the library files
  227. + #
  228. +diff -Nur openjdk.orig/jdk/make/java/net/Makefile openjdk/jdk/make/java/net/Makefile
  229. +--- openjdk.orig/jdk/make/java/net/Makefile 2014-01-28 19:02:26.000000000 +0100
  230. ++++ openjdk/jdk/make/java/net/Makefile 2014-02-10 11:31:49.000000000 +0100
  231. +@@ -25,7 +25,7 @@
  232. +
  233. + BUILDDIR = ../..
  234. + PACKAGE = java.net
  235. +-LIBRARY = net
  236. ++LIBRARY = javanet
  237. + PRODUCT = sun
  238. + include $(BUILDDIR)/common/Defs.gmk
  239. +
  240. +diff -Nur openjdk.orig/jdk/make/java/nio/Makefile openjdk/jdk/make/java/nio/Makefile
  241. +--- openjdk.orig/jdk/make/java/nio/Makefile 2014-01-28 19:02:26.000000000 +0100
  242. ++++ openjdk/jdk/make/java/nio/Makefile 2014-02-10 11:31:49.000000000 +0100
  243. +@@ -373,7 +373,7 @@
  244. + endif
  245. +
  246. + ifeq ($(PLATFORM), linux)
  247. +- OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread $(LIBDL)
  248. ++ OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -ljavanet -lpthread $(LIBDL)
  249. + ifdef USE_SYSTEM_GIO
  250. + OTHER_LDLIBS += $(GIO_LIBS)
  251. + OTHER_INCLUDES += $(GIO_CFLAGS) -DUSE_SYSTEM_GIO
  252. +@@ -927,7 +927,7 @@
  253. +
  254. + $(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
  255. + $(prep-target)
  256. +- ($(CD) $(TEMPDIR); $(NIO_CC) $(CPPFLAGS) $(LDDFLAGS) \
  257. ++ ($(CD) $(TEMPDIR); $(HOST_CC) $(CPPFLAGS_FOR_BUILD) $(LDDFLAGS) \
  258. + -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
  259. +
  260. + ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
  261. +@@ -963,7 +963,7 @@
  262. +
  263. + $(GENUC_EXE) : $(GENUC_SRC)
  264. + $(prep-target)
  265. +- $(NIO_CC) $(CPPFLAGS) -o $@ $(GENUC_SRC)
  266. ++ $(HOST_CC) $(CPPFLAGS_FOR_BUILD) -o $@ $(GENUC_SRC)
  267. +
  268. + ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
  269. + $(SFS_GEN)/UnixConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/UnixConstants-$(PLATFORM)-$(ARCH).java
  270. +diff -Nur openjdk.orig/jdk/make/java/npt/Makefile openjdk/jdk/make/java/npt/Makefile
  271. +--- openjdk.orig/jdk/make/java/npt/Makefile 2014-01-28 19:02:26.000000000 +0100
  272. ++++ openjdk/jdk/make/java/npt/Makefile 2014-02-10 11:31:49.000000000 +0100
  273. +@@ -64,6 +64,8 @@
  274. + # We don't want to link against -ljava
  275. + JAVALIB=
  276. +
  277. ++OTHER_LDLIBS += -liconv
  278. ++
  279. + # Add -export options to explicitly spell exported symbols
  280. + ifeq ($(PLATFORM), windows)
  281. + OTHER_LCF += -export:nptInitialize -export:nptTerminate
  282. +diff -Nur openjdk.orig/jdk/make/sun/awt/mawt.gmk openjdk/jdk/make/sun/awt/mawt.gmk
  283. +--- openjdk.orig/jdk/make/sun/awt/mawt.gmk 2014-01-28 19:02:26.000000000 +0100
  284. ++++ openjdk/jdk/make/sun/awt/mawt.gmk 2014-02-10 11:31:49.000000000 +0100
  285. +@@ -151,22 +151,6 @@
  286. + #endif
  287. +
  288. + LIBXTST = -lXtst
  289. +-ifeq ($(PLATFORM), linux)
  290. +- ifeq ($(ARCH_DATA_MODEL), 64)
  291. +- # XXX what about the rest of them?
  292. +- LIBXT = -lXt
  293. +- else
  294. +- # Allows for builds on Debian GNU Linux, X11 is in a different place
  295. +- LIBXT = $(firstword $(wildcard $(OPENWIN_LIB)/libXt.a) \
  296. +- $(wildcard /usr/lib/libXt.a))
  297. +- LIBSM = $(firstword $(wildcard $(OPENWIN_LIB)/libSM.a) \
  298. +- $(wildcard /usr/lib/libSM.a))
  299. +- LIBICE = $(firstword $(wildcard $(OPENWIN_LIB)/libICE.a) \
  300. +- $(wildcard /usr/lib/libICE.a))
  301. +- LIBXTST = $(firstword $(wildcard $(OPENWIN_LIB)/libXtst.a) \
  302. +- $(wildcard /usr/lib/libXtst.a))
  303. +- endif
  304. +-endif
  305. +
  306. + # Use -lXmu for EditRes support
  307. + LIBXMU_DBG = -lXmu
  308. +@@ -181,7 +165,7 @@
  309. + OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH
  310. + # XXX what is this define below? Isn't it motif-related?
  311. + OTHER_CFLAGS += -DXMSTRINGDEFINES=1
  312. +-OTHER_LDLIBS = $(LIBXMU) $(LIBXTST) -lXext $(LIBXT) $(LIBSM) $(LIBICE) -lX11 -lXi
  313. ++OTHER_LDLIBS = $(LIBXMU) $(LIBXTST) -lXext -lXt -lSM -lICE -lX11 -lXi
  314. + endif
  315. +
  316. + endif
  317. +@@ -230,11 +214,6 @@
  318. + CPPFLAGS += -I$(PLATFORM_SRC)/native/common/deps/fontconfig2
  319. + endif
  320. +
  321. +-ifndef HEADLESS
  322. +-CPPFLAGS += -I$(OPENWIN_HOME)/include
  323. +-LDFLAGS += -L$(OPENWIN_LIB)
  324. +-
  325. +-endif # !HEADLESS
  326. +
  327. + CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
  328. + -I$(SHARE_SRC)/native/$(PKGDIR)/../font \
  329. +@@ -269,11 +248,6 @@
  330. + endif # !HEADLESS
  331. + endif # PLATFORM
  332. +
  333. +-ifeq ($(PLATFORM), linux)
  334. +- # Checking for the X11/extensions headers at the additional location
  335. +- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \
  336. +- $(wildcard /usr/include/X11/extensions))
  337. +-endif
  338. +
  339. + ifeq ($(PLATFORM), macosx))
  340. + CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions \
  341. +diff -Nur openjdk.orig/jdk/make/sun/splashscreen/Makefile openjdk/jdk/make/sun/splashscreen/Makefile
  342. +--- openjdk.orig/jdk/make/sun/splashscreen/Makefile 2014-01-28 19:02:26.000000000 +0100
  343. ++++ openjdk/jdk/make/sun/splashscreen/Makefile 2014-02-10 11:31:50.000000000 +0100
  344. +@@ -55,6 +55,8 @@
  345. +
  346. + JAVALIB=
  347. +
  348. ++OTHER_LDLIBS += -liconv
  349. ++
  350. + #
  351. + # C Flags
  352. + #
  353. +diff -Nur openjdk.orig/jdk/make/sun/xawt/Makefile openjdk/jdk/make/sun/xawt/Makefile
  354. +--- openjdk.orig/jdk/make/sun/xawt/Makefile 2014-01-28 19:02:26.000000000 +0100
  355. ++++ openjdk/jdk/make/sun/xawt/Makefile 2014-02-10 11:31:50.000000000 +0100
  356. +@@ -292,16 +292,10 @@
  357. + SIZERS = $(SIZER).32
  358. + SIZERS_C = $(SIZER_32_C)
  359. + SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
  360. +-ifdef CROSS_COMPILE_ARCH
  361. +-CFLAGS_32 = -m32
  362. +-endif
  363. + else # !32
  364. + SIZERS = $(SIZER).64
  365. + SIZERS_C = $(SIZER_64_C)
  366. + SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64
  367. +-ifdef CROSS_COMPILE_ARCH
  368. +-CFLAGS_64 = -m64
  369. +-endif
  370. + endif # 32
  371. + endif # !macosx
  372. + endif # solaris
  373. +@@ -337,11 +331,7 @@
  374. + WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class
  375. + XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
  376. +
  377. +-ifndef CROSS_COMPILE_ARCH
  378. +-SIZERS_CC = $(CC)
  379. +-else
  380. +-SIZERS_CC = $(HOST_CC)
  381. +-endif
  382. ++SIZERS_CC = $(CC) -static
  383. +
  384. + $(SIZERS): $(SIZERS_C)
  385. + $(prep-target)
  386. +@@ -364,7 +354,7 @@
  387. + $(CHMOD) +w $@;\
  388. + else \
  389. + $(ECHO) GENERATING $@; \
  390. +- $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
  391. ++ $(QEMU) $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
  392. + fi
  393. + @if [ "$(DOCOMPARE)$(suffix $@)" = "true.64" ]; then \
  394. + $(ECHO) COMPARING $@ and $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \
  395. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java openjdk/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
  396. +--- openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java 2014-01-28 19:02:26.000000000 +0100
  397. ++++ openjdk/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java 2014-02-10 11:31:50.000000000 +0100
  398. +@@ -69,7 +69,7 @@
  399. + */
  400. + static {
  401. + java.security.AccessController.doPrivileged(
  402. +- new sun.security.action.LoadLibraryAction("net"));
  403. ++ new sun.security.action.LoadLibraryAction("javanet"));
  404. + }
  405. +
  406. + /**
  407. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java openjdk/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java
  408. +--- openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java 2014-01-28 19:02:26.000000000 +0100
  409. ++++ openjdk/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java 2014-02-10 11:31:50.000000000 +0100
  410. +@@ -78,7 +78,7 @@
  411. + */
  412. + static {
  413. + java.security.AccessController.doPrivileged(
  414. +- new sun.security.action.LoadLibraryAction("net"));
  415. ++ new sun.security.action.LoadLibraryAction("javanet"));
  416. + }
  417. +
  418. + /**
  419. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/DatagramPacket.java openjdk/jdk/src/share/classes/java/net/DatagramPacket.java
  420. +--- openjdk.orig/jdk/src/share/classes/java/net/DatagramPacket.java 2014-01-28 19:02:26.000000000 +0100
  421. ++++ openjdk/jdk/src/share/classes/java/net/DatagramPacket.java 2014-02-10 11:31:50.000000000 +0100
  422. +@@ -47,7 +47,7 @@
  423. + */
  424. + static {
  425. + java.security.AccessController.doPrivileged(
  426. +- new sun.security.action.LoadLibraryAction("net"));
  427. ++ new sun.security.action.LoadLibraryAction("javanet"));
  428. + init();
  429. + }
  430. +
  431. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/InetAddress.java openjdk/jdk/src/share/classes/java/net/InetAddress.java
  432. +--- openjdk.orig/jdk/src/share/classes/java/net/InetAddress.java 2014-01-28 19:02:26.000000000 +0100
  433. ++++ openjdk/jdk/src/share/classes/java/net/InetAddress.java 2014-02-10 11:31:50.000000000 +0100
  434. +@@ -267,7 +267,7 @@
  435. + static {
  436. + preferIPv6Address = java.security.AccessController.doPrivileged(
  437. + new GetBooleanAction("java.net.preferIPv6Addresses")).booleanValue();
  438. +- AccessController.doPrivileged(new LoadLibraryAction("net"));
  439. ++ AccessController.doPrivileged(new LoadLibraryAction("javanet"));
  440. + init();
  441. + }
  442. +
  443. +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/NetworkInterface.java openjdk/jdk/src/share/classes/java/net/NetworkInterface.java
  444. +--- openjdk.orig/jdk/src/share/classes/java/net/NetworkInterface.java 2014-01-28 19:02:26.000000000 +0100
  445. ++++ openjdk/jdk/src/share/classes/java/net/NetworkInterface.java 2014-02-10 11:31:50.000000000 +0100
  446. +@@ -53,7 +53,7 @@
  447. + private static final int defaultIndex; /* index of defaultInterface */
  448. +
  449. + static {
  450. +- AccessController.doPrivileged(new LoadLibraryAction("net"));
  451. ++ AccessController.doPrivileged(new LoadLibraryAction("javanet"));
  452. + init();
  453. + defaultInterface = DefaultInterface.getDefault();
  454. + if (defaultInterface != null) {
  455. +diff -Nur openjdk.orig/jdk/src/share/classes/sun/net/sdp/SdpSupport.java openjdk/jdk/src/share/classes/sun/net/sdp/SdpSupport.java
  456. +--- openjdk.orig/jdk/src/share/classes/sun/net/sdp/SdpSupport.java 2014-01-28 19:02:26.000000000 +0100
  457. ++++ openjdk/jdk/src/share/classes/sun/net/sdp/SdpSupport.java 2014-02-10 11:31:50.000000000 +0100
  458. +@@ -76,6 +76,6 @@
  459. +
  460. + static {
  461. + AccessController.doPrivileged(
  462. +- new sun.security.action.LoadLibraryAction("net"));
  463. ++ new sun.security.action.LoadLibraryAction("javanet"));
  464. + }
  465. + }
  466. +diff -Nur openjdk.orig/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java openjdk/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java
  467. +--- openjdk.orig/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java 2014-01-28 19:02:26.000000000 +0100
  468. ++++ openjdk/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java 2014-02-10 11:31:50.000000000 +0100
  469. +@@ -95,7 +95,7 @@
  470. + }});
  471. + if (b != null && b.booleanValue()) {
  472. + java.security.AccessController.doPrivileged(
  473. +- new sun.security.action.LoadLibraryAction("net"));
  474. ++ new sun.security.action.LoadLibraryAction("javanet"));
  475. + hasSystemProxies = init();
  476. + }
  477. + }
  478. +diff -Nur openjdk.orig/jdk/src/share/classes/sun/nio/ch/Util.java openjdk/jdk/src/share/classes/sun/nio/ch/Util.java
  479. +--- openjdk.orig/jdk/src/share/classes/sun/nio/ch/Util.java 2014-01-28 19:02:26.000000000 +0100
  480. ++++ openjdk/jdk/src/share/classes/sun/nio/ch/Util.java 2014-02-10 11:31:50.000000000 +0100
  481. +@@ -483,7 +483,7 @@
  482. + return;
  483. + loaded = true;
  484. + java.security.AccessController
  485. +- .doPrivileged(new sun.security.action.LoadLibraryAction("net"));
  486. ++ .doPrivileged(new sun.security.action.LoadLibraryAction("javanet"));
  487. + java.security.AccessController
  488. + .doPrivileged(new sun.security.action.LoadLibraryAction("nio"));
  489. + // IOUtil must be initialized; Its native methods are called from
  490. +diff -Nur openjdk.orig/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java openjdk/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java
  491. +--- openjdk.orig/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java 2014-01-28 19:02:26.000000000 +0100
  492. ++++ openjdk/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java 2014-02-10 11:31:50.000000000 +0100
  493. +@@ -247,7 +247,7 @@
  494. +
  495. + static {
  496. + java.security.AccessController.doPrivileged(
  497. +- new sun.security.action.LoadLibraryAction("net"));
  498. ++ new sun.security.action.LoadLibraryAction("javanet"));
  499. + }
  500. +
  501. + }
  502. +diff -Nur openjdk.orig/jdk/src/solaris/native/sun/awt/awt_InputMethod.c openjdk/jdk/src/solaris/native/sun/awt/awt_InputMethod.c
  503. +--- openjdk.orig/jdk/src/solaris/native/sun/awt/awt_InputMethod.c 2014-01-28 19:02:26.000000000 +0100
  504. ++++ openjdk/jdk/src/solaris/native/sun/awt/awt_InputMethod.c 2014-02-10 11:31:50.000000000 +0100
  505. +@@ -246,7 +246,8 @@
  506. + if (wcs == NULL)
  507. + return NULL;
  508. +
  509. +- n = len*MB_CUR_MAX + 1;
  510. ++ //evil hack for uclibc
  511. ++ n = len*1 + 1;
  512. +
  513. + mbs = (char *) malloc(n * sizeof(char));
  514. + if (mbs == NULL) {
  515. +diff -Nur openjdk.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c
  516. +--- openjdk.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c 2014-01-28 19:02:26.000000000 +0100
  517. ++++ openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c 2014-02-10 11:31:50.000000000 +0100
  518. +@@ -27,9 +27,6 @@
  519. + #include <X11/Xutil.h>
  520. + #include <X11/Xos.h>
  521. + #include <X11/Xatom.h>
  522. +-#ifdef __linux__
  523. +-#include <execinfo.h>
  524. +-#endif
  525. +
  526. + #include <jvm.h>
  527. + #include <jni.h>
  528. +@@ -785,25 +782,6 @@
  529. + return ret;
  530. + }
  531. +
  532. +-#ifdef __linux__
  533. +-void print_stack(void)
  534. +-{
  535. +- void *array[10];
  536. +- size_t size;
  537. +- char **strings;
  538. +- size_t i;
  539. +-
  540. +- size = backtrace (array, 10);
  541. +- strings = backtrace_symbols (array, size);
  542. +-
  543. +- fprintf (stderr, "Obtained %zd stack frames.\n", size);
  544. +-
  545. +- for (i = 0; i < size; i++)
  546. +- fprintf (stderr, "%s\n", strings[i]);
  547. +-
  548. +- free (strings);
  549. +-}
  550. +-#endif
  551. +
  552. + Window get_xawt_root_shell(JNIEnv *env) {
  553. + static jclass classXRootWindow = NULL;
  554. +diff -Nur openjdk.orig/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java openjdk/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java
  555. +--- openjdk.orig/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java 2014-01-28 19:02:26.000000000 +0100
  556. ++++ openjdk/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java 2014-02-10 11:31:50.000000000 +0100
  557. +@@ -159,7 +159,7 @@
  558. +
  559. + static {
  560. + java.security.AccessController.doPrivileged(
  561. +- new sun.security.action.LoadLibraryAction("net"));
  562. ++ new sun.security.action.LoadLibraryAction("javanet"));
  563. + init0();
  564. +
  565. + // start the address listener thread
  566. +diff -Nur openjdk.orig/Makefile openjdk/Makefile
  567. +--- openjdk.orig/Makefile 2014-01-17 21:22:44.000000000 +0100
  568. ++++ openjdk/Makefile 2014-02-10 11:31:50.000000000 +0100
  569. +@@ -53,9 +53,7 @@
  570. + REL_JDK_DEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-debug)/$(JDK_IMAGE_DIRNAME)
  571. + REL_JDK_FASTDEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-fastdebug)/$(JDK_IMAGE_DIRNAME)
  572. +
  573. +-ifndef TOPDIR
  574. +- TOPDIR:=.
  575. +-endif
  576. ++TOPDIR:=.
  577. +
  578. + ifndef JDK_TOPDIR
  579. + JDK_TOPDIR=$(TOPDIR)/jdk
  580. +diff -Nur openjdk-boot.orig/hotspot/make/linux/makefiles/vm.make openjdk-boot/hotspot/make/linux/makefiles/vm.make
  581. +--- openjdk-boot.orig/hotspot/make/linux/makefiles/vm.make 2014-02-20 19:51:45.000000000 +0100
  582. ++++ openjdk-boot/hotspot/make/linux/makefiles/vm.make 2014-05-01 20:03:03.677930438 +0200
  583. +@@ -288,7 +288,7 @@
  584. + LIBS_VM += $(LIBS)
  585. + endif
  586. + ifeq ($(JVM_VARIANT_ZEROSHARK), true)
  587. +- LIBS_VM += $(LIBFFI_LIBS) $(LLVM_LIBS)
  588. ++ LIBS_VM += $(LLVM_LIBS)
  589. + LFLAGS_VM += $(LLVM_LDFLAGS)
  590. + endif
  591. +
  592. +diff -Nur openjdk-boot.orig/hotspot/make/linux/makefiles/zero.make openjdk-boot/hotspot/make/linux/makefiles/zero.make
  593. +--- openjdk-boot.orig/hotspot/make/linux/makefiles/zero.make 2014-02-20 19:51:45.000000000 +0100
  594. ++++ openjdk-boot/hotspot/make/linux/makefiles/zero.make 2014-05-01 20:03:03.677930438 +0200
  595. +@@ -33,4 +33,4 @@
  596. +
  597. + # Make sure libffi is included
  598. + CFLAGS += $(LIBFFI_CFLAGS)
  599. +-LIBS_VM += $(LIBFFI_LIBS)
  600. ++LIBS_VM += $(FFI_LDFLAGS) -Wl,-Bstatic $(LIBFFI_LIBS) -Wl,-Bdynamic
  601. +diff -Nur openjdk-boot.orig/jdk/make/common/Sanity.gmk openjdk-boot/jdk/make/common/Sanity.gmk
  602. +--- openjdk-boot.orig/jdk/make/common/Sanity.gmk 2014-04-12 01:23:06.000000000 +0200
  603. ++++ openjdk-boot/jdk/make/common/Sanity.gmk 2014-05-01 20:03:03.677930438 +0200
  604. +@@ -91,8 +91,7 @@
  605. + sane-ld_run_path \
  606. + sane-alt_bootdir \
  607. + sane-bootdir \
  608. +- sane-local-bootdir \
  609. +- sane-alsa-headers
  610. ++ sane-local-bootdir
  611. +
  612. + ifdef OPENJDK
  613. + sanity-all:: sane-freetype
  614. +diff -Nur openjdk-boot.orig/jdk/make/common/shared/Sanity.gmk openjdk-boot/jdk/make/common/shared/Sanity.gmk
  615. +--- openjdk-boot.orig/jdk/make/common/shared/Sanity.gmk 2014-04-12 01:23:06.000000000 +0200
  616. ++++ openjdk-boot/jdk/make/common/shared/Sanity.gmk 2014-05-01 20:03:03.681930476 +0200
  617. +@@ -114,11 +114,6 @@
  618. + elif [ -f /etc/lsb-release ] ; then \
  619. + $(EGREP) DISTRIB_RELEASE /etc/lsb-release | $(SED) -e 's@.*DISTRIB_RELEASE=\(.*\)@\1@'; \
  620. + fi)
  621. +- ALSA_INCLUDE=/usr/include/alsa/version.h
  622. +- ALSA_LIBRARY=/usr/lib/libasound.so
  623. +- _ALSA_VERSION := $(shell $(EGREP) SND_LIB_VERSION_STR $(ALSA_INCLUDE) | \
  624. +- $(SED) -e 's@.*"\(.*\)".*@\1@' )
  625. +- ALSA_VERSION := $(call GetVersion,$(_ALSA_VERSION))
  626. + endif
  627. +
  628. + ifeq ($(PLATFORM), macosx)
  629. +@@ -225,7 +220,6 @@
  630. + sane-compiler \
  631. + sane-link \
  632. + sane-cacerts \
  633. +- sane-alsa-headers \
  634. + sane-ant_version \
  635. + sane-zip_version \
  636. + sane-unzip_version \
  637. +@@ -1381,35 +1375,6 @@
  638. + endif
  639. + endif
  640. +
  641. +-######################################################
  642. +-# Check that ALSA headers and libs are installed and
  643. +-# that the header has the right version. We only
  644. +-# need /usr/include/alsa/version.h and /usr/lib/libasound.so
  645. +-######################################################
  646. +-
  647. +-ifdef REQUIRED_ALSA_VERSION
  648. +- ALSA_CHECK := $(call CheckVersions,$(ALSA_VERSION),$(REQUIRED_ALSA_VERSION))
  649. +-endif
  650. +-sane-alsa-headers:
  651. +-ifdef REQUIRED_ALSA_VERSION
  652. +- @if [ "$(ALSA_CHECK)" != "missing" ] ; then \
  653. +- if [ "$(ALSA_CHECK)" != "same" -a "$(ALSA_CHECK)" != "newer" ] ; then \
  654. +- $(ECHO) "ERROR: The ALSA version must be $(REQUIRED_ALSA_VERSION) or higher. \n" \
  655. +- " You have the following ALSA version installed: $${alsa_version} \n" \
  656. +- " Please reinstall ALSA (drivers and lib). You can download \n" \
  657. +- " the source distribution from http://www.alsa-project.org \n" \
  658. +- " or go to http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages. \n" \
  659. +- "" >> $(ERROR_FILE) ; \
  660. +- fi ; \
  661. +- else \
  662. +- $(ECHO) "ERROR: You seem to not have installed ALSA $(REQUIRED_ALSA_VERSION) or higher. \n" \
  663. +- " Please install ALSA (drivers and lib). You can download the \n" \
  664. +- " source distribution from http://www.alsa-project.org or go to \n" \
  665. +- " http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages. \n" \
  666. +- "" >> $(ERROR_FILE) ; \
  667. +- fi
  668. +-endif
  669. +-
  670. + # If a sanity file doesn't exist, just make sure it's dir exists
  671. + $(SANITY_FILES):
  672. + -@$(prep-target)
  673. +diff -Nur openjdk-boot.orig/jdk/make/sun/awt/mawt.gmk openjdk-boot/jdk/make/sun/awt/mawt.gmk
  674. +--- openjdk-boot.orig/jdk/make/sun/awt/mawt.gmk 2014-04-12 01:23:06.000000000 +0200
  675. ++++ openjdk-boot/jdk/make/sun/awt/mawt.gmk 2014-05-01 20:03:03.681930476 +0200
  676. +@@ -270,12 +270,6 @@
  677. + endif # !HEADLESS
  678. + endif # PLATFORM
  679. +
  680. +-ifeq ($(PLATFORM), linux)
  681. +- # Checking for the X11/extensions headers at the additional location
  682. +- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \
  683. +- $(wildcard /usr/include/X11/extensions))
  684. +-endif
  685. +-
  686. + ifeq ($(PLATFORM), macosx))
  687. + CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions \
  688. + -I$(OPENWIN_HOME)/include
  689. +diff -Nur openjdk-boot.orig/Makefile openjdk-boot/Makefile
  690. +--- openjdk-boot.orig/Makefile 2014-04-04 19:44:40.000000000 +0200
  691. ++++ openjdk-boot/Makefile 2014-05-01 20:02:54.549843414 +0200
  692. +@@ -53,9 +53,7 @@
  693. + REL_JDK_DEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-debug)/$(JDK_IMAGE_DIRNAME)
  694. + REL_JDK_FASTDEBUG_IMAGE_DIR = ../$(OUTPUTDIR_BASENAME-fastdebug)/$(JDK_IMAGE_DIRNAME)
  695. +
  696. +-ifndef TOPDIR
  697. +- TOPDIR:=.
  698. +-endif
  699. ++TOPDIR:=.
  700. +
  701. + ifndef JDK_TOPDIR
  702. + JDK_TOPDIR=$(TOPDIR)/jdk