Hello community, here is the log from the commit of package java-1_7_0-icedtea checked in at Thu Mar 13 01:32:44 CET 2008. -------- --- arch/i386/java-1_7_0-icedtea/java-1_7_0-icedtea.changes 2008-02-29 16:53:14.000000000 +0100 +++ /mounts/work_src_done/STABLE/java-1_7_0-icedtea/java-1_7_0-icedtea.changes 2008-03-12 16:34:14.582921000 +0100 @@ -1,0 +2,11 @@ +Wed Mar 12 16:33:44 CET 2008 - ro@suse.de + +- fix error found by rpmlint: origin used before define in specfile + +------------------------------------------------------------------- +Mon Mar 3 00:22:16 CET 2008 - ro@suse.de + +- update icedtea tarball to current mercurial for ia64 and s390 + and s390x support + +------------------------------------------------------------------- Old: ---- gcc43.patch New: ---- icedtea-new_zero_files icedtea-ports.patch icedtea-s390x.patch icedtea-to_hg.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ java-1_7_0-icedtea.spec ++++++ --- /var/tmp/diff_new_pack.A18218/_old 2008-03-13 01:32:08.000000000 +0100 +++ /var/tmp/diff_new_pack.A18218/_new 2008-03-13 01:32:08.000000000 +0100 @@ -13,6 +13,7 @@ Name: java-1_7_0-icedtea %define icedteaver 1.5 %define openjdkver b24 +%define origin icedtea Version: %{icedteaver}_%{openjdkver} Release: 1 Summary: The IcedTea Java runtime environment @@ -32,17 +33,20 @@ %define accessver %{accessmajorver}.1 Source2: http://ftp.gnome.org/pub/GNOME/sources/java-access-bridge/%{accessmajorver}/java-access-bridge-%{accessver}.tar.bz2 Source3: http://cvs.fedoraproject.org/viewcvs/devel/java-1.7.0-icedtea/generate-fedor... +Source4: icedtea-new_zero_files Patch0: java-1.7.0-icedtea-win32.patch Patch1: java-1.7.0-icedtea-jhat.patch -Patch2: gcc43.patch Patch3: execstack.patch Patch4: icedtea-openjdk_fixes.patch +Patch10: icedtea-to_hg.patch +Patch15: icedtea-ports.patch +Patch16: icedtea-s390x.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: ant ecj gcc-c++ xalan-j2 BuildRequires: alsa-lib-devel cups-devel giflib-devel libjpeg-devel libpng-devel BuildRequires: openmotif-devel xorg-x11 xorg-x11-proto-devel BuildRequires: at-spi-devel gawk libbonobo-devel mercurial pkgconfig -BuildRequires: fdupes gecko-sdk glib2-devel gtk2-devel procps unzip zip +BuildRequires: fdupes gecko-sdk glib2-devel gtk2-devel libffi-devel procps unzip zip PreReq: update-alternatives # Require /etc/pki/tls/certs/ca-bundle.crt instead of generating cacerts. #Requires: openssl-cacerts @@ -66,7 +70,7 @@ Provides: jsse = %{version} Provides: jce = %{version} Provides: jdbc-stdext = 3.0, jdbc-stdext = %{version}, java-sasl = %{version} -ExclusiveArch: %ix86 x86_64 ppc ppc64 +ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64 s390 s390x %description IcedTea is derived from OpenJDK, Sun's open-source implementation of @@ -201,7 +205,6 @@ %define archsuffix %{nil} %endif # Standard JPackage directories and symbolic links: -%define origin icedtea %define sdkname java-%{javaver}-%{origin} %define archname %{sdkname}%{archsuffix} %define localpolicy jce_%{javaver}_%{origin}_local_policy%{archsuffix} @@ -217,7 +220,10 @@ %define priority 17000 %setup -q -n icedtea-%{icedteaver} %setup -q -n icedtea-%{icedteaver} -T -D -a 2 -%patch2 -p1 +%patch10 -p1 +cp %{P:15} patches/icedtea-ports.patch +%patch16 +for i in `cat %{S:4}` ; do touch $i ; done aclocal %build @@ -227,6 +233,8 @@ %else %define icedteaopt --with-icedtea --with-icedtea-home=/etc/alternatives/java_sdk_icedtea %endif +export LIBFFI_CFLAGS="-I/usr/include" +export LIBFFI_LIBS="-lffi" ./configure %{icedteaopt} --with-openjdk-src-zip=%{SOURCE1} # # configure extracts and links openjdk, now we can patch it: @@ -252,7 +260,7 @@ %define archinstall amd64 %define archbuild amd64 %else -%ifarch ppc ppc64 +%ifarch ppc ppc64 ia64 s390 s390x %define archinstall %{_arch} %define archbuild %{_arch} %else @@ -675,6 +683,11 @@ %{_jvmdir}/%{jredir}/lib/%{archinstall}/gcjwebplugin.so %changelog +* Wed Mar 12 2008 ro@suse.de +- fix error found by rpmlint: origin used before define in specfile +* Mon Mar 03 2008 ro@suse.de +- update icedtea tarball to current mercurial for ia64 and s390 + and s390x support * Fri Feb 29 2008 ro@suse.de - fix build (binutils slightly changed behaviour) * Fri Feb 08 2008 bk@suse.de ++++++ icedtea-ports.patch ++++++ diff -urN openjdk.orig/corba/make/common/Defs-linux.gmk openjdk/corba/make/common/Defs-linux.gmk --- openjdk.orig/corba/make/common/Defs-linux.gmk 2007-12-14 08:56:37.000000000 +0100 +++ openjdk/corba/make/common/Defs-linux.gmk 2008-03-03 03:05:49.761310000 +0100 @@ -99,6 +99,14 @@ LDFLAGS_COMMON_sparcv9 += -m64 -mcpu=v9 CFLAGS_REQUIRED_sparc += -m32 -mcpu=v9 LDFLAGS_COMMON_sparc += -m32 -mcpu=v9 +CFLAGS_REQUIRED_ppc += -m32 +LDFLAGS_COMMON_ppc += -m32 +CFLAGS_REQUIRED_ppc64 += -m64 +LDFLAGS_COMMON_ppc64 += -m64 +CFLAGS_REQUIRED_s390 += -m32 +LDFLAGS_COMMON_s390 += -m32 +CFLAGS_REQUIRED_s390x += -m64 +LDFLAGS_COMMON_s390x += -m64 CFLAGS_REQUIRED = $(CFLAGS_REQUIRED_$(ARCH)) LDFLAGS_COMMON += $(LDFLAGS_COMMON_$(ARCH)) diff -urN openjdk.orig/corba/make/common/shared/Compiler-gcc.gmk openjdk/corba/make/common/shared/Compiler-gcc.gmk --- openjdk.orig/corba/make/common/shared/Compiler-gcc.gmk 2007-12-14 08:56:37.000000000 +0100 +++ openjdk/corba/make/common/shared/Compiler-gcc.gmk 2008-03-03 03:06:18.890001000 +0100 @@ -74,13 +74,13 @@ # sparc or sparcv9 REQUIRED_CC_VER = 4.0 REQUIRED_GCC_VER = 4.0.* - else - ifeq ($(ARCH_DATA_MODEL), 32) + endif + ifeq ($(ARCH), i586) # i586 REQUIRED_CC_VER = 3.2 REQUIRED_GCC_VER = 3.2.1* REQUIRED_GCC_VER_INT = 3.2.1-7a - else + endif ifeq ($(ARCH), amd64) # amd64 REQUIRED_CC_VER = 3.2 @@ -91,7 +91,15 @@ REQUIRED_CC_VER = 3.2 REQUIRED_GCC_VER = 2.9[56789].* endif + ifneq ("$(findstring ppc,$(ARCH))", "") + # ppc or ppc64 + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* endif + ifneq ("$(findstring s390,$(ARCH))", "") + # ppc or ppc64 + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* endif # Option used to create a shared library SHARED_LIBRARY_FLAG = -shared -mimpure-text diff -urN openjdk.orig/corba/make/common/shared/Platform.gmk openjdk/corba/make/common/shared/Platform.gmk --- openjdk.orig/corba/make/common/shared/Platform.gmk 2007-12-14 08:56:37.000000000 +0100 +++ openjdk/corba/make/common/shared/Platform.gmk 2008-03-03 03:06:40.003375000 +0100 @@ -214,9 +214,9 @@ ARCH=sparcv9 endif else - # i586 is 32-bit, amd64 is 64-bit + # i586 and ppc are 32-bit, amd64 and ppc64 are 64-bit ifndef ARCH_DATA_MODEL - ifeq ($(ARCH), i586) + ifneq ($(filter i586 ppc s390,$(ARCH)),) ARCH_DATA_MODEL=32 else ARCH_DATA_MODEL=64 diff -urN openjdk.orig/hotspot/build/linux/makefiles/buildtree.make openjdk/hotspot/build/linux/makefiles/buildtree.make --- openjdk.orig/hotspot/build/linux/makefiles/buildtree.make 2007-12-14 08:57:02.000000000 +0100 +++ openjdk/hotspot/build/linux/makefiles/buildtree.make 2008-03-03 02:56:27.928568000 +0100 @@ -317,6 +317,10 @@ DATA_MODE/sparcv9 = 64 DATA_MODE/amd64 = 64 DATA_MODE/ia64 = 64 +DATA_MODE/ppc = 32 +DATA_MODE/ppc64 = 64 +DATA_MODE/s390 = 32 +DATA_MODE/s390x = 64 JAVA_FLAG/32 = -d32 JAVA_FLAG/64 = -d64 diff -urN openjdk.orig/hotspot/build/linux/makefiles/defs.make openjdk/hotspot/build/linux/makefiles/defs.make --- openjdk.orig/hotspot/build/linux/makefiles/defs.make 2007-12-14 08:57:02.000000000 +0100 +++ openjdk/hotspot/build/linux/makefiles/defs.make 2008-03-03 02:57:30.736229000 +0100 @@ -87,6 +87,40 @@ HS_ARCH = x86 endif +# ppc +ifeq ($(ARCH), ppc) + ARCH_DATA_MODEL = 32 + PLATFORM = linux-ppc + VM_PLATFORM = linux_ppc + HS_ARCH = zero +endif + +# ppc64 +ifeq ($(ARCH), ppc64) + ARCH_DATA_MODEL = 64 + MAKE_ARGS += LP64=1 + PLATFORM = linux-ppc64 + VM_PLATFORM = linux_ppc64 + HS_ARCH = zero +endif + +# ppc +ifeq ($(ARCH), s390) + ARCH_DATA_MODEL = 32 + PLATFORM = linux-s390 + VM_PLATFORM = linux_s390 + HS_ARCH = zero +endif + +# ppc64 +ifeq ($(ARCH), s390x) + ARCH_DATA_MODEL = 64 + MAKE_ARGS += LP64=1 + PLATFORM = linux-s390x + VM_PLATFORM = linux_s390x + HS_ARCH = zero +endif + JDK_INCLUDE_SUBDIR=linux # FIXUP: The subdirectory for a debug build is NOT the same on all platforms diff -urN openjdk.orig/hotspot/build/linux/makefiles/gcc.make openjdk/hotspot/build/linux/makefiles/gcc.make --- openjdk.orig/hotspot/build/linux/makefiles/gcc.make 2007-12-14 08:57:02.000000000 +0100 +++ openjdk/hotspot/build/linux/makefiles/gcc.make 2008-03-03 02:57:57.149300000 +0100 @@ -71,6 +71,10 @@ ARCHFLAG/ia64 = ARCHFLAG/sparc = -m32 -mcpu=v9 ARCHFLAG/sparcv9 = -m64 -mcpu=v9 +ARCHFLAG/ppc = -m32 +ARCHFLAG/ppc64 = -m64 +ARCHFLAG/s390 = -m32 +ARCHFLAG/s390x = -m64 CFLAGS += $(ARCHFLAG) AOUT_FLAGS += $(ARCHFLAG) diff -urN openjdk.orig/hotspot/build/linux/makefiles/sa.make openjdk/hotspot/build/linux/makefiles/sa.make --- openjdk.orig/hotspot/build/linux/makefiles/sa.make 2007-12-14 08:57:02.000000000 +0100 +++ openjdk/hotspot/build/linux/makefiles/sa.make 2008-03-03 02:55:41.333517000 +0100 @@ -51,10 +51,10 @@ SA_PROPERTIES = $(SA_CLASSDIR)/sa.properties # if $(AGENT_DIR) does not exist, we don't build SA -# also, we don't build SA on Itanium. +# also, we don't build SA on zero. all: - if [ -d $(AGENT_DIR) -a "$(SRCARCH)" != "ia64" ] ; then \ + if [ -d $(AGENT_DIR) -a "$(SRCARCH)" != "zero" ] ; then \ $(MAKE) -f sa.make $(GENERATED)/sa-jdi.jar; \ fi diff -urN openjdk.orig/hotspot/build/linux/makefiles/saproc.make openjdk/hotspot/build/linux/makefiles/saproc.make --- openjdk.orig/hotspot/build/linux/makefiles/saproc.make 2007-12-14 08:57:02.000000000 +0100 +++ openjdk/hotspot/build/linux/makefiles/saproc.make 2008-03-03 02:55:41.335516000 +0100 @@ -44,10 +44,10 @@ DEST_SAPROC = $(JDK_LIBDIR)/$(LIBSAPROC) # if $(AGENT_DIR) does not exist, we don't build SA -# also, we don't build SA on Itanium. +# also, we don't build SA on zero. checkAndBuildSA: - $(QUIETLY) if [ -d $(AGENT_DIR) -a "$(SRCARCH)" != "ia64" ] ; then \ + $(QUIETLY) if [ -d $(AGENT_DIR) -a "$(SRCARCH)" != "zero" ] ; then \ $(MAKE) -f vm.make $(LIBSAPROC); \ fi diff -urN openjdk.orig/hotspot/build/linux/makefiles/vm.make openjdk/hotspot/build/linux/makefiles/vm.make --- openjdk.orig/hotspot/build/linux/makefiles/vm.make 2007-12-14 08:57:02.000000000 +0100 +++ openjdk/hotspot/build/linux/makefiles/vm.make 2008-03-03 02:55:41.349502000 +0100 @@ -122,7 +122,11 @@ rm -f $@ cat $^ > $@ -STATIC_CXX = true +ifeq ($(BUILDARCH), ppc64) + STATIC_CXX = false +else + STATIC_CXX = true +endif ifeq ($(LINK_INTO),AOUT) LIBJVM.o = diff -urN openjdk.orig/hotspot/make/defs.make openjdk/hotspot/make/defs.make --- openjdk.orig/hotspot/make/defs.make 2007-12-14 08:57:02.000000000 +0100 +++ openjdk/hotspot/make/defs.make 2008-03-03 02:59:00.630287000 +0100 @@ -191,15 +191,19 @@ # Use uname output for SRCARCH, but deal with platform differences. If ARCH # is not explicitly listed below, it is treated as x86. - SRCARCH = $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64,$(ARCH))) + SRCARCH = $(ARCH/$(filter sparc sparc64 ia64 amd64 x86_64 ppc ppc64 s390 s390x,$(ARCH))) ARCH/ = x86 ARCH/sparc = sparc ARCH/sparc64= sparc ARCH/ia64 = ia64 ARCH/amd64 = x86 ARCH/x86_64 = x86 + ARCH/ppc = zero + ARCH/ppc64 = zero + ARCH/s390 = zero + ARCH/s390x = zero - # BUILDARCH is usually the same as SRCARCH, except for sparcv9 + # BUILDARCH is usually the same as SRCARCH, except for sparcv9 and zero BUILDARCH = $(SRCARCH) ifeq ($(BUILDARCH), x86) ifdef LP64 @@ -213,6 +217,9 @@ BUILDARCH = sparcv9 endif endif + ifeq ($(BUILDARCH), zero) + BUILDARCH = $(ARCH) + endif # LIBARCH is 1:1 mapping from BUILDARCH LIBARCH = $(LIBARCH/$(BUILDARCH)) @@ -221,8 +228,12 @@ LIBARCH/sparc = sparc LIBARCH/sparcv9 = sparcv9 LIBARCH/ia64 = ia64 + LIBARCH/ppc = ppc + LIBARCH/ppc64 = ppc64 + LIBARCH/s390 = s390 + LIBARCH/s390x = s390x - LP64_ARCH = sparcv9 amd64 ia64 + LP64_ARCH = sparcv9 amd64 ia64 ppc64 s390x endif # Required make macro settings for all platforms diff -urN 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 2007-12-14 08:57:02.000000000 +0100 +++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp 2008-03-03 03:00:09.949622000 +0100 @@ -171,6 +171,20 @@ # else static char cpu_arch[] = "sparc"; # endif +#elif defined(PPC) +# ifdef _LP64 +static char cpu_arch[] = "ppc64"; +# else +static char cpu_arch[] = "ppc"; +# endif +#elif defined(S390) +# ifdef _LP64 +static char cpu_arch[] = "s390x"; +# else +static char cpu_arch[] = "s390"; +# endif +#elif defined(S390X) +static char cpu_arch[] = "s390x"; #else #error Add appropriate cpu_arch setting #endif @@ -2354,7 +2368,8 @@ // format has been changed), we'll use the largest page size supported by // the processor. - _large_page_size = IA32_ONLY(4 * M) AMD64_ONLY(2 * M) IA64_ONLY(256 * M) SPARC_ONLY(4 * M); + _large_page_size = IA32_ONLY(4 * M) AMD64_ONLY(2 * M) IA64_ONLY(256 * M) + SPARC_ONLY(4 * M) PPC_ONLY(16 * M) S390_ONLY(4 * M) S390X_ONLY(4 * M); FILE *fp = fopen("/proc/meminfo", "r"); if (fp) { diff -urN openjdk.orig/hotspot/src/share/vm/runtime/mutex.hpp openjdk/hotspot/src/share/vm/runtime/mutex.hpp --- openjdk.orig/hotspot/src/share/vm/runtime/mutex.hpp 2007-12-14 08:57:03.000000000 +0100 +++ openjdk/hotspot/src/share/vm/runtime/mutex.hpp 2008-03-03 03:00:44.235155000 +0100 @@ -61,19 +61,15 @@ } ; // Endian-ness ... index of least-significant byte in SplitWord.Bytes[] -#ifdef AMD64 // little +#if defined(IA32) || defined(AMD64) || defined(IA64) // little #define _LSBINDEX 0 #else -#if IA32 // little - #define _LSBINDEX 0 -#else -#ifdef SPARC // big +#if defined(SPARC) || defined(PPC) || defined(S390) || defined(S390X) // big #define _LSBINDEX (sizeof(intptr_t)-1) #else #error "unknown architecture" #endif #endif -#endif class ParkEvent ; diff -urN openjdk.orig/hotspot/src/share/vm/runtime/vm_version.cpp openjdk/hotspot/src/share/vm/runtime/vm_version.cpp --- openjdk.orig/hotspot/src/share/vm/runtime/vm_version.cpp 2007-12-14 08:57:03.000000000 +0100 +++ openjdk/hotspot/src/share/vm/runtime/vm_version.cpp 2008-03-03 03:01:31.122017000 +0100 @@ -143,7 +143,10 @@ #define CPU IA32_ONLY("x86") \ IA64_ONLY("ia64") \ AMD64_ONLY("amd64") \ - SPARC_ONLY("sparc") + SPARC_ONLY("sparc") \ + PPC_ONLY("ppc") \ + S390_ONLY("s390") \ + S390X_ONLY("s390x") const char *Abstract_VM_Version::vm_platform_string() { return OS "-" CPU; diff -urN openjdk.orig/hotspot/src/share/vm/utilities/macros.hpp openjdk/hotspot/src/share/vm/utilities/macros.hpp --- openjdk.orig/hotspot/src/share/vm/utilities/macros.hpp 2007-12-14 08:57:03.000000000 +0100 +++ openjdk/hotspot/src/share/vm/utilities/macros.hpp 2008-03-03 03:02:46.507153000 +0100 @@ -176,6 +176,30 @@ #define NOT_SPARC(code) code #endif +#ifdef PPC +#define PPC_ONLY(code) code +#define NOT_PPC(code) +#else +#define PPC_ONLY(code) +#define NOT_PPC(code) code +#endif + +#ifdef S390 +#define S390_ONLY(code) code +#define NOT_S390(code) +#else +#define S390_ONLY(code) +#define NOT_S390(code) code +#endif + +#ifdef S390X +#define S390X_ONLY(code) code +#define NOT_S390X(code) +#else +#define S390X_ONLY(code) +#define NOT_S390X(code) code +#endif + #define FIX_THIS(code) report_assertion_failure("FIX_THIS",__FILE__, __LINE__, "") #define define_pd_global(type, name, value) const type pd_##name = value; diff -urN openjdk.orig/jdk/make/common/Defs-linux.gmk openjdk/jdk/make/common/Defs-linux.gmk --- openjdk.orig/jdk/make/common/Defs-linux.gmk 2007-12-14 08:59:17.000000000 +0100 +++ openjdk/jdk/make/common/Defs-linux.gmk 2008-03-03 03:03:33.338134000 +0100 @@ -109,6 +109,14 @@ LDFLAGS_COMMON_sparcv9 += -m64 -mcpu=v9 CFLAGS_REQUIRED_sparc += -m32 -mcpu=v9 LDFLAGS_COMMON_sparc += -m32 -mcpu=v9 +CFLAGS_REQUIRED_ppc += -m32 +LDFLAGS_COMMON_ppc += -m32 +CFLAGS_REQUIRED_ppc64 += -m64 +LDFLAGS_COMMON_ppc64 += -m64 +CFLAGS_REQUIRED_s390 += -m32 +LDFLAGS_COMMON_s390 += -m32 +CFLAGS_REQUIRED_s390x += -m64 +LDFLAGS_COMMON_s390x += -m64 CFLAGS_REQUIRED = $(CFLAGS_REQUIRED_$(ARCH)) LDFLAGS_COMMON += $(LDFLAGS_COMMON_$(ARCH)) diff -urN openjdk.orig/jdk/make/common/shared/Compiler-gcc.gmk openjdk/jdk/make/common/shared/Compiler-gcc.gmk --- openjdk.orig/jdk/make/common/shared/Compiler-gcc.gmk 2007-12-14 08:59:17.000000000 +0100 +++ openjdk/jdk/make/common/shared/Compiler-gcc.gmk 2008-03-03 02:55:41.464386000 +0100 @@ -70,28 +70,51 @@ ifeq ($(PLATFORM), linux) else CXX = $(COMPILER_PATH)g++$(GCC_SUFFIX) endif - ifneq ("$(findstring sparc,$(ARCH))", "") - # sparc or sparcv9 - REQUIRED_CC_VER = 4.0 - REQUIRED_GCC_VER = 4.0.* - else - ifeq ($(ARCH_DATA_MODEL), 32) + ifeq ($(ARCH), alpha) + # alpha + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifeq ($(ARCH), amd64) + # amd64 + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifeq ($(ARCH), arm) + # arm + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifeq ($(ARCH), i586) # i586 REQUIRED_CC_VER = 3.2 REQUIRED_GCC_VER = 3.2.1* REQUIRED_GCC_VER_INT = 3.2.1-7a - else - ifeq ($(ARCH), amd64) - # amd64 - REQUIRED_CC_VER = 3.2 - REQUIRED_GCC_VER = 3.2.* endif ifeq ($(ARCH), ia64) # ia64 REQUIRED_CC_VER = 3.2 REQUIRED_GCC_VER = 2.9[56789].* endif + ifeq ($(ARCH), mips) + # mips + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* endif + ifneq ("$(findstring ppc,$(ARCH))", "") + # ppc or ppc64 + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifneq ("$(findstring s390,$(ARCH))", "") + # s390 or s390x + REQUIRED_CC_VER = 3.2 + REQUIRED_GCC_VER = 3.2.* + endif + ifneq ("$(findstring sparc,$(ARCH))", "") + # sparc or sparcv9 + REQUIRED_CC_VER = 4.0 + REQUIRED_GCC_VER = 4.0.* endif # Option used to create a shared library SHARED_LIBRARY_FLAG = -shared -mimpure-text diff -urN openjdk.orig/jdk/make/common/shared/Platform.gmk openjdk/jdk/make/common/shared/Platform.gmk --- openjdk.orig/jdk/make/common/shared/Platform.gmk 2007-12-14 08:59:17.000000000 +0100 +++ openjdk/jdk/make/common/shared/Platform.gmk 2008-03-03 03:04:25.033910000 +0100 @@ -223,9 +223,9 @@ ARCH=sparcv9 endif else - # i586 is 32-bit, amd64 is 64-bit + # i586 and ppc are 32-bit, amd64 and ppc64 are 64-bit ifndef ARCH_DATA_MODEL - ifeq ($(ARCH), i586) + ifneq ($(filter i586 ppc s390,$(ARCH)),) ARCH_DATA_MODEL=32 else ARCH_DATA_MODEL=64 diff -urN openjdk.orig/jdk/make/java/jli/Makefile openjdk/jdk/make/java/jli/Makefile --- openjdk.orig/jdk/make/java/jli/Makefile 2007-12-14 08:59:17.000000000 +0100 +++ openjdk/jdk/make/java/jli/Makefile 2008-03-03 02:55:41.482370000 +0100 @@ -52,8 +52,12 @@ ifeq ($(ARCH_FAMILY), amd64) ERGO_FAMILY=i586 else +ifeq ($(ARCH_FAMILY), ppc64) +ERGO_FAMILY=ppc +else ERGO_FAMILY=$(ARCH_FAMILY) endif +endif # diff -urN openjdk.orig/jdk/make/javax/sound/SoundDefs.gmk openjdk/jdk/make/javax/sound/SoundDefs.gmk --- openjdk.orig/jdk/make/javax/sound/SoundDefs.gmk 2007-12-14 08:59:17.000000000 +0100 +++ openjdk/jdk/make/javax/sound/SoundDefs.gmk 2008-03-03 02:55:41.493360000 +0100 @@ -55,10 +55,46 @@ endif # PLATFORM solaris +ifeq ($(ARCH), alpha) + CPPFLAGS += -DX_ARCH=X_ALPHA +endif # ARCH alpha + +ifeq ($(ARCH), amd64) + CPPFLAGS += -DX_ARCH=X_AMD64 +endif # ARCH amd64 + +ifeq ($(ARCH), arm) + CPPFLAGS += -DX_ARCH=X_ARM +endif # ARCH arm + ifeq ($(ARCH), i586) CPPFLAGS += -DX_ARCH=X_I586 endif # ARCH i586 +ifeq ($(ARCH), ia64) + CPPFLAGS += -DX_ARCH=X_IA64 +endif # ARCH ia64 + +ifeq ($(ARCH), mips) + CPPFLAGS += -DX_ARCH=X_MIPS +endif # ARCH mips + +ifeq ($(ARCH), ppc) + CPPFLAGS += -DX_ARCH=X_PPC +endif # ARCH ppc + +ifeq ($(ARCH), ppc64) + CPPFLAGS += -DX_ARCH=X_PPC64 +endif # ARCH ppc64 + +ifeq ($(ARCH), s390) + CPPFLAGS += -DX_ARCH=X_S390 +endif # ARCH s390 + +ifeq ($(ARCH), s390x) + CPPFLAGS += -DX_ARCH=X_S390X +endif # ARCH s390x + ifeq ($(ARCH), sparc) CPPFLAGS += -DX_ARCH=X_SPARC endif # ARCH sparc @@ -67,10 +103,6 @@ CPPFLAGS += -DX_ARCH=X_SPARCV9 endif # ARCH sparcv9 -ifeq ($(ARCH), amd64) - CPPFLAGS += -DX_ARCH=X_AMD64 -endif # ARCH amd64 - # files needed for MIDI i/o MIDIFILES_c = \ diff -urN openjdk.orig/jdk/src/share/native/com/sun/media/sound/SoundDefs.h openjdk/jdk/src/share/native/com/sun/media/sound/SoundDefs.h --- openjdk.orig/jdk/src/share/native/com/sun/media/sound/SoundDefs.h 2007-12-14 08:59:23.000000000 +0100 +++ openjdk/jdk/src/share/native/com/sun/media/sound/SoundDefs.h 2008-03-03 02:55:41.516337000 +0100 @@ -33,11 +33,18 @@ #define X_LINUX 3 // types for X_ARCH -#define X_I586 1 -#define X_SPARC 2 -#define X_SPARCV9 3 -#define X_IA64 4 -#define X_AMD64 5 +#define X_ALPHA 1 +#define X_AMD64 2 +#define X_ARM 3 +#define X_I586 4 +#define X_IA64 5 +#define X_MIPS 6 +#define X_PPC 7 +#define X_PPC64 8 +#define X_S390 9 +#define X_S390X 10 +#define X_SPARC 11 +#define X_SPARCV9 12 // ********************************** // Make sure you set X_PLATFORM and X_ARCH defines correctly. --- openjdk/hotspot/src/os/linux/vm/os_linux.cpp 2008/03/03 11:19:30 1.1 +++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp 2008/03/03 11:43:34 @@ -1679,7 +1679,8 @@ {EM_SPARC32PLUS, EM_SPARC, ELFCLASS32, ELFDATA2MSB, (char*)"Sparc 32"}, {EM_SPARCV9, EM_SPARCV9, ELFCLASS64, ELFDATA2MSB, (char*)"Sparc v9 64"}, {EM_PPC, EM_PPC, ELFCLASS32, ELFDATA2MSB, (char*)"Power PC 32"}, - {EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2MSB, (char*)"Power PC 64"} + {EM_PPC64, EM_PPC64, ELFCLASS64, ELFDATA2MSB, (char*)"Power PC 64"}, + {EM_S390, EM_S390, ELFCLASS32, ELFDATA2MSB, (char*)"S390"} }; #if (defined IA32) @@ -1696,9 +1697,11 @@ static Elf32_Half running_arch_code=EM_PPC64; #elif (defined __powerpc__) static Elf32_Half running_arch_code=EM_PPC; + #elif (defined __s390__) + static Elf32_Half running_arch_code=EM_S390; #else #error Method os::dll_load requires that one of following is defined:\ - IA32, AMD64, IA64, __sparc, __powerpc__ + IA32, AMD64, IA64, __sparc, __powerpc__, __s390__ #endif // Identify compatability class for VM's architecture and library's architecture ++++++ icedtea-s390x.patch ++++++ --- patches/icedtea-text-relocations.patch +++ patches/icedtea-text-relocations.patch 2008/03/03 14:10:02 @@ -4,7 +4,7 @@ # Compiler flags # position-independent code -+ifneq ($(filter ppc ppc64,$(BUILDARCH)),) ++ifneq ($(filter ppc ppc64 s390 s390x,$(BUILDARCH)),) PICFLAG = -fPIC +else +PICFLAG = -fpic --- ports/hotspot/build/linux/makefiles/s390.make +++ ports/hotspot/build/linux/makefiles/s390.make 2008/03/03 15:19:02 @@ -24,7 +24,7 @@ # # Not included in includeDB because it has no dependencies -Obj_Files += linux_s390.o +#Obj_Files += linux_s390.o # The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) --- ports/hotspot/build/linux/makefiles/s390x.make +++ ports/hotspot/build/linux/makefiles/s390x.make 2008/03/03 15:19:08 @@ -24,7 +24,7 @@ # # Not included in includeDB because it has no dependencies -Obj_Files += linux_s390x.o +#Obj_Files += linux_s390x.o # The copied fdlibm routines in sharedRuntimeTrig.o must not be optimized OPT_CFLAGS/sharedRuntimeTrig.o = $(OPT_CFLAGS/NOOPT) --- ports/jdk/src/solaris/bin/ergo_s390x.c +++ ports/jdk/src/solaris/bin/ergo_s390x.c 2008/03/03 15:18:07 @@ -0,0 +1,58 @@ +/* + * Copyright 1998-2007 Sun Microsystems, Inc. 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. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + */ +#include "ergo.h" + + +/* Methods for solaris-sparc and linux-sparc: these are easy. */ + +/* Ask the OS how many processors there are. */ +static unsigned long +physical_processors(void) { + const unsigned long sys_processors = sysconf(_SC_NPROCESSORS_CONF); + + JLI_TraceLauncher("sysconf(_SC_NPROCESSORS_CONF): %lu\n", sys_processors); + return sys_processors; +} + +/* The sparc version of the "server-class" predicate. */ +jboolean +ServerClassMachineImpl(void) { + jboolean result = JNI_FALSE; + /* How big is a server class machine? */ + const unsigned long server_processors = 2UL; + const uint64_t server_memory = 2UL * GB; + const uint64_t actual_memory = physical_memory(); + + /* Is this a server class machine? */ + if (actual_memory >= server_memory) { + const unsigned long actual_processors = physical_processors(); + if (actual_processors >= server_processors) { + result = JNI_TRUE; + } + } + JLI_TraceLauncher("unix_" LIBARCHNAME "_ServerClassMachine: %s\n", + (result == JNI_TRUE ? "JNI_TRUE" : "JNI_FALSE")); + return result; +} ++++++ icedtea-to_hg.patch ++++++ ++++ 44812 lines (skipped) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org