diff options
author | phantom <phantom@FreeBSD.org> | 2003-08-04 16:53:42 +0800 |
---|---|---|
committer | phantom <phantom@FreeBSD.org> | 2003-08-04 16:53:42 +0800 |
commit | 3436eb448a9e85eeedea714334034c34875fcef5 (patch) | |
tree | 6a9c784eda1c9d367c6d38ff4b8bfaae22ed7939 /java/jdk15 | |
parent | 56d16129835d6421d185583ecae9352ae5a7eda0 (diff) | |
download | freebsd-ports-gnome-3436eb448a9e85eeedea714334034c34875fcef5.tar.gz freebsd-ports-gnome-3436eb448a9e85eeedea714334034c34875fcef5.tar.zst freebsd-ports-gnome-3436eb448a9e85eeedea714334034c34875fcef5.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).
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: |