Remove expired port:

2011-04-17 java/jdk14: does not build on FreeBSD 7.x or newer
This commit is contained in:
Rene Ladan 2011-06-28 18:57:18 +00:00
parent 0a6f135ee0
commit d69e3c8bb5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276598
25 changed files with 1 additions and 2172 deletions

4
LEGAL
View file

@ -277,10 +277,6 @@ j2sdk-*-linux-i586.bin java/linux-blackdown-jdk14 License does not allow
distribution with fee
j2sdk-1_3_1-src.tar.gz java/jdk13 Redistribution of pre-compiled
binaries is not permitted
j2sdk-1_4_2-bin-scsl.* java/jdk14 Redistribution of pre-compiled
binaries is not permitted
j2sdk-1_4_2-src-scsl.* java/jdk14 Redistribution of pre-compiled
binaries is not permitted
jdk-1_5_0-bin-scsl.* java/jdk15 Redistribution of pre-compiled
binaries is not permitted
jdk-1_5_0-src-scsl.* java/jdk15 Redistribution of pre-compiled

1
MOVED
View file

@ -2234,3 +2234,4 @@ www/mod_macro2||2011-06-25|Has expired: will be unsupported by ASF when 2.4.0 is
www/mod_traf_thief||2011-06-25|Has expired: will be unsupported by ASF when 2.4.0 is release, migrate to 2.2.x+ now
www/mod_transform||2011-06-25|Has expired: will be unsupported by ASF when 2.4.0 is release, migrate to 2.2.x+ now
comms/ruby-termios|comms/rubygem-ruby-termios|2011-06-25|Development has moved, <=0.9.5 doesn't work with ruby 1.9.x
java/jdk14||2011-06-28|Has expired: does not build on FreeBSD 7.x or newer

View file

@ -101,7 +101,6 @@
SUBDIR += jde
SUBDIR += jdk13
SUBDIR += jdk13-doc
SUBDIR += jdk14
SUBDIR += jdk14-doc
SUBDIR += jdk15
SUBDIR += jdk15-doc

View file

@ -1,373 +0,0 @@
# New ports collection makefile for: jdk14
# Date created: 6 March 2003
# Whom: Alexey Zelkin <phantom@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= jdk
PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION}
PORTREVISION= 19
CATEGORIES= java devel
MASTER_SITES= # http://www.sun.com/software/java2/download.html
# http://www.eyesbeyond.com/freebsddom/java/jdk14.html
SCSL_SRCFILE= j2sdk-${JDK_VERSION:S/./_/g}-src-scsl.zip
SCSL_BINFILE= j2sdk-${JDK_VERSION:S/./_/g}-bin-scsl.zip
PATCHSETFILE= bsd-jdk14-patches-${JDK_PATCHSET_VERSION}.tar.gz
POLICYFILE= jce_policy-${JDK_VERSION:S/./_/g}.zip
TZUPDATEFILE= tzupdater-${TZUPDATE_VERSION}-${TZUPDATE_TZVERSION}.zip
DISTFILES= ${SCSL_SRCFILE} ${SCSL_BINFILE} ${PATCHSETFILE}
MAINTAINER= glewis@FreeBSD.org
COMMENT= Java Development Kit 1.4.2
EXTRACT_DEPENDS=zip:${PORTSDIR}/archivers/zip
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4 \
zip:${PORTSDIR}/archivers/zip \
${LOCALBASE}/include/nspr/prtypes.h:${PORTSDIR}/devel/nspr
RUN_DEPENDS= javavm:${PORTSDIR}/java/javavmwrapper
BROKEN= Does not compile with GCC 4.2
DEPRECATED= does not build on FreeBSD 7.x or newer
EXPIRATION_DATE=2011-04-17
OPTIONS= DEBUG "Enable debugging support" off \
IPV6 "Enable IPv6 support" off \
POLICY "Install the Unlimited Strength Policy Files" off \
TZUPDATE "Update the time zone data" on \
WEB "Enable the browser plugin and Java Web Start" on \
JAIL "Port is being built within a jail" off
.if defined(WITH_OPENMOTIF_JDK)
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/x11-toolkits/open-motif-jdk:extract
.else
BUILD_DEPENDS+= ${LOCALBASE}/lib/libXm.so:${PORTSDIR}/x11-toolkits/open-motif
.endif
PKGINSTALL= ${WRKDIR}/pkg-install
PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
SUB_FILES+= pkg-install \
pkg-deinstall
SUB_LIST+= JRE_HOME=${PREFIX}/jdk${JDK_VERSION}/jre \
ARCH=${MACHINE_ARCH}
WRKSRC= ${WRKDIR}/control/make
JDK_VERSION= 1.4.2
JDK_PATCHSET_VERSION= 8
LATEST_LINK= jdk14
TZUPDATE_VERSION= 1_3_25
TZUPDATE_TZVERSION= 2009u
SUN_LINUX_JDK_VERSION= 1.4.2
.if !defined(WITH_LINUX_BOOTSTRAP)
NATIVE_BOOTSTRAP_JDKS= ${LOCALBASE}/jdk1.4.2
.endif
LINUX_BOOTSTRAP_JDKS= ${LOCALBASE}/linux-sun-jdk1.4.2
.include <bsd.port.pre.mk>
.if defined(WITH_IPV6)
CATEGORIES+= ipv6
.endif
.if defined(WITH_POLICY)
DISTFILES+= ${POLICYFILE}
EXTRACT_ONLY+= ${POLICYFILE}
.endif
.if defined(WITH_TZUPDATE)
DISTFILES+= ${TZUPDATEFILE}
EXTRACT_ONLY+= ${TZUPDATEFILE}
.endif
.if defined(WITH_WEB)
RUN_DEPENDS+= ${LOCALBASE}/lib/X11/fonts/URW/fonts.dir:${PORTSDIR}/x11-fonts/urwfonts
.endif
.if defined(WITH_OPENMOTIF_JDK)
OPENMOTIF_DIR= ${WRKDIR}/jdkmotif
.else
OPENMOTIF_DIR= ${LOCALBASE}
.endif
# do we have valid native jdk installed?
.if !defined(WITH_LINUX_BOOTSTRAP)
.for CJDK in ${NATIVE_BOOTSTRAP_JDKS}
. if !defined(JDK14DIR) && exists(${CJDK}/bin/javac)
JDK14DIR= ${CJDK}
. endif
.endfor
.endif
# do we have valid linux jdk installed?
.if !defined(JDK14DIR)
.for CJDK in ${LINUX_BOOTSTRAP_JDKS}
. if !defined(JDK14DIR) && exists(${CJDK}/bin/javac)
JDK14DIR= ${CJDK}
WITH_LINUX_BOOTSTRAP= YES
. endif
.endfor
.endif
# if no valid jdk found, set dependency
.if !defined(JDK14DIR)
JDK14DIR?= ${LOCALBASE}/linux-sun-jdk${SUN_LINUX_JDK_VERSION}
.endif
BUILD_DEPENDS+= ${JDK14DIR}/bin/javac:${PORTSDIR}/java/linux-sun-jdk14
# workaround to handle both 'zip' and 'tar.gz' distfiles
USE_ZIP= YES
EXTRACT_ONLY+= ${SCSL_SRCFILE} ${SCSL_BINFILE}
ONLY_FOR_ARCHS= i386
USE_GMAKE= YES
USE_XORG+= x11 xext xi xmu xp xt xtst
RESTRICTED= "Redistribution of pre-compiled binaries is not permitted"
NO_CDROM= "Redistribution of pre-compiled binaries is not permitted"
MAKE_ENV= ALT_BOOTDIR="${JDK14DIR}" \
ALT_MOTIF_DIR="${OPENMOTIF_DIR}" \
SYS_CFLAGS="${CFLAGS}" \
DEV_ONLY="YES" \
LANG="C" \
JAVA_HOME="" \
CLASSPATH="" \
LD_LIBRARY_PATH="" \
MAKEFLAGS=""
.if defined(WITHOUT_WEB)
MAKE_ENV+= NO_PLUGIN="YES" \
NO_JAVAWS="YES"
.endif
ALL_TARGET= all
PLIST_FILES= jdk${JDK_VERSION}/jre/.systemPrefs/.system.lock \
jdk${JDK_VERSION}/jre/.systemPrefs/.systemRootModFile
PLIST_DIRS= jdk${JDK_VERSION}/jre/.systemPrefs
JDKIMAGEDIR= ${WRKSRC}/../build/bsd-i586/j2sdk-image
JDKIMAGEDIR_G= ${WRKSRC}/../build/bsd-i586/j2sdk-debug-image
.if defined(WITHOUT_IPV6)
EXTRA_PATCHES+= ${PATCHDIR}/disable-ipv6.patch
.endif
.if defined(WITHOUT_WEB)
PKGNAMESUFFIX= -minimal
.endif
LOCAL_FILES= ../../hotspot/src/os/bsd/vm/os_bsd.cpp
PTHREAD_FILES= ../../hotspot/build/bsd/makefiles/vm.make \
../../j2se/make/common/Defs.gmk \
../../j2se/make/common/Program.gmk \
../../j2se/make/common/Defs-bsd.gmk \
../../j2se/make/java/hpi/hpi_common.gmk \
../../j2se/make/java/hpi/native/Makefile \
../../j2se/make/java/net/Makefile \
../../deploy/make/common/Defs-bsd.gmk \
../../deploy/make/plugin/common/config.gmk
X11_FILES= ../../j2se/src/solaris/native/sun/awt/fontpath.c
# Check for JDK sources and patch file
.if !defined(PACKAGE_BUILDING) && (!exists(${DISTDIR}/${SCSL_SRCFILE}) || !exists(${DISTDIR}/${SCSL_BINFILE}) || (defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})) || (defined(WITH_TZUPDATE) && !exists(${DISTDIR}/${TZUPDATEFILE})) || !exists(${DISTDIR}/${PATCHSETFILE}))#{
ECHO_MSG=/usr/bin/printf
IGNORE= :\n\
Due to licensing restrictions, certain files must be fetched manually.\n\n
.if !exists(${DISTDIR}/${SCSL_SRCFILE}) || !exists(${DISTDIR}/${SCSL_BINFILE})#{
IGNORE += Please open http://www.sun.com/software/java2/download.html\n\
in a web browser and follow the \"Download\" link for the\n\
\"Java 2 SDK ${JDK_VERSION}\". You will be required to log in and register,\n\
but you can create an account on this page. After registration and\n\
accepting the Sun Community Source License, download the\n
.if !exists(${DISTDIR}/${SCSL_SRCFILE})#{
IGNORE += SCSL Source file, ${SCSL_SRCFILE}
.endif#}
.if !exists(${DISTDIR}/${SCSL_BINFILE})#{
.if !exists(${DISTDIR}/${SCSL_SRCFILE})#{
IGNORE += and the\n
.endif#}
IGNORE += SCSL Binaries file, ${SCSL_BINFILE}
.endif#}
IGNORE += .\n\n
.endif#}
.if defined(WITH_POLICY) && !exists(${DISTDIR}/${POLICYFILE})#{
IGNORE += Please open http://java.sun.com/products/jce/index-14.html\n\
in a web browser and follow the \"Download JCE Unlimited Strength\n\
Jurisdiction Policy Files\" link for \"Other Downloads\" to obtain the\n\
JCE policy file, ${POLICYFILE}.\n\n
.endif#}
.if defined(WITH_TZUPDATE) && !exists(${DISTDIR}/${TZUPDATEFILE})#{
IGNORE += Please open http://java.sun.com/javase/downloads/index.jsp\n\
in a web browser and follow the \"Download\" link for\n\
\"JDK US DST Timezone Update Tool - ${TZUPDATE_VERSION}\" to obtain the\n\
time zone update file, ${TZUPDATEFILE}.\n\n
.endif#}
.if !exists(${DISTDIR}/${PATCHSETFILE})#{
IGNORE += Please download the patchset, ${PATCHSETFILE}, from\n\
http://www.eyesbeyond.com/freebsddom/java/jdk14.html.\n\n
.endif#}
IGNORE += Please place the downloaded file(s) in ${DISTDIR}
IGNORE += \n and restart the build.\n\n
.endif#}
# JDK 1.4.2 require recent version of FreeBSD due to recent libc_r updates.
# Make check for reqiuired primities as early as possible
TESTPROG=testos
check-os:
.if !defined(SKIP_OS_TEST)
-@mkdir -p ${WRKDIR} ; \
rm -f ${WRKDIR}/${TESTPROG} ; \
gcc ${PTHREAD_LIBS} -o ${WRKDIR}/${TESTPROG} \
${FILESDIR}/${TESTPROG}.c > /dev/null 2>&1
@if [ ! -f ${WRKDIR}/${TESTPROG} ] ; \
then \
/usr/bin/printf "\n\
You must have a version of FreeBSD later than 4.7-STABLE\n\
February 2003 or 5-CURRENT February 2003 to compile and\n\
use JDK 1.4.2.\n\n" ; \
exit 1 ; \
fi
@${WRKDIR}/${TESTPROG} 2>/dev/null
.endif
pre-fetch: check-os
@${ECHO_MSG}
@${ECHO_MSG} "IMPORTANT: To build JDK 1.4.2 port, you should have at least"
@${ECHO_MSG} "1.7Gb of free disk space in build area!"
@${ECHO_MSG}
.if defined(WITH_LINUX_BOOTSTRAP)
@${ECHO_MSG} "IMPORTANT: To build JDK 1.4.2 port, you should have linux emulation"
@${ECHO_MSG} "enabled in the kernel and linux procfs (linprocfs) filesystem"
@${ECHO_MSG} "mounted."
@${ECHO_MSG}
.endif
pre-patch:
@cd ${WRKDIR} && \
${GZIP_CMD} -dc ${DISTDIR}/${PATCHSETFILE} | ${TAR} -xf - && \
${CHMOD} -R u+w * && \
${PATCH} -p0 < ${WRKDIR}/jdk14.patches
post-patch:
@for file in ${LOCAL_FILES}; do \
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
${WRKSRC}/$${file}; \
done
@for file in ${PTHREAD_FILES}; do \
${REINPLACE_CMD} -e "s:-lkse:${PTHREAD_LIBS}:g" \
${WRKSRC}/$${file}; \
done
@for file in ${X11_FILES}; do \
${REINPLACE_CMD} -e "s:%%LOCALBASE%%:${LOCALBASE}:" \
${WRKSRC}/$${file}; \
done
pre-build-linuxcheck:
.if defined(WITH_LINUX_BOOTSTRAP)
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
x`${LS} -ld "/compat/linux/$${WRKDIRPREFIX}" 2>/dev/null | awk '/->/{print $$NF;exit 0}END{exit 1}'` = x"$${WRKDIRPREFIX}" ]; \
then \
${ECHO_MSG} "Please set WRKDIRPREFIX to something which doesn't"; \
${ECHO_MSG} "have a matching symbolic link in /compat/linux."; \
${ECHO_MSG} "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
@if [ `/sbin/sysctl -n compat.linux.osname` != "Linux" ]; \
then \
${ECHO_MSG} "Please set the value of the sysctl compat.linux.osname"; \
${ECHO_MSG} "to 'Linux' with the command:"; \
${ECHO_MSG} " /sbin/sysctl compat.linux.osname=Linux"; \
${ECHO_MSG} "Having it set to other values, such as 'FreeBSD',"; \
${ECHO_MSG} "is known to cause problems during bootstrapping."; \
exit 1; \
fi
.if !defined(WITH_JAIL)
@if [ "`/sbin/mount | grep ^linprocfs`" = "" ]; \
then \
${ECHO_MSG} "ERROR: You have to have LINPROCFS mounted before" ; \
${ECHO_MSG} "starting to build of native JDK 1.4.2." ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "You may do it by following set of commands:" ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "# kldload linprocfs" ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "and" ; \
${ECHO_MSG} "" ; \
${ECHO_MSG} "# mount -t linprocfs linprocfs /compat/linux/proc" ; \
${ECHO_MSG} "" ; \
exit 1 ; \
fi
.endif
.endif
pre-build: pre-build-linuxcheck
.if defined(WITH_OPENMOTIF_JDK)
cd ${PORTSDIR}/x11-toolkits/open-motif-jdk && \
${MAKE} WITH_JDK_PATCH=${WRKDIR}/patch-java-dnd-fix \
PREFIX=${OPENMOTIF_DIR} \
NO_PKG_REGISTER=YES install
.endif
do-build:
# Start of jdk build
@(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${ALL_TARGET})
post-build:
@# make sure that SwingSet2/resources does not exists
@${RM} -rf ${JDKIMAGEDIR}/demo/jfc/SwingSet2/resources
@${RM} -rf ${JDKIMAGEDIR}/demo/plugin/jfc/SwingSet2/resources
@# XXX don't install japanese manpages
@${RM} -rf ${JDKIMAGEDIR}/man/ja
@${RM} -rf ${JDKIMAGEDIR}/man/ja_JP.eucJP
.if defined(WITH_TZUPDATE)
@# Update time zones
@-${JDKIMAGEDIR}/bin/java -jar \
${WRKDIR}/tzupdater-${TZUPDATE_VERSION:S/_/./g}-${TZUPDATE_TZVERSION}/tzupdater.jar -u -bc
@-${RM} -rf ${JDKIMAGEDIR}/jre/lib/zi.tzdata*
.endif
pre-install:
.if defined(WITHOUT_WEB)
@${RM} -rf ${JDKIMAGEDIR}/demo
.endif
do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
cd ${JDKIMAGEDIR} && ${FIND} . \
| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
@${ECHO_MSG} "@unexec ${LOCALBASE}/bin/unregistervm ${PREFIX}/jdk${JDK_VERSION}/bin/java" >> ${TMPPLIST}
${FIND} -s ${JDKIMAGEDIR} -not -type d | \
${SED} -ne 's#${JDKIMAGEDIR}#jdk${JDK_VERSION}#p' >> ${TMPPLIST}
.if defined(WITH_DEBUG)
cd ${JDKIMAGEDIR_G} && ${FIND} . \
| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
${FIND} -s ${JDKIMAGEDIR_G} -not -type d | \
${SED} -ne 's#${JDKIMAGEDIR_G}#jdk${JDK_VERSION}#p' >> ${TMPPLIST}
.endif
${INSTALL_DATA} ${FILESDIR}/cacerts \
${PREFIX}/jdk${JDK_VERSION}/jre/lib/security/cacerts
.if defined(WITH_POLICY)
${INSTALL_DATA} ${WRKDIR}/jce/*.jar ${PREFIX}/jdk${JDK_VERSION}/jre/lib/security
.endif
.if defined(WITH_WEB)
${INSTALL_DATA} ${FILESDIR}/cacerts \
${PREFIX}/jdk${JDK_VERSION}/jre/javaws/cacerts
.endif
@${FIND} -s -d ${PREFIX}/jdk${JDK_VERSION} -type d | \
${SED} -ne 's#^${PREFIX}/#@dirrm #p' >> ${TMPPLIST}
@${ECHO_MSG} "@exec ${LOCALBASE}/bin/registervm ${PREFIX}/jdk${JDK_VERSION}/bin/java # FREEBSD-JDK${JDK_VERSION}" >> ${TMPPLIST}
post-install:
.if defined(WITH_WEB)
${FIND} "${PREFIX}/jdk${JDK_VERSION}/jre/plugin" -type d | ${XARGS} ${CHMOD} a+rx
.endif
@${LOCALBASE}/bin/registervm "${PREFIX}/jdk${JDK_VERSION}/bin/java # FREEBSD-JDK${JDK_VERSION}"
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.post.mk>

View file

@ -1,10 +0,0 @@
SHA256 (j2sdk-1_4_2-src-scsl.zip) = 385be651498992858f02fa6f02db2b97eb8f7090222ab47e1ad984fd48937eb8
SIZE (j2sdk-1_4_2-src-scsl.zip) = 49269919
SHA256 (j2sdk-1_4_2-bin-scsl.zip) = 033a7babe989176890760cffa03d6c1dd595d93d47637032c4314bf6a96008d0
SIZE (j2sdk-1_4_2-bin-scsl.zip) = 2513462
SHA256 (bsd-jdk14-patches-8.tar.gz) = 71e9891f5457b73f3ee055688053bb2cee209749f0ea9da596df6eef929bbbc3
SIZE (bsd-jdk14-patches-8.tar.gz) = 1148395
SHA256 (jce_policy-1_4_2.zip) = 7bf6d683602686321affc0071ad2fc3890c19cf5bb5cc16a963052e17588c097
SIZE (jce_policy-1_4_2.zip) = 12195
SHA256 (tzupdater-1_3_25-2009u.zip) = b2440ceffc322496546be0384a29bfc6322b290cdc1ef82ce363d742bcc357cc
SIZE (tzupdater-1_3_25-2009u.zip) = 485247

Binary file not shown.

View file

@ -1,15 +0,0 @@
$FreeBSD$
--- ../../j2se/src/solaris/native/java/net/net_util_md.c.orig Tue Jan 27 17:31:03 2004
+++ ../../j2se/src/solaris/native/java/net/net_util_md.c Tue Jan 27 17:31:38 2004
@@ -166,6 +166,10 @@
int fd;
void *ipv6_fn;
+#ifdef __FreeBSD__
+ return JNI_FALSE;
+#endif
+
fd = JVM_Socket(AF_INET6, SOCK_STREAM, 0) ;
if (fd < 0) {
/*

View file

@ -1,41 +0,0 @@
$FreeBSD$
--- ../../j2se/make/common/Defs-bsd.gmk.orig Sun Jun 3 10:46:29 2007
+++ ../../j2se/make/common/Defs-bsd.gmk Sun Jun 3 11:04:08 2007
@@ -40,15 +40,15 @@
BASENAME = $(USRBIN_PATH)basename
CAT = $(UNIXCOMMAND_PATH)cat
ifneq ($(TRUE_PLATFORM), OpenBSD)
-CC = $(COMPILER_PATH)gcc
-CPP = $(COMPILER_PATH)gcc -E
+CC ?= $(COMPILER_PATH)gcc
+CPP ?= $(COMPILER_PATH)gcc -E
ifeq ($(STATIC_CXX),true)
# g++ always dynamically links libstdc++, even we use "-Wl,-Bstatic -lstdc++"
# We need to use gcc to statically link the C++ runtime. gcc and g++ use
# the same subprocess to compile C++ files, so it is OK to build using gcc.
-CXX = $(COMPILER_PATH)gcc
+CXX ?= $(COMPILER_PATH)gcc
else
-CXX = $(COMPILER_PATH)g++
+CXX ?= $(COMPILER_PATH)g++
endif
else
# Allow ports/pkgsrc infrastructure to override CC, CPP and CXX.
@@ -192,7 +192,7 @@
ifeq ($(TRUE_PLATFORM), NetBSD)
DEVTOOLS_PATH = /usr/pkg/bin/
else
-DEVTOOLS_PATH = /usr/local/bin/
+DEVTOOLS_PATH = ${LOCALBASE}/bin/
endif
# Allow the user to override the default value...
ifdef ALT_DEVTOOLS_PATH
@@ -443,7 +443,7 @@
override LIBTHREAD =
override MOOT_PRIORITIES = true
override NO_INTERRUPTIBLE_IO = false
-override OPENWIN_HOME = /usr/X11R6
+override OPENWIN_HOME = $(LOCALBASE)
override OPENWIN_LIB = $(OPENWIN_HOME)/lib
override OTHER_M4FLAGS = -DGNU_ASSEMBLER
override SUN_CMM_SUBDIR =

View file

@ -1,13 +0,0 @@
$FreeBSD$
--- ../../control/make/common/Defs-bsd.gmk.orig Wed Nov 12 16:52:22 2003
+++ ../../control/make/common/Defs-bsd.gmk Wed Nov 12 16:51:41 2003
@@ -212,7 +212,7 @@
ifeq ($(TRUE_PLATFORM), NetBSD)
DEVTOOLS_PATH = /usr/pkg/bin/
else
-DEVTOOLS_PATH = /usr/local/bin/
+DEVTOOLS_PATH = ${LOCALBASE}/bin/
endif
# Allow the user to override the default value...
ifdef ALT_DEVTOOLS_PATH

View file

@ -1,13 +0,0 @@
$FreeBSD$
--- ../../deploy/make/common/Defs-bsd.gmk.orig Fri Dec 8 11:55:05 2006
+++ ../../deploy/make/common/Defs-bsd.gmk Fri Dec 8 11:55:28 2006
@@ -14,7 +14,7 @@
JUMP_EXE = $(PROTO_DIR)/javawsbin$(SUFFIX)
CLASSPATH_SEP = $(CLASSPATH_SEPARATOR)
PATH_SEP = /
-X11DIR = /usr/X11R6
+X11DIR = $(LOCALBASE)
ifneq (,$(filter-out NetBSD DragonFly,$(TRUE_PLATFORM)))
LIBS = -L$(X11DIR)/lib -lX11
else

View file

@ -1,131 +0,0 @@
$FreeBSD$
--- ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c.orig Mon Oct 31 21:54:39 2005
+++ ../../j2se/src/solaris/native/java/net/PlainDatagramSocketImpl.c Tue Nov 1 13:13:05 2005
@@ -226,8 +226,15 @@ Java_java_net_PlainDatagramSocketImpl_bi
NET_InetAddressToSockaddr(env, iaObj, localport, (struct sockaddr *)&him, &len);
#if defined(_ALLBSD_SOURCE)
- if (cannotMap4to6(env, iaObj))
- return;
+#if defined(IPV6_V6ONLY)
+ if (((struct sockaddr *)&him)->sa_family == AF_INET6) {
+ int t = 0;
+ JVM_SetSockOpt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&t, sizeof(t));
+ }
+#else
+ if (cannotMap4to6(env, iaObj))
+ return;
+#endif /* IPV6_V6ONLY */
#endif /* _ALLBSD_SOURCE */
@@ -292,8 +299,15 @@ Java_java_net_PlainDatagramSocketImpl_co
NET_InetAddressToSockaddr(env, address, port, (struct sockaddr *)&rmtaddr, &len);
#if defined(_ALLBSD_SOURCE)
- if (cannotMap4to6(env, address))
- return;
+#if defined(IPV6_V6ONLY)
+ if (((struct sockaddr *)&rmtaddr)->sa_family == AF_INET6) {
+ int t = 0;
+ JVM_SetSockOpt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&t, sizeof(t));
+ }
+#else
+ if (cannotMap4to6(env, address))
+ return;
+#endif /* IPV6_V6ONLY */
#endif /* _ALLBSD_SOURCE */
@@ -2191,11 +2205,18 @@ static void mcast_join_leave(JNIEnv *env
jbyte caddr[16];
jint family;
jint address;
+#if defined(_ALLBSD_SOURCE) && defined(IPV6_V6ONLY)
+ int t = 0;
+#endif
family = (*env)->GetIntField(env, iaObj, ia_familyID) == IPv4? AF_INET : AF_INET6;
#if defined(_ALLBSD_SOURCE)
- if (cannotMap4to6(env, iaObj))
- return;
+#if defined(IPV6_V6ONLY)
+ JVM_SetSockOpt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&t, sizeof(t));
+#else
+ if (cannotMap4to6(env, iaObj))
+ return;
+#endif /* IPV6_V6ONLY */
#endif /* _ALLBSD_SOURCE */
if (family == AF_INET) { /* will convert to IPv4-mapped address */
--- ../../j2se/src/solaris/native/java/net/PlainSocketImpl.c.orig Mon Oct 31 21:54:39 2005
+++ ../../j2se/src/solaris/native/java/net/PlainSocketImpl.c Tue Nov 1 13:11:57 2005
@@ -323,8 +323,15 @@ Java_java_net_PlainSocketImpl_socketConn
/* connect */
NET_InetAddressToSockaddr(env, iaObj, port, (struct sockaddr *)&him, &len);
#if defined(_ALLBSD_SOURCE)
- if (cannotMap4to6(env, iaObj))
- return;
+#if defined(IPV6_V6ONLY)
+ if (((struct sockaddr *)&him)->sa_family == AF_INET6) {
+ int t = 0;
+ JVM_SetSockOpt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&t, sizeof(t));
+ }
+#else
+ if (cannotMap4to6(env, iaObj))
+ return;
+#endif /* IPV6_V6ONLY */
#endif /* _ALLBSD_SOURCE */
#ifdef AF_INET6
@@ -579,8 +586,15 @@ Java_java_net_PlainSocketImpl_socketBind
/* bind */
NET_InetAddressToSockaddr(env, iaObj, localport, (struct sockaddr *)&him, &len);
#if defined(_ALLBSD_SOURCE)
- if (cannotMap4to6(env, iaObj))
- return;
+#if defined(IPV6_V6ONLY)
+ if (((struct sockaddr *)&him)->sa_family == AF_INET6) {
+ int t = 0;
+ JVM_SetSockOpt(fd, IPPROTO_IPV6, IPV6_V6ONLY, (void *)&t, sizeof(t));
+ }
+#else
+ if (cannotMap4to6(env, iaObj))
+ return;
+#endif /* IPV6_V6ONLY */
#endif /* _ALLBSD_SOURCE */
if (NET_Bind(fd, (struct sockaddr *)&him, len) < 0) {
--- ../../j2se/src/solaris/native/java/net/net_util_md.c.orig Mon Oct 31 21:54:39 2005
+++ ../../j2se/src/solaris/native/java/net/net_util_md.c Tue Nov 1 13:14:35 2005
@@ -1129,7 +1129,7 @@ NET_Bind(int fd, struct sockaddr *him, i
return rv;
}
-#if defined(_ALLBSD_SOURCE)
+#if defined(_ALLBSD_SOURCE) && !defined(IPV6_V6ONLY)
/*
* If net.inet6.ip6.v6only is set to 1, then IPv4 mapped addresses usage
--- ../../j2se/src/solaris/native/java/net/net_util_md.h.orig Mon Oct 31 21:54:39 2005
+++ ../../j2se/src/solaris/native/java/net/net_util_md.h Tue Nov 1 13:15:39 2005
@@ -24,6 +24,9 @@
#endif
#endif /* !_ALLBSD_SOURCE */
+#if defined(IPV6_V6ONLY) && defined(__OpenBSD__)
+#undef IPV6_V6ONLY
+#endif
/*
* Linux header files define sockaddr_in6 incorrectly (missing the
* sin6_scope_id field) so we use our own definition.
@@ -144,7 +147,7 @@
/*
* Check for disabled IPv4 mapped addresses.
*/
-#if defined(_ALLBSD_SOURCE)
+#if defined(_ALLBSD_SOURCE) && !defined(IPV6_V6ONLY)
int cannotMap4to6(JNIEnv *env, jobject iaObj);
#endif

View file

@ -1,13 +0,0 @@
$FreeBSD$
--- ../../j2se/src/solaris/native/sun/awt/awt_motif21.c 14 Jan 2005 10:35:32 -0000 1.6
+++ ../../j2se/src/solaris/native/sun/awt/awt_motif21.c 8 May 2007 22:05:37 -0000
@@ -15,7 +15,7 @@
#include "awt_p.h"
#include "awt_Component.h"
-#if (XmVersion == 2001)
+#if (XmVersion >= 2001)
#include <Xm/XmIm.h>
#else
#define XmPER_SHELL 0

View file

@ -1,19 +0,0 @@
$FreeBSD$
--- ../../j2se/src/solaris/native/sun/awt/fontpath.c.orig Fri Dec 8 11:59:25 2006
+++ ../../j2se/src/solaris/native/sun/awt/fontpath.c Fri Dec 8 12:00:06 2006
@@ -495,10 +495,10 @@
char *ptr;
#if defined(__linux__) || defined(_ALLBSD_SOURCE)
- ptr = "/usr/X11R6/lib/X11/fonts/Type1:"
- "/usr/X11R6/lib/X11/fonts/TrueType:"
- "/usr/X11R6/lib/X11/fonts/tt:"
- "/usr/share/fonts/ja/TrueType";
+ ptr = "%%LOCALBASE%%/lib/X11/fonts/Type1:"
+ "%%LOCALBASE%%/lib/X11/fonts/TrueType:"
+ "%%LOCALBASE%%/lib/X11/fonts/tt:"
+ "%%LOCALBASE%%/fonts/ja/TrueType";
#elif defined( HEADLESS )
ptr = getSolarisFontLocations(env, (int) (noType1==JNI_TRUE));
#elif SCAN_FONT_DIRS

View file

@ -1,110 +0,0 @@
$FreeBSD$
--- ../../j2se/src/solaris/native/java/net/Inet4AddressImpl.c.old Tue Jun 27 02:55:32 2006
+++ ../../j2se/src/solaris/native/java/net/Inet4AddressImpl.c Tue Jun 27 02:55:35 2006
@@ -13,6 +13,7 @@
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
+#include <pthread.h>
#if defined(_ALLBSD_SOURCE)
#include <unistd.h>
#if defined(__FreeBSD__) && __FreeBSD__ > 4
@@ -312,6 +313,34 @@
struct hostent *hptr,
HOST_R_ARGS);
+/*
+ * BSDNOTE: Since we are emulating thread-safe functions, we need to
+ * ensure they're not running in parallel. So, setup mutexes
+ *
+ * XXXBSD: make sure it works as expected
+ * XXXBSD: move initialization to somethere earlier
+ */
+
+pthread_mutex_t _net_mutex = PTHREAD_MUTEX_INITIALIZER;
+static int _net_mutex_inited = 0;
+
+static int
+_acquire_net_mutex()
+{
+ if (_net_mutex_inited == 0) {
+ if (pthread_mutex_init(&_net_mutex, NULL))
+ return (EINVAL);
+ _net_mutex_inited = 1;
+ }
+ return (pthread_mutex_lock(&_net_mutex));
+}
+
+static int
+_release_net_mutex()
+{
+ return (pthread_mutex_unlock(&_net_mutex));
+}
+
#endif
/************************************************************************
@@ -355,15 +384,19 @@
#ifdef __GLIBC__
gethostbyname_r(hostname, &res, buf, sizeof(buf), &hp, &h_error);
#else
+ _acquire_net_mutex();
hp = JDK_gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error);
+ _release_net_mutex();
#endif
if (hp) {
#ifdef __GLIBC__
gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET,
&res2, buf2, sizeof(buf2), &hp, &h_error);
#else
+ _acquire_net_mutex();
hp = JDK_gethostbyaddr_r(hp->h_addr, hp->h_length, AF_INET,
&res2, buf2, sizeof(buf2), &h_error);
+ _release_net_mutex();
#endif
if (hp) {
/*
@@ -428,7 +461,9 @@
#ifdef __GLIBC__
gethostbyname_r(hostname, &res, buf, sizeof(buf), &hp, &h_error);
#else
+ _acquire_net_mutex();
hp = JDK_gethostbyname_r(hostname, &res, buf, sizeof(buf), &h_error);
+ _release_net_mutex();
#endif
/* With the re-entrant system calls, it's possible that the buffer
@@ -442,8 +477,10 @@
gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE,
&hp, &h_error);
#else
+ _acquire_net_mutex();
hp = JDK_gethostbyname_r(hostname, &res, tmp, BIG_HENT_BUF_SIZE,
&h_error);
+ _release_net_mutex();
#endif
}
}
@@ -531,8 +568,10 @@
gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent,
buf, sizeof(buf), &hp, &h_error);
#else
+ _acquire_net_mutex();
hp = JDK_gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET, &hent,
buf, sizeof(buf), &h_error);
+ _release_net_mutex();
#endif
/* With the re-entrant system calls, it's possible that the buffer
* we pass to it is not large enough to hold an exceptionally
@@ -545,8 +584,10 @@
gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET,
&hent, tmp, BIG_HENT_BUF_SIZE, &hp, &h_error);
#else
+ _acquire_net_mutex();
hp = JDK_gethostbyaddr_r((char *)&addr, sizeof(addr), AF_INET,
&hent, tmp, BIG_HENT_BUF_SIZE, &h_error);
+ _release_net_mutex();
#endif
} else {
JNU_ThrowOutOfMemoryError(env, "getHostByAddr");

View file

@ -1,18 +0,0 @@
--- ../../j2se/make/java/zip/FILES_c.gmk.orig Wed Sep 10 19:43:01 2003
+++ ../../j2se/make/java/zip/FILES_c.gmk Sat Feb 11 00:55:54 2006
@@ -8,15 +8,4 @@
$(CTARGDIR)Inflater.c \
$(CTARGDIR)ZipFile.c \
$(CTARGDIR)ZipEntry.c \
- $(CTARGDIR)zadler32.c \
- $(CTARGDIR)zcrc32.c \
- $(CTARGDIR)deflate.c \
- $(CTARGDIR)trees.c \
- $(CTARGDIR)zutil.c \
- $(CTARGDIR)inflate.c \
- $(CTARGDIR)infblock.c \
- $(CTARGDIR)inftrees.c \
- $(CTARGDIR)infcodes.c \
- $(CTARGDIR)infutil.c \
- $(CTARGDIR)inffast.c \
$(CTARGDIR)zip_util.c

View file

@ -1,31 +0,0 @@
--- ../../j2se/make/java/zip/Makefile.orig Wed Sep 10 19:43:01 2003
+++ ../../j2se/make/java/zip/Makefile Sat Feb 11 00:55:54 2006
@@ -12,8 +12,6 @@
PRODUCT = sun
include $(BUILDDIR)/common/Defs.gmk
-ZLIB_VERSION = 1.1.3
-
#
# Files to compile.
#
@@ -58,13 +56,6 @@
CPPFLAGS += -UDEBUG
endif
-CPPFLAGS += -I$(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION)
-
-#
-# Add to ambient vpath so we pick up the library files
-#
-vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/zlib-$(ZLIB_VERSION)
-
#
# Has been converted to the JNI: generate JNI-style header files
#
@@ -73,4 +64,4 @@
#
# Link to JVM library for JVM_Zip* functions
#
-OTHER_LDLIBS = $(JVMLIB)
+OTHER_LDLIBS = -lz

View file

@ -1,11 +0,0 @@
--- ../../j2se/make/java/java/Makefile.orig Mon Dec 13 12:38:14 2004
+++ ../../j2se/make/java/java/Makefile Mon Dec 13 12:42:00 2004
@@ -284,7 +284,7 @@
$(RM) -r $(TMPDIR)/GenerateCurrencyData
$(MKDIR) -p $(TMPDIR)/GenerateCurrencyData
$(JAVAC_BOOT) -d $(TMPDIR)/GenerateCurrencyData $(BUILDDIR)/tools/GenerateCurrencyData/GenerateCurrencyData.java
- $(JAVA_BOOT) -classpath $(TMPDIR)/GenerateCurrencyData GenerateCurrencyData < $(SHARE_SRC)/classes/java/util/CurrencyData.properties > $@
+ $(JAVA_BOOT) -classpath $(TMPDIR)/GenerateCurrencyData GenerateCurrencyData < $(SHARE_SRC)/classes/java/util/CurrencyData.properties | egrep -v '^Java HotSpot' > $@
clean::
$(RM) $(GENSRCDIR)/java/util/CurrencyData.java

View file

@ -1,21 +0,0 @@
--- ../../deploy/make/plugin/common/config.gmk.orig 2008-04-26 01:00:47.000000000 +0200
+++ ../../deploy/make/plugin/common/config.gmk 2008-04-26 01:11:03.000000000 +0200
@@ -52,16 +52,15 @@
ifeq ($(PLATFORM), bsd)
PLUGIN_PLATFORM_SRC := $(PLUGIN_TOP)/src/plugin/src/solaris
- X11BASE = /usr/X11R6
OTHER_LDFLAGS = -L$(X11BASE)/lib
ifeq (,$(filter-out DragonFly NetBSD,$(TRUE_PLATFORM)))
- OTHER_LDFLAGS += -Wl,-R$(X11BASE)/lib
+ OTHER_LDFLAGS += -Wl,-R$(LOCALBASE)/lib
endif
DEF_SVR4 =
# include search paths
# XXXBSD: these should be defined in other place
- CPPFLAGS1 += -I$(X11BASE)/include -I/usr/local/include
+ CPPFLAGS1 += -I${LOCALBASE}/include
ifeq ($(TRUE_PLATFORM), FreeBSD)
LDFLAGS_COMMON += -pthread

View file

@ -1,13 +0,0 @@
$FreeBSD$
--- ../../deploy/make/plugin/ns6/Makefile.orig Wed Jan 14 11:10:30 2004
+++ ../../deploy/make/plugin/ns6/Makefile Wed Jan 14 11:12:11 2004
@@ -46,7 +46,7 @@
ifeq ($(TRUE_PLATFORM), FreeBSD)
# XXXBSD: is there any differences between nspr for ns610 and ns4
# XXXBSD: direct /usr/local/include/nspr path is used!!!
-EXTRA_CPPFLAGS += -I/usr/local/include/nspr
+EXTRA_CPPFLAGS += -I${LOCALBASE}/include/nspr
endif
ifeq ($(TRUE_PLATFORM), NetBSD)
EXTRA_CPPFLAGS += -I/usr/pkg/include/mozilla/nspr

View file

@ -1,13 +0,0 @@
$FreeBSD$
--- ../../hotspot/src/os/bsd/vm/os_bsd.cpp.orig Tue Jan 27 17:54:28 2004
+++ ../../hotspot/src/os/bsd/vm/os_bsd.cpp Tue Jan 27 17:55:21 2004
@@ -333,7 +333,7 @@
#define malloc(n) (char*)NEW_C_HEAP_ARRAY(char, (n))
#define getenv(n) ::getenv(n)
-#define DEFAULT_LD_LIBRARY_PATH "/usr/lib" /* See ld.so.1(1) */
+#define DEFAULT_LD_LIBRARY_PATH "/usr/lib:%%LOCALBASE%%/lib" /* See ld.so.1(1) */
#define EXTENSIONS_DIR "/lib/ext"
#define ENDORSED_DIR "/lib/endorsed"

View file

@ -1,31 +0,0 @@
#!/bin/sh
# $FreeBSD$
# Set up a standard path
PATH=/usr/bin:/bin
# Don't do anything during post-deinstall
if [ "$2" = "POST-DEINSTALL" ]; then
exit 0
fi
# Remove the plugin
# Plugin location variables
BROWSERPLUGINDIR="%%LOCALBASE%%/lib/browser_plugins"
JAVAPLUGINDIR="%%JRE_HOME%%/plugin/%%ARCH%%/ns610"
PLUGIN=libjavaplugin_oji.so
# Check if the package includes the plugin
if [ ! -e "${JAVAPLUGINDIR}/${PLUGIN}" ]; then
exit 0
fi
# See if the browser plugin is a link to the package plugin and remove it if so.
if [ -e "${BROWSERPLUGINDIR}/${PLUGIN}" -a \
-L "${BROWSERPLUGINDIR}/${PLUGIN}" -a \
x`ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` = x"${JAVAPLUGINDIR}/${PLUGIN}" ]; then
rm -f "${BROWSERPLUGINDIR}/${PLUGIN}"
fi
exit 0

View file

@ -1,57 +0,0 @@
#!/bin/sh
# $FreeBSD$
# System preference location
JRE_HOME=%%JRE_HOME%%
# Post-install actions
if [ "$2" = "POST-INSTALL" ]; then
# Set up system preferences
if [ ! -d "${JRE_HOME}/.systemPrefs" ] ; then
mkdir -m 755 "${JRE_HOME}/.systemPrefs"
fi
if [ ! -f "${JRE_HOME}/.systemPrefs/.system.lock" ] ; then
touch "${JRE_HOME}/.systemPrefs/.system.lock"
chmod 644 "${JRE_HOME}/.systemPrefs/.system.lock"
fi
if [ ! -f "${JRE_HOME}/.systemPrefs/.systemRootModFile" ] ; then
touch "${JRE_HOME}/.systemPrefs/.systemRootModFile"
chmod 644 "${JRE_HOME}/.systemPrefs/.systemRootModFile"
fi
# Install the plugin
BROWSERPLUGINDIR="%%LOCALBASE%%/lib/browser_plugins"
JAVAPLUGINDIR="${JRE_HOME}/plugin/%%ARCH%%/ns610"
PLUGIN=libjavaplugin_oji.so
# Check if the browser plugin exists
if [ ! -e "${JAVAPLUGINDIR}/${PLUGIN}" ]; then
exit 0
fi
# Check if the plugin directory exists.
if [ ! -d "${BROWSERPLUGINDIR}" ]; then
exit 0
fi
# Check if the browser plugin currently exists
if [ ! -e "${BROWSERPLUGINDIR}/${PLUGIN}" ]; then
# Create symbolic link
ln -sf "${JAVAPLUGINDIR}/${PLUGIN}" \
"${BROWSERPLUGINDIR}/${PLUGIN}"
exit 0
fi
# If the browser plugin exists and is a symlink, but the link
# doesn't exist, then overwrite with our plugin.
if [ -L "${BROWSERPLUGINDIR}/${PLUGIN}" ]; then
# Check if the linked to file exists.
if [ ! -e `ls -l "${BROWSERPLUGINDIR}/${PLUGIN}" 2>/dev/null | awk '/->/{print $NF;exit 0}END{exit 1}'` ]; then
ln -sf "${JAVAPLUGINDIR}/${PLUGIN}" \
"${BROWSERPLUGINDIR}/${PLUGIN}"
exit 0
fi
fi
exit 0
fi

View file

@ -1,81 +0,0 @@
/*-
* Copyright (c) 2003 Alexey Zelkin <phantom@FreeBSD.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* Test pthreads primitives for required functionality in order to run
* native FreeBSD JDK1.4.2 port.
*
* Returns:
* 0 - test passed
* 1 - general failure
* 200 - tests failed
*
* $FreeBSD$
*/
#include <stdio.h>
#include <pthread.h>
#include <pthread_np.h>
#define TRY(call) { \
if ((call) != 0) { \
printf("LIBC_R TEST: Unexpected error. Report to MAINTAINER\n"); \
exit(200); \
} \
}
void *
doit(void *data)
{
pthread_attr_t attr;
void *mystack = NULL;
TRY(pthread_attr_init(&attr));
TRY(pthread_attr_get_np(pthread_self(), &attr));
TRY(pthread_attr_getstackaddr(&attr, &mystack));
if (mystack == NULL) {
printf("LIBC_R TEST FAILED: libc_r update required\n");
exit(1);
}
printf("LIBC_R TEST PASSED: All Ok\n");
return(NULL);
}
int
main()
{
pthread_t tid;
pthread_attr_t attr;
int sz = 128*1024;
TRY(pthread_attr_init(&attr));
TRY(pthread_attr_setstacksize(&attr, sz));
TRY(pthread_create(&tid, &attr, doit, NULL));
TRY(pthread_join(tid, NULL));
exit(0);
}

View file

@ -1,11 +0,0 @@
This is the latest patchset from the Java 2 FreeBSD porting project. This
port allows you to easily build a native JDK1.4.2 for FreeBSD.
Please note that due to the current Sun licensing policy the resulting binaries
can't be distributed and you are only permitted to use/hack it personally.
Due to the same reasons you have to manually fetch the source code and patchset
for FreeBSD.
WWW: http://www.freebsd.org/java/
http://www.eyesbeyond.com/freebsddom/java/index.html
http://www.sun.com/software/communitysource/java2/

File diff suppressed because it is too large Load diff