diff options
author | Alexey Zelkin <phantom@FreeBSD.org> | 2003-08-04 08:53:42 +0000 |
---|---|---|
committer | Alexey Zelkin <phantom@FreeBSD.org> | 2003-08-04 08:53:42 +0000 |
commit | 2e706dd4da4f85a5b5824fc1e382200d2bc8198c (patch) | |
tree | 903754cbca673d1a5ae61c44717120eebcb3be0b /java/jdk15 | |
parent | f05ecd5daffde21eaf57fa69dc9d698d5dd1bb1d (diff) | |
download | ports-2e706dd4da4f85a5b5824fc1e382200d2bc8198c.tar.gz ports-2e706dd4da4f85a5b5824fc1e382200d2bc8198c.zip |
Warn users about requirement of having linprocfs mounted in order to
start native JDK port build. linprocfs mounted become pre-requisite of
build after Linux SUN JDK port was updated to 1.4.2.
Add run-time (pre-build) check for linprocfs mounted as well.
Bump space requirements note about disk space required for build of
whole JDK 1.4.1 port and package to more appropriate value (as reported
by many people).
Notes
Notes:
svn path=/head/; revision=86264
Diffstat (limited to 'java/jdk15')
-rw-r--r-- | java/jdk15/Makefile | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile index c4f26cbcada4..4c15882c5e98 100644 --- a/java/jdk15/Makefile +++ b/java/jdk15/Makefile @@ -134,9 +134,13 @@ pre-fetch: check-os @${ECHO_MSG} "NOTICES:" @${ECHO_MSG} @${ECHO_MSG} "To build JDK 1.4.1 port, you should have at least" - @${ECHO_MSG} "1.5Gb of free disk space in build area!" + @${ECHO_MSG} "2.5Gb of free disk space in build area!" @${ECHO_MSG} - @${ECHO_MSG} "Please use \`make -DNODEBUG' if you don't want to" + @${ECHO_MSG} "To build JDK 1.4.1 port, you should have linux emulation" + @${ECHO_MSG} "enabled in the kernel and linux procfs (linprocfs) filesystem" + @${ECHO_MSG} "mounted." + @${ECHO_MSG} + @${ECHO_MSG} "NOTE: Please use \`make -DNODEBUG' if you don't want to" @${ECHO_MSG} "install libraries and binaries with debugging support." @${ECHO_MSG} @@ -147,6 +151,7 @@ pre-patch: ${PATCH} -p0 < ${WRKDIR}/jdk14.patches .if !defined(NATIVE_BOOTSTRAP) +ECHO_MSG=echo pre-build: @if [ "$${WRKDIRPREFIX}" -a \ -L "/compat/linux/$${WRKDIRPREFIX}" -a \ @@ -166,6 +171,21 @@ pre-build: ${ECHO_MSG} "is known to cause problems during bootstrapping."; \ exit 1; \ fi + @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.1." ; \ + ${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 do-build: |