diff options
author | Alexey Zelkin <phantom@FreeBSD.org> | 2003-03-15 09:57:58 +0000 |
---|---|---|
committer | Alexey Zelkin <phantom@FreeBSD.org> | 2003-03-15 09:57:58 +0000 |
commit | e051920066dd91ff7333b6ffad06f93459e7ce9e (patch) | |
tree | a9ee14951c11ae73182f194facd6b3262a7f42b4 /java | |
parent | Add a fix for a possible buffer overflow in _XlcLocaleDirName(). Privileged (diff) |
Fix checking of libc_r capabilities at FreeBSD version which
don't have pthread_attr_get_np() at all (early 4.7-STABLE and previous
versions).
Reported by: Phillip Oleson <poleson@verio.net>
Notes
Notes:
svn path=/head/; revision=77130
Diffstat (limited to 'java')
-rw-r--r-- | java/jdk14/Makefile | 28 | ||||
-rw-r--r-- | java/jdk15/Makefile | 28 | ||||
-rw-r--r-- | java/jdk16/Makefile | 28 |
3 files changed, 66 insertions, 18 deletions
diff --git a/java/jdk14/Makefile b/java/jdk14/Makefile index f8782a5b0f8c..4ac38b35dab8 100644 --- a/java/jdk14/Makefile +++ b/java/jdk14/Makefile @@ -7,7 +7,7 @@ PORTNAME= jdk PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= java devel MASTER_SITES= # http://www.sun.com/software/java2/download.html # http://www.eyesbeyond.com/freebsddom/java/jdk14.html @@ -99,24 +99,40 @@ http://www.eyesbeyond.com/freebsddom/java/jdk14.html.\n\ Please place the patchset in ${DISTDIR}.\n .endif +# JDK 1.4.1 require recent version of FreeBSD due to recent libc_r updates. +# Make check for reqiuired primities as early as possible + +TESTPROG=testos + .if ${OSVERSION} > 500000 LINKIT= -lc_r .else LINKIT= -pthread .endif -# JDK 1.4.1 require recent version of FreeBSD due to recent libc_r updates. check-os: .if !defined(SKIP_OS_TEST) - @mkdir -p ${WRKDIR} ; \ - gcc ${LINKIT} -o ${WRKDIR}/testos ${FILESDIR}/testos.c > /dev/null 2>&1 ; \ - ${WRKDIR}/testos 2>/dev/null + -@mkdir -p ${WRKDIR} ; \ + rm -f ${WRKDIR}/${TESTPROG} ; \ + gcc ${LINKIT} -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.1.\n\n" ; \ + exit 1 ; \ + fi + @${WRKDIR}/${TESTPROG} 2>/dev/null .endif pre-fetch: check-os @${ECHO_MSG} + @${ECHO_MSG} "NOTICES:" + @${ECHO_MSG} @${ECHO_MSG} "To build JDK 1.4.1 port, you should have at least" - @${ECHO_MSG} "1.5Gb of disk space!" + @${ECHO_MSG} "1.5Gb of free disk space in build area!" @${ECHO_MSG} @${ECHO_MSG} "Please use \`make -DNODEBUG' if you don't want to" @${ECHO_MSG} "install libraries and binaries with debugging support." diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile index f8782a5b0f8c..4ac38b35dab8 100644 --- a/java/jdk15/Makefile +++ b/java/jdk15/Makefile @@ -7,7 +7,7 @@ PORTNAME= jdk PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= java devel MASTER_SITES= # http://www.sun.com/software/java2/download.html # http://www.eyesbeyond.com/freebsddom/java/jdk14.html @@ -99,24 +99,40 @@ http://www.eyesbeyond.com/freebsddom/java/jdk14.html.\n\ Please place the patchset in ${DISTDIR}.\n .endif +# JDK 1.4.1 require recent version of FreeBSD due to recent libc_r updates. +# Make check for reqiuired primities as early as possible + +TESTPROG=testos + .if ${OSVERSION} > 500000 LINKIT= -lc_r .else LINKIT= -pthread .endif -# JDK 1.4.1 require recent version of FreeBSD due to recent libc_r updates. check-os: .if !defined(SKIP_OS_TEST) - @mkdir -p ${WRKDIR} ; \ - gcc ${LINKIT} -o ${WRKDIR}/testos ${FILESDIR}/testos.c > /dev/null 2>&1 ; \ - ${WRKDIR}/testos 2>/dev/null + -@mkdir -p ${WRKDIR} ; \ + rm -f ${WRKDIR}/${TESTPROG} ; \ + gcc ${LINKIT} -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.1.\n\n" ; \ + exit 1 ; \ + fi + @${WRKDIR}/${TESTPROG} 2>/dev/null .endif pre-fetch: check-os @${ECHO_MSG} + @${ECHO_MSG} "NOTICES:" + @${ECHO_MSG} @${ECHO_MSG} "To build JDK 1.4.1 port, you should have at least" - @${ECHO_MSG} "1.5Gb of disk space!" + @${ECHO_MSG} "1.5Gb of free disk space in build area!" @${ECHO_MSG} @${ECHO_MSG} "Please use \`make -DNODEBUG' if you don't want to" @${ECHO_MSG} "install libraries and binaries with debugging support." diff --git a/java/jdk16/Makefile b/java/jdk16/Makefile index f8782a5b0f8c..4ac38b35dab8 100644 --- a/java/jdk16/Makefile +++ b/java/jdk16/Makefile @@ -7,7 +7,7 @@ PORTNAME= jdk PORTVERSION= ${JDK_VERSION}p${JDK_PATCHSET_VERSION} -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= java devel MASTER_SITES= # http://www.sun.com/software/java2/download.html # http://www.eyesbeyond.com/freebsddom/java/jdk14.html @@ -99,24 +99,40 @@ http://www.eyesbeyond.com/freebsddom/java/jdk14.html.\n\ Please place the patchset in ${DISTDIR}.\n .endif +# JDK 1.4.1 require recent version of FreeBSD due to recent libc_r updates. +# Make check for reqiuired primities as early as possible + +TESTPROG=testos + .if ${OSVERSION} > 500000 LINKIT= -lc_r .else LINKIT= -pthread .endif -# JDK 1.4.1 require recent version of FreeBSD due to recent libc_r updates. check-os: .if !defined(SKIP_OS_TEST) - @mkdir -p ${WRKDIR} ; \ - gcc ${LINKIT} -o ${WRKDIR}/testos ${FILESDIR}/testos.c > /dev/null 2>&1 ; \ - ${WRKDIR}/testos 2>/dev/null + -@mkdir -p ${WRKDIR} ; \ + rm -f ${WRKDIR}/${TESTPROG} ; \ + gcc ${LINKIT} -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.1.\n\n" ; \ + exit 1 ; \ + fi + @${WRKDIR}/${TESTPROG} 2>/dev/null .endif pre-fetch: check-os @${ECHO_MSG} + @${ECHO_MSG} "NOTICES:" + @${ECHO_MSG} @${ECHO_MSG} "To build JDK 1.4.1 port, you should have at least" - @${ECHO_MSG} "1.5Gb of disk space!" + @${ECHO_MSG} "1.5Gb of free disk space in build area!" @${ECHO_MSG} @${ECHO_MSG} "Please use \`make -DNODEBUG' if you don't want to" @${ECHO_MSG} "install libraries and binaries with debugging support." |