123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730 |
- diff -Nur icedtea-2.4.7.orig/Makefile.in icedtea-2.4.7/Makefile.in
- --- icedtea-2.4.7.orig/Makefile.in 2014-04-16 06:20:44.689988653 +0200
- +++ icedtea-2.4.7/Makefile.in 2014-06-23 16:45:35.584475680 +0200
- @@ -712,7 +712,7 @@
- $(am__append_14) $(am__append_15) $(DISTRIBUTION_PATCHES)
-
- # Bootstrapping patches
- -ICEDTEA_BOOT_PATCHES = patches/boot/javafiles.patch \
- +ICEDTEA_BOOT_PATCHES = patches/openadk.patch patches/boot/javafiles.patch \
- patches/boot/ant-javac.patch patches/boot/corba-idlj.patch \
- patches/boot/corba-no-gen.patch patches/boot/corba-orb.patch \
- patches/boot/demos.patch patches/boot/fphexconstants.patch \
- @@ -2720,7 +2720,7 @@
- stamps/jamvm.stamp: $(OPENJDK_TREE) stamps/rt.stamp
- @BUILD_JAMVM_TRUE@ cd jamvm/jamvm && \
- @BUILD_JAMVM_TRUE@ ./autogen.sh --with-java-runtime-library=openjdk7 \
- -@BUILD_JAMVM_TRUE@ --prefix=$(abs_top_builddir)/jamvm/install ; \
- +@BUILD_JAMVM_TRUE@ --prefix=$(abs_top_builddir)/jamvm/install $(CONFIGURE_ARGS); \
- @BUILD_JAMVM_TRUE@ $(MAKE) ; \
- @BUILD_JAMVM_TRUE@ $(MAKE) install
- @BUILD_JAMVM_TRUE@ mkdir -p $(abs_top_builddir)/jamvm/install/hotspot/jre/lib/$(INSTALL_ARCH_DIR)/server
- diff -Nur icedtea-2.4.7.orig/patches/openadk.patch icedtea-2.4.7/patches/openadk.patch
- --- icedtea-2.4.7.orig/patches/openadk.patch 1970-01-01 01:00:00.000000000 +0100
- +++ icedtea-2.4.7/patches/openadk.patch 2014-06-24 12:36:26.511108017 +0200
- @@ -0,0 +1,705 @@
- +diff -Nur openjdk.orig/hotspot/make/linux/makefiles/zeroshark.make openjdk/hotspot/make/linux/makefiles/zeroshark.make
- +--- openjdk.orig/hotspot/make/linux/makefiles/zeroshark.make 2014-02-20 19:51:45.000000000 +0100
- ++++ openjdk/hotspot/make/linux/makefiles/zeroshark.make 2014-06-17 17:39:28.697018938 +0200
- +@@ -39,20 +39,20 @@
- +
- + offsets_arm.s: mkoffsets
- + @echo Generating assembler offsets
- +- ./mkoffsets > $@
- ++ $(QEMU) ./mkoffsets > $@
- +
- + bytecodes_arm.s: bytecodes_arm.def mkbc
- + @echo Generating ARM assembler bytecode sequences
- +- $(CXX_COMPILE) -E -x c++ - < $< | ./mkbc - $@ $(COMPILE_DONE)
- ++ $(CXX_COMPILE) -E -x c++ - < $< | $(QEMU) ./mkbc - $@ $(COMPILE_DONE)
- +
- + mkbc: $(GAMMADIR)/tools/mkbc.c
- + @echo Compiling mkbc tool
- +- $(CC_COMPILE) -o $@ $< $(COMPILE_DONE)
- ++ $(CC_COMPILE) -static -o $@ $< $(COMPILE_DONE)
- +
- + mkoffsets: asm_helper.cpp
- + @echo Compiling offset generator
- + $(QUIETLY) $(REMOVE_TARGET)
- +- $(CXX_COMPILE) -DSTATIC_OFFSETS -o $@ $< $(COMPILE_DONE)
- ++ $(CXX_COMPILE) -static -DSTATIC_OFFSETS -o $@ $< $(COMPILE_DONE)
- +
- + endif
- + endif
- +diff -Nur openjdk.orig/hotspot/src/os/linux/vm/os_linux.cpp openjdk/hotspot/src/os/linux/vm/os_linux.cpp
- +--- openjdk.orig/hotspot/src/os/linux/vm/os_linux.cpp 2014-02-20 19:51:45.000000000 +0100
- ++++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp 2014-06-17 17:39:28.701018968 +0200
- +@@ -112,7 +112,6 @@
- + # include <string.h>
- + # include <syscall.h>
- + # include <sys/sysinfo.h>
- +-# include <gnu/libc-version.h>
- + # include <sys/ipc.h>
- + # include <sys/shm.h>
- + # include <link.h>
- +@@ -650,9 +649,7 @@
- + os::Linux::set_glibc_version(str);
- + } else {
- + // _CS_GNU_LIBC_VERSION is not supported, try gnu_get_libc_version()
- +- static char _gnu_libc_version[32];
- +- jio_snprintf(_gnu_libc_version, sizeof(_gnu_libc_version),
- +- "glibc %s %s", gnu_get_libc_version(), gnu_get_libc_release());
- ++ static char _gnu_libc_version[32] = "2.9";
- + os::Linux::set_glibc_version(_gnu_libc_version);
- + }
- +
- +@@ -2951,10 +2948,7 @@
- + // If we are running with earlier version, which did not have symbol versions,
- + // we should use the base version.
- + void* os::Linux::libnuma_dlsym(void* handle, const char *name) {
- +- void *f = dlvsym(handle, name, "libnuma_1.1");
- +- if (f == NULL) {
- +- f = dlsym(handle, name);
- +- }
- ++ void *f = dlsym(handle, name);
- + return f;
- + }
- +
- +@@ -5329,7 +5323,21 @@
- + // Linux doesn't yet have a (official) notion of processor sets,
- + // so just return the system wide load average.
- + int os::loadavg(double loadavg[], int nelem) {
- +- return ::getloadavg(loadavg, nelem);
- ++ FILE *LOADAVG;
- ++ double avg[3] = { 0.0, 0.0, 0.0 };
- ++ int i, res = -1;;
- ++
- ++ if ((LOADAVG = fopen("/proc/loadavg", "r"))) {
- ++ fscanf(LOADAVG, "%lf %lf %lf", &avg[0], &avg[1], &avg[2]);
- ++ res = 0;
- ++ fclose(LOADAVG);
- ++ }
- ++
- ++ for (i = 0; (i < nelem) && (i < 3); i++) {
- ++ loadavg[i] = avg[i];
- ++ }
- ++
- ++ return res;
- + }
- +
- + void os::pause() {
- +diff -Nur openjdk.orig/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp
- +--- openjdk.orig/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp 2014-02-20 19:51:45.000000000 +0100
- ++++ openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp 2014-06-17 17:39:28.705018998 +0200
- +@@ -253,7 +253,7 @@
- + #elif defined(__APPLE__)
- + inline int g_isnan(double f) { return isnan(f); }
- + #elif defined(LINUX) || defined(_ALLBSD_SOURCE)
- +-inline int g_isnan(float f) { return isnanf(f); }
- ++inline int g_isnan(float f) { return __isnanf(f); }
- + inline int g_isnan(double f) { return isnan(f); }
- + #else
- + #error "missing platform-specific definition here"
- +@@ -267,8 +267,8 @@
- +
- + // Checking for finiteness
- +
- +-inline int g_isfinite(jfloat f) { return finite(f); }
- +-inline int g_isfinite(jdouble f) { return finite(f); }
- ++inline int g_isfinite(jfloat f) { return isfinite(f); }
- ++inline int g_isfinite(jdouble f) { return isfinite(f); }
- +
- +
- + // Wide characters
- +diff -Nur openjdk.orig/jdk/make/com/sun/java/pack/Makefile openjdk/jdk/make/com/sun/java/pack/Makefile
- +--- openjdk.orig/jdk/make/com/sun/java/pack/Makefile 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/com/sun/java/pack/Makefile 2014-06-17 17:39:28.705018998 +0200
- +@@ -79,7 +79,7 @@
- + OTHER_CXXFLAGS += $(ZLIB_CFLAGS) -DSYSTEM_ZLIB
- + endif
- + else
- +- OTHER_CXXFLAGS += -DNO_ZLIB -DUNPACK_JNI
- ++ CXXFLAGS_COMMON += -DNO_ZLIB -DUNPACK_JNI
- + OTHER_LDLIBS += $(JVMLIB)
- + endif
- +
- +diff -Nur openjdk.orig/jdk/make/com/sun/nio/sctp/Makefile openjdk/jdk/make/com/sun/nio/sctp/Makefile
- +--- openjdk.orig/jdk/make/com/sun/nio/sctp/Makefile 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/com/sun/nio/sctp/Makefile 2014-06-17 17:39:28.705018998 +0200
- +@@ -64,7 +64,7 @@
- + COMPILER_WARNINGS_FATAL=true
- + endif
- + #OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread -ldl
- +-OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -lnio -lnet -lpthread -ldl
- ++OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -lnio -ljavanet -lpthread -ldl
- + endif
- + ifeq ($(PLATFORM), solaris)
- + #LIBSCTP = -lsctp
- +diff -Nur openjdk.orig/jdk/make/common/Defs.gmk openjdk/jdk/make/common/Defs.gmk
- +--- openjdk.orig/jdk/make/common/Defs.gmk 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/common/Defs.gmk 2014-06-17 17:39:28.705018998 +0200
- +@@ -204,7 +204,7 @@
- + ifeq ($(PLATFORM), macosx)
- + FREETYPE_HEADERS_PATH = /usr/X11R6/include
- + else
- +- FREETYPE_HEADERS_PATH = /usr/include
- ++ FREETYPE_HEADERS_PATH = /usr/include/disabled
- + endif
- + endif
- + endif
- +diff -Nur openjdk.orig/jdk/make/common/Sanity.gmk openjdk/jdk/make/common/Sanity.gmk
- +--- openjdk.orig/jdk/make/common/Sanity.gmk 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/common/Sanity.gmk 2014-06-17 17:39:28.705018998 +0200
- +@@ -91,8 +91,7 @@
- + sane-ld_run_path \
- + sane-alt_bootdir \
- + sane-bootdir \
- +- sane-local-bootdir \
- +- sane-alsa-headers
- ++ sane-local-bootdir
- +
- + ifdef OPENJDK
- + sanity-all:: sane-freetype
- +diff -Nur openjdk.orig/jdk/make/common/shared/Platform.gmk openjdk/jdk/make/common/shared/Platform.gmk
- +--- openjdk.orig/jdk/make/common/shared/Platform.gmk 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/common/shared/Platform.gmk 2014-06-17 17:39:28.705018998 +0200
- +@@ -160,9 +160,6 @@
- + else
- + mach := $(shell uname -m)
- + endif
- +- ifneq (,$(wildcard /usr/bin/dpkg-architecture))
- +- 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/')
- +- endif
- + archExpr = case "$(mach)" in \
- + i[3-9]86) \
- + echo i586 \
- +diff -Nur openjdk.orig/jdk/make/common/shared/Sanity.gmk openjdk/jdk/make/common/shared/Sanity.gmk
- +--- openjdk.orig/jdk/make/common/shared/Sanity.gmk 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/common/shared/Sanity.gmk 2014-06-17 17:39:28.705018998 +0200
- +@@ -114,11 +114,6 @@
- + elif [ -f /etc/lsb-release ] ; then \
- + $(EGREP) DISTRIB_RELEASE /etc/lsb-release | $(SED) -e 's@.*DISTRIB_RELEASE=\(.*\)@\1@'; \
- + fi)
- +- ALSA_INCLUDE=/usr/include/alsa/version.h
- +- ALSA_LIBRARY=/usr/lib/libasound.so
- +- _ALSA_VERSION := $(shell $(EGREP) SND_LIB_VERSION_STR $(ALSA_INCLUDE) | \
- +- $(SED) -e 's@.*"\(.*\)".*@\1@' )
- +- ALSA_VERSION := $(call GetVersion,$(_ALSA_VERSION))
- + endif
- +
- + ifeq ($(PLATFORM), macosx)
- +@@ -225,7 +220,6 @@
- + sane-compiler \
- + sane-link \
- + sane-cacerts \
- +- sane-alsa-headers \
- + sane-ant_version \
- + sane-zip_version \
- + sane-unzip_version \
- +@@ -1381,34 +1375,6 @@
- + endif
- + endif
- +
- +-######################################################
- +-# Check that ALSA headers and libs are installed and
- +-# that the header has the right version. We only
- +-# need /usr/include/alsa/version.h and /usr/lib/libasound.so
- +-######################################################
- +-
- +-ifdef REQUIRED_ALSA_VERSION
- +- ALSA_CHECK := $(call CheckVersions,$(ALSA_VERSION),$(REQUIRED_ALSA_VERSION))
- +-endif
- +-sane-alsa-headers:
- +-ifdef REQUIRED_ALSA_VERSION
- +- @if [ "$(ALSA_CHECK)" != "missing" ] ; then \
- +- if [ "$(ALSA_CHECK)" != "same" -a "$(ALSA_CHECK)" != "newer" ] ; then \
- +- $(ECHO) "ERROR: The ALSA version must be $(REQUIRED_ALSA_VERSION) or higher. \n" \
- +- " You have the following ALSA version installed: $${alsa_version} \n" \
- +- " Please reinstall ALSA (drivers and lib). You can download \n" \
- +- " the source distribution from http://www.alsa-project.org \n" \
- +- " or go to http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages. \n" \
- +- "" >> $(ERROR_FILE) ; \
- +- fi ; \
- +- else \
- +- $(ECHO) "ERROR: You seem to not have installed ALSA $(REQUIRED_ALSA_VERSION) or higher. \n" \
- +- " Please install ALSA (drivers and lib). You can download the \n" \
- +- " source distribution from http://www.alsa-project.org or go to \n" \
- +- " http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages. \n" \
- +- "" >> $(ERROR_FILE) ; \
- +- fi
- +-endif
- +
- + # If a sanity file doesn't exist, just make sure it's dir exists
- + $(SANITY_FILES):
- +diff -Nur openjdk.orig/jdk/make/java/net/Makefile openjdk/jdk/make/java/net/Makefile
- +--- openjdk.orig/jdk/make/java/net/Makefile 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/java/net/Makefile 2014-06-17 17:39:28.709019029 +0200
- +@@ -25,7 +25,7 @@
- +
- + BUILDDIR = ../..
- + PACKAGE = java.net
- +-LIBRARY = net
- ++LIBRARY = javanet
- + PRODUCT = sun
- + include $(BUILDDIR)/common/Defs.gmk
- +
- +diff -Nur openjdk.orig/jdk/make/java/nio/Makefile openjdk/jdk/make/java/nio/Makefile
- +--- openjdk.orig/jdk/make/java/nio/Makefile 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/java/nio/Makefile 2014-06-17 17:39:28.709019029 +0200
- +@@ -373,7 +373,7 @@
- + endif
- +
- + ifeq ($(PLATFORM), linux)
- +- OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -lnet -lpthread $(LIBDL)
- ++ OTHER_LDLIBS += -L$(LIBDIR)/$(LIBARCH) -ljava -ljavanet -lpthread $(LIBDL)
- + ifdef USE_SYSTEM_GIO
- + OTHER_LDLIBS += $(GIO_LIBS)
- + OTHER_INCLUDES += $(GIO_CFLAGS) -DUSE_SYSTEM_GIO
- +@@ -927,7 +927,7 @@
- +
- + $(GENSOR_EXE) : $(TEMPDIR)/$(GENSOR_SRC)
- + $(prep-target)
- +- ($(CD) $(TEMPDIR); $(NIO_CC) $(CPPFLAGS) $(LDDFLAGS) \
- ++ ($(CD) $(TEMPDIR); $(HOST_CC) $(CPPFLAGS_FOR_BUILD) $(LDDFLAGS) \
- + -o genSocketOptionRegistry$(EXE_SUFFIX) $(GENSOR_SRC))
- +
- + ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
- +@@ -963,7 +963,7 @@
- +
- + $(GENUC_EXE) : $(GENUC_SRC)
- + $(prep-target)
- +- $(NIO_CC) $(CPPFLAGS) -o $@ $(GENUC_SRC)
- ++ $(HOST_CC) $(CPPFLAGS_FOR_BUILD) -o $@ $(GENUC_SRC)
- +
- + ifdef NIO_PLATFORM_CLASSES_ROOT_DIR
- + $(SFS_GEN)/UnixConstants.java: $(NIO_PLATFORM_CLASSES_ROOT_DIR)/sun/nio/fs/UnixConstants-$(PLATFORM)-$(ARCH).java
- +diff -Nur openjdk.orig/jdk/make/sun/awt/mawt.gmk openjdk/jdk/make/sun/awt/mawt.gmk
- +--- openjdk.orig/jdk/make/sun/awt/mawt.gmk 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/sun/awt/mawt.gmk 2014-06-17 17:39:28.709019029 +0200
- +@@ -151,22 +151,6 @@
- + #endif
- +
- + LIBXTST = -lXtst
- +-ifeq ($(PLATFORM), linux)
- +- ifeq ($(ARCH_DATA_MODEL), 64)
- +- # XXX what about the rest of them?
- +- LIBXT = -lXt
- +- else
- +- # Allows for builds on Debian GNU Linux, X11 is in a different place
- +- LIBXT = $(firstword $(wildcard $(OPENWIN_LIB)/libXt.a) \
- +- $(wildcard /usr/lib/libXt.a))
- +- LIBSM = $(firstword $(wildcard $(OPENWIN_LIB)/libSM.a) \
- +- $(wildcard /usr/lib/libSM.a))
- +- LIBICE = $(firstword $(wildcard $(OPENWIN_LIB)/libICE.a) \
- +- $(wildcard /usr/lib/libICE.a))
- +- LIBXTST = $(firstword $(wildcard $(OPENWIN_LIB)/libXtst.a) \
- +- $(wildcard /usr/lib/libXtst.a))
- +- endif
- +-endif
- +
- + # Use -lXmu for EditRes support
- + LIBXMU_DBG = -lXmu
- +@@ -181,7 +165,7 @@
- + OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH
- + # XXX what is this define below? Isn't it motif-related?
- + OTHER_CFLAGS += -DXMSTRINGDEFINES=1
- +-OTHER_LDLIBS = $(LIBXMU) $(LIBXTST) -lXext $(LIBXT) $(LIBSM) $(LIBICE) -lX11 -lXi
- ++OTHER_LDLIBS = $(LIBXMU) $(LIBXTST) -lXext -lXt -lSM -lICE -lX11 -lXi
- + endif
- +
- + endif
- +@@ -231,11 +215,6 @@
- + CPPFLAGS += -I$(PLATFORM_SRC)/native/common/deps/fontconfig2
- + endif
- +
- +-ifndef HEADLESS
- +-CPPFLAGS += -I$(OPENWIN_HOME)/include
- +-LDFLAGS += -L$(OPENWIN_LIB)
- +-
- +-endif # !HEADLESS
- +
- + CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
- + -I$(SHARE_SRC)/native/$(PKGDIR)/../font \
- +@@ -270,11 +249,6 @@
- + endif # !HEADLESS
- + endif # PLATFORM
- +
- +-ifeq ($(PLATFORM), linux)
- +- # Checking for the X11/extensions headers at the additional location
- +- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \
- +- $(wildcard /usr/include/X11/extensions))
- +-endif
- +
- + ifeq ($(PLATFORM), macosx))
- + CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions \
- +diff -Nur openjdk.orig/jdk/make/sun/xawt/Makefile openjdk/jdk/make/sun/xawt/Makefile
- +--- openjdk.orig/jdk/make/sun/xawt/Makefile 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/make/sun/xawt/Makefile 2014-06-17 17:39:28.709019029 +0200
- +@@ -292,16 +292,10 @@
- + SIZERS = $(SIZER).32
- + SIZERS_C = $(SIZER_32_C)
- + SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.32
- +-ifdef CROSS_COMPILE_ARCH
- +-CFLAGS_32 = -m32
- +-endif
- + else # !32
- + SIZERS = $(SIZER).64
- + SIZERS_C = $(SIZER_64_C)
- + SIZES = $(WRAPPER_GENERATOR_DIR)/sizes.64
- +-ifdef CROSS_COMPILE_ARCH
- +-CFLAGS_64 = -m64
- +-endif
- + endif # 32
- + endif # !macosx
- + endif # solaris
- +@@ -337,11 +331,7 @@
- + WRAPPER_GENERATOR_CLASS=$(WRAPPER_GENERATOR_TEMPDIR)/WrapperGenerator.class
- + XLIBTYPES=$(PLATFORM_SRC)/classes/sun/awt/X11/generator/xlibtypes.txt
- +
- +-ifndef CROSS_COMPILE_ARCH
- +-SIZERS_CC = $(CC)
- +-else
- +-SIZERS_CC = $(HOST_CC)
- +-endif
- ++SIZERS_CC = $(CC) -static
- +
- + $(SIZERS): $(SIZERS_C)
- + $(prep-target)
- +@@ -364,7 +354,7 @@
- + $(CHMOD) +w $@;\
- + else \
- + $(ECHO) GENERATING $@; \
- +- $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
- ++ $(QEMU) $(WRAPPER_GENERATOR_DIR)/sizer$(suffix $@) > $@; \
- + fi
- + @if [ "$(DOCOMPARE)$(suffix $@)" = "true.64" ]; then \
- + $(ECHO) COMPARING $@ and $(STORED_SIZES_TMPL_$(PLATFORM)_$(LIBARCH)); \
- +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java openjdk/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
- +--- openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/share/classes/java/net/AbstractPlainDatagramSocketImpl.java 2014-06-17 17:39:28.709019029 +0200
- +@@ -69,7 +69,7 @@
- + */
- + static {
- + java.security.AccessController.doPrivileged(
- +- new sun.security.action.LoadLibraryAction("net"));
- ++ new sun.security.action.LoadLibraryAction("javanet"));
- + }
- +
- + /**
- +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java openjdk/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java
- +--- openjdk.orig/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/share/classes/java/net/AbstractPlainSocketImpl.java 2014-06-17 17:39:28.709019029 +0200
- +@@ -78,7 +78,7 @@
- + */
- + static {
- + java.security.AccessController.doPrivileged(
- +- new sun.security.action.LoadLibraryAction("net"));
- ++ new sun.security.action.LoadLibraryAction("javanet"));
- + }
- +
- + /**
- +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/DatagramPacket.java openjdk/jdk/src/share/classes/java/net/DatagramPacket.java
- +--- openjdk.orig/jdk/src/share/classes/java/net/DatagramPacket.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/share/classes/java/net/DatagramPacket.java 2014-06-17 17:39:28.709019029 +0200
- +@@ -47,7 +47,7 @@
- + */
- + static {
- + java.security.AccessController.doPrivileged(
- +- new sun.security.action.LoadLibraryAction("net"));
- ++ new sun.security.action.LoadLibraryAction("javanet"));
- + init();
- + }
- +
- +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/InetAddress.java openjdk/jdk/src/share/classes/java/net/InetAddress.java
- +--- openjdk.orig/jdk/src/share/classes/java/net/InetAddress.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/share/classes/java/net/InetAddress.java 2014-06-17 17:39:28.709019029 +0200
- +@@ -267,7 +267,7 @@
- + static {
- + preferIPv6Address = java.security.AccessController.doPrivileged(
- + new GetBooleanAction("java.net.preferIPv6Addresses")).booleanValue();
- +- AccessController.doPrivileged(new LoadLibraryAction("net"));
- ++ AccessController.doPrivileged(new LoadLibraryAction("javanet"));
- + init();
- + }
- +
- +diff -Nur openjdk.orig/jdk/src/share/classes/java/net/NetworkInterface.java openjdk/jdk/src/share/classes/java/net/NetworkInterface.java
- +--- openjdk.orig/jdk/src/share/classes/java/net/NetworkInterface.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/share/classes/java/net/NetworkInterface.java 2014-06-17 17:39:28.709019029 +0200
- +@@ -53,7 +53,7 @@
- + private static final int defaultIndex; /* index of defaultInterface */
- +
- + static {
- +- AccessController.doPrivileged(new LoadLibraryAction("net"));
- ++ AccessController.doPrivileged(new LoadLibraryAction("javanet"));
- + init();
- + defaultInterface = DefaultInterface.getDefault();
- + if (defaultInterface != null) {
- +diff -Nur openjdk.orig/jdk/src/share/classes/sun/net/sdp/SdpSupport.java openjdk/jdk/src/share/classes/sun/net/sdp/SdpSupport.java
- +--- openjdk.orig/jdk/src/share/classes/sun/net/sdp/SdpSupport.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/share/classes/sun/net/sdp/SdpSupport.java 2014-06-17 17:39:28.709019029 +0200
- +@@ -76,6 +76,6 @@
- +
- + static {
- + AccessController.doPrivileged(
- +- new sun.security.action.LoadLibraryAction("net"));
- ++ new sun.security.action.LoadLibraryAction("javanet"));
- + }
- + }
- +diff -Nur openjdk.orig/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java openjdk/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java
- +--- openjdk.orig/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/share/classes/sun/net/spi/DefaultProxySelector.java 2014-06-17 17:39:28.709019029 +0200
- +@@ -95,7 +95,7 @@
- + }});
- + if (b != null && b.booleanValue()) {
- + java.security.AccessController.doPrivileged(
- +- new sun.security.action.LoadLibraryAction("net"));
- ++ new sun.security.action.LoadLibraryAction("javanet"));
- + hasSystemProxies = init();
- + }
- + }
- +diff -Nur openjdk.orig/jdk/src/share/classes/sun/nio/ch/Util.java openjdk/jdk/src/share/classes/sun/nio/ch/Util.java
- +--- openjdk.orig/jdk/src/share/classes/sun/nio/ch/Util.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/share/classes/sun/nio/ch/Util.java 2014-06-17 17:39:28.709019029 +0200
- +@@ -483,7 +483,7 @@
- + return;
- + loaded = true;
- + java.security.AccessController
- +- .doPrivileged(new sun.security.action.LoadLibraryAction("net"));
- ++ .doPrivileged(new sun.security.action.LoadLibraryAction("javanet"));
- + java.security.AccessController
- + .doPrivileged(new sun.security.action.LoadLibraryAction("nio"));
- + // IOUtil must be initialized; Its native methods are called from
- +diff -Nur openjdk.orig/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java openjdk/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java
- +--- openjdk.orig/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/solaris/classes/sun/net/dns/ResolverConfigurationImpl.java 2014-06-17 17:39:28.713019059 +0200
- +@@ -247,7 +247,7 @@
- +
- + static {
- + java.security.AccessController.doPrivileged(
- +- new sun.security.action.LoadLibraryAction("net"));
- ++ new sun.security.action.LoadLibraryAction("javanet"));
- + }
- +
- + }
- +diff -Nur openjdk.orig/jdk/src/solaris/native/sun/awt/awt_InputMethod.c openjdk/jdk/src/solaris/native/sun/awt/awt_InputMethod.c
- +--- openjdk.orig/jdk/src/solaris/native/sun/awt/awt_InputMethod.c 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/solaris/native/sun/awt/awt_InputMethod.c 2014-06-17 17:39:28.713019059 +0200
- +@@ -246,7 +246,8 @@
- + if (wcs == NULL)
- + return NULL;
- +
- +- n = len*MB_CUR_MAX + 1;
- ++ //evil hack for uclibc
- ++ n = len*1 + 1;
- +
- + mbs = (char *) malloc(n * sizeof(char));
- + if (mbs == NULL) {
- +diff -Nur openjdk.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c
- +--- openjdk.orig/jdk/src/solaris/native/sun/xawt/XToolkit.c 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/solaris/native/sun/xawt/XToolkit.c 2014-06-17 17:39:28.713019059 +0200
- +@@ -27,9 +27,6 @@
- + #include <X11/Xutil.h>
- + #include <X11/Xos.h>
- + #include <X11/Xatom.h>
- +-#ifdef __linux__
- +-#include <execinfo.h>
- +-#endif
- +
- + #include <jvm.h>
- + #include <jni.h>
- +@@ -785,25 +782,6 @@
- + return ret;
- + }
- +
- +-#ifdef __linux__
- +-void print_stack(void)
- +-{
- +- void *array[10];
- +- size_t size;
- +- char **strings;
- +- size_t i;
- +-
- +- size = backtrace (array, 10);
- +- strings = backtrace_symbols (array, size);
- +-
- +- fprintf (stderr, "Obtained %zd stack frames.\n", size);
- +-
- +- for (i = 0; i < size; i++)
- +- fprintf (stderr, "%s\n", strings[i]);
- +-
- +- free (strings);
- +-}
- +-#endif
- +
- + Window get_xawt_root_shell(JNIEnv *env) {
- + static jclass classXRootWindow = NULL;
- +diff -Nur openjdk.orig/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java openjdk/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java
- +--- openjdk.orig/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk/jdk/src/windows/classes/sun/net/dns/ResolverConfigurationImpl.java 2014-06-17 17:39:28.713019059 +0200
- +@@ -159,7 +159,7 @@
- +
- + static {
- + java.security.AccessController.doPrivileged(
- +- new sun.security.action.LoadLibraryAction("net"));
- ++ new sun.security.action.LoadLibraryAction("javanet"));
- + init0();
- +
- + // start the address listener thread
- +diff -Nur openjdk.orig/jdk/src/solaris/bin/mipsel/jvm.cfg openjdk/jdk/src/solaris/bin/mipsel/jvm.cfg
- +--- openjdk.orig/jdk/src/solaris/bin/mipsel/jvm.cfg 1970-01-01 01:00:00.000000000 +0100
- ++++ openjdk/jdk/src/solaris/bin/mipsel/jvm.cfg 2014-04-12 01:23:06.000000000 +0200
- +@@ -0,0 +1,38 @@
- ++# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
- ++# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- ++#
- ++# This code is free software; you can redistribute it and/or modify it
- ++# under the terms of the GNU General Public License version 2 only, as
- ++# published by the Free Software Foundation. Oracle designates this
- ++# particular file as subject to the "Classpath" exception as provided
- ++# by Oracle in the LICENSE file that accompanied this code.
- ++#
- ++# This code is distributed in the hope that it will be useful, but WITHOUT
- ++# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- ++# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
- ++# version 2 for more details (a copy is included in the LICENSE file that
- ++# accompanied this code).
- ++#
- ++# You should have received a copy of the GNU General Public License version
- ++# 2 along with this work; if not, write to the Free Software Foundation,
- ++# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
- ++#
- ++# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
- ++# or visit www.oracle.com if you need additional information or have any
- ++# questions.
- ++#
- ++# List of JVMs that can be used as an option to java, javac, etc.
- ++# Order is important -- first in this list is the default JVM.
- ++# NOTE that this both this file and its format are UNSUPPORTED and
- ++# WILL GO AWAY in a future release.
- ++#
- ++# You may also select a JVM in an arbitrary location with the
- ++# "-XXaltjvm=<jvm_dir>" option, but that too is unsupported
- ++# and may not be available in a future release.
- ++#
- ++-client KNOWN
- ++-server KNOWN
- ++-hotspot ERROR
- ++-classic WARN
- ++-native ERROR
- ++-green ERROR
- +diff -Nur openjdk-boot.orig/hotspot/make/linux/makefiles/vm.make openjdk-boot/hotspot/make/linux/makefiles/vm.make
- +--- openjdk-boot.orig/hotspot/make/linux/makefiles/vm.make 2014-02-20 19:51:45.000000000 +0100
- ++++ openjdk-boot/hotspot/make/linux/makefiles/vm.make 2014-05-01 20:03:03.677930438 +0200
- +@@ -288,7 +288,7 @@
- + LIBS_VM += $(LIBS)
- + endif
- + ifeq ($(JVM_VARIANT_ZEROSHARK), true)
- +- LIBS_VM += $(LIBFFI_LIBS) $(LLVM_LIBS)
- ++ LIBS_VM += $(LLVM_LIBS)
- + LFLAGS_VM += $(LLVM_LDFLAGS)
- + endif
- +
- +diff -Nur openjdk-boot.orig/hotspot/make/linux/makefiles/zero.make openjdk-boot/hotspot/make/linux/makefiles/zero.make
- +--- openjdk-boot.orig/hotspot/make/linux/makefiles/zero.make 2014-02-20 19:51:45.000000000 +0100
- ++++ openjdk-boot/hotspot/make/linux/makefiles/zero.make 2014-05-01 20:03:03.677930438 +0200
- +@@ -33,4 +33,4 @@
- +
- + # Make sure libffi is included
- + CFLAGS += $(LIBFFI_CFLAGS)
- +-LIBS_VM += $(LIBFFI_LIBS)
- ++LIBS_VM += $(FFI_LDFLAGS) -Wl,-Bstatic $(LIBFFI_LIBS) -Wl,-Bdynamic
- +diff -Nur openjdk-boot.orig/jdk/make/common/Sanity.gmk openjdk-boot/jdk/make/common/Sanity.gmk
- +--- openjdk-boot.orig/jdk/make/common/Sanity.gmk 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk-boot/jdk/make/common/Sanity.gmk 2014-05-01 20:03:03.677930438 +0200
- +@@ -91,8 +91,7 @@
- + sane-ld_run_path \
- + sane-alt_bootdir \
- + sane-bootdir \
- +- sane-local-bootdir \
- +- sane-alsa-headers
- ++ sane-local-bootdir
- +
- + ifdef OPENJDK
- + sanity-all:: sane-freetype
- +diff -Nur openjdk-boot.orig/jdk/make/common/shared/Sanity.gmk openjdk-boot/jdk/make/common/shared/Sanity.gmk
- +--- openjdk-boot.orig/jdk/make/common/shared/Sanity.gmk 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk-boot/jdk/make/common/shared/Sanity.gmk 2014-05-01 20:03:03.681930476 +0200
- +@@ -114,11 +114,6 @@
- + elif [ -f /etc/lsb-release ] ; then \
- + $(EGREP) DISTRIB_RELEASE /etc/lsb-release | $(SED) -e 's@.*DISTRIB_RELEASE=\(.*\)@\1@'; \
- + fi)
- +- ALSA_INCLUDE=/usr/include/alsa/version.h
- +- ALSA_LIBRARY=/usr/lib/libasound.so
- +- _ALSA_VERSION := $(shell $(EGREP) SND_LIB_VERSION_STR $(ALSA_INCLUDE) | \
- +- $(SED) -e 's@.*"\(.*\)".*@\1@' )
- +- ALSA_VERSION := $(call GetVersion,$(_ALSA_VERSION))
- + endif
- +
- + ifeq ($(PLATFORM), macosx)
- +@@ -225,7 +220,6 @@
- + sane-compiler \
- + sane-link \
- + sane-cacerts \
- +- sane-alsa-headers \
- + sane-ant_version \
- + sane-zip_version \
- + sane-unzip_version \
- +@@ -1381,35 +1375,6 @@
- + endif
- + endif
- +
- +-######################################################
- +-# Check that ALSA headers and libs are installed and
- +-# that the header has the right version. We only
- +-# need /usr/include/alsa/version.h and /usr/lib/libasound.so
- +-######################################################
- +-
- +-ifdef REQUIRED_ALSA_VERSION
- +- ALSA_CHECK := $(call CheckVersions,$(ALSA_VERSION),$(REQUIRED_ALSA_VERSION))
- +-endif
- +-sane-alsa-headers:
- +-ifdef REQUIRED_ALSA_VERSION
- +- @if [ "$(ALSA_CHECK)" != "missing" ] ; then \
- +- if [ "$(ALSA_CHECK)" != "same" -a "$(ALSA_CHECK)" != "newer" ] ; then \
- +- $(ECHO) "ERROR: The ALSA version must be $(REQUIRED_ALSA_VERSION) or higher. \n" \
- +- " You have the following ALSA version installed: $${alsa_version} \n" \
- +- " Please reinstall ALSA (drivers and lib). You can download \n" \
- +- " the source distribution from http://www.alsa-project.org \n" \
- +- " or go to http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages. \n" \
- +- "" >> $(ERROR_FILE) ; \
- +- fi ; \
- +- else \
- +- $(ECHO) "ERROR: You seem to not have installed ALSA $(REQUIRED_ALSA_VERSION) or higher. \n" \
- +- " Please install ALSA (drivers and lib). You can download the \n" \
- +- " source distribution from http://www.alsa-project.org or go to \n" \
- +- " http://www.freshrpms.net/docs/alsa/ for precompiled RPM packages. \n" \
- +- "" >> $(ERROR_FILE) ; \
- +- fi
- +-endif
- +-
- + # If a sanity file doesn't exist, just make sure it's dir exists
- + $(SANITY_FILES):
- + -@$(prep-target)
- +diff -Nur openjdk-boot.orig/jdk/make/javax/sound/jsoundalsa/Makefile openjdk-boot/jdk/make/javax/sound/jsoundalsa/Makefile
- +--- openjdk-boot.orig/jdk/make/javax/sound/jsoundalsa/Makefile 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk-boot/jdk/make/javax/sound/jsoundalsa/Makefile 2014-05-15 15:49:03.886269427 +0200
- +@@ -72,6 +72,7 @@
- + -DUSE_PORTS=TRUE \
- + -DUSE_PLATFORM_MIDI_OUT=TRUE \
- + -DUSE_PLATFORM_MIDI_IN=TRUE \
- ++ $(ALSA_CPPFLAGS) \
- + -I$(SHARE_SRC)/native/com/sun/media/sound
- +
- + #
- +diff -Nur openjdk-boot.orig/jdk/make/sun/awt/mawt.gmk openjdk-boot/jdk/make/sun/awt/mawt.gmk
- +--- openjdk-boot.orig/jdk/make/sun/awt/mawt.gmk 2014-04-12 01:23:06.000000000 +0200
- ++++ openjdk-boot/jdk/make/sun/awt/mawt.gmk 2014-05-01 20:03:03.681930476 +0200
- +@@ -270,12 +270,6 @@
- + endif # !HEADLESS
- + endif # PLATFORM
- +
- +-ifeq ($(PLATFORM), linux)
- +- # Checking for the X11/extensions headers at the additional location
- +- CPPFLAGS += -I$(firstword $(wildcard $(OPENWIN_HOME)/include/X11/extensions) \
- +- $(wildcard /usr/include/X11/extensions))
- +-endif
- +-
- + ifeq ($(PLATFORM), macosx))
- + CPPFLAGS += -I$(OPENWIN_HOME)/include/X11/extensions \
- + -I$(OPENWIN_HOME)/include
- +
|