From 176a1affc54e2637b6e8c825530e22b4f246eaf3 Mon Sep 17 00:00:00 2001 From: glewis Date: Tue, 6 Aug 2002 16:36:21 +0000 Subject: Add a check in pre-build for a sysctl which will cause an error during bootstrapping with the Linux JDK. --- java/jdk13/Makefile | 9 +++++++++ java/jdk14/Makefile | 9 +++++++++ java/jdk15/Makefile | 9 +++++++++ java/jdk16/Makefile | 9 +++++++++ 4 files changed, 36 insertions(+) diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile index c9cf506..d66e332 100644 --- a/java/jdk13/Makefile +++ b/java/jdk13/Makefile @@ -132,6 +132,15 @@ pre-build: echo "This is known to cause problems during bootstrapping."; \ exit 1; \ fi + @if [ `sysctl -n compat.linux.osname` != "Linux" ]; \ + then \ + echo "Please set the value of the sysctl compat.linux.osname"; \ + echo "to 'Linux' with the command:"; \ + echo " sysctl compat.linux.osname=Linux"; \ + echo "Having it set to other values, such as 'FreeBSD',"; \ + echo "is known to cause problems during bootstrapping."; \ + exit 1; \ + fi .endif post-build: diff --git a/java/jdk14/Makefile b/java/jdk14/Makefile index c9cf506..d66e332 100644 --- a/java/jdk14/Makefile +++ b/java/jdk14/Makefile @@ -132,6 +132,15 @@ pre-build: echo "This is known to cause problems during bootstrapping."; \ exit 1; \ fi + @if [ `sysctl -n compat.linux.osname` != "Linux" ]; \ + then \ + echo "Please set the value of the sysctl compat.linux.osname"; \ + echo "to 'Linux' with the command:"; \ + echo " sysctl compat.linux.osname=Linux"; \ + echo "Having it set to other values, such as 'FreeBSD',"; \ + echo "is known to cause problems during bootstrapping."; \ + exit 1; \ + fi .endif post-build: diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile index c9cf506..d66e332 100644 --- a/java/jdk15/Makefile +++ b/java/jdk15/Makefile @@ -132,6 +132,15 @@ pre-build: echo "This is known to cause problems during bootstrapping."; \ exit 1; \ fi + @if [ `sysctl -n compat.linux.osname` != "Linux" ]; \ + then \ + echo "Please set the value of the sysctl compat.linux.osname"; \ + echo "to 'Linux' with the command:"; \ + echo " sysctl compat.linux.osname=Linux"; \ + echo "Having it set to other values, such as 'FreeBSD',"; \ + echo "is known to cause problems during bootstrapping."; \ + exit 1; \ + fi .endif post-build: diff --git a/java/jdk16/Makefile b/java/jdk16/Makefile index c9cf506..d66e332 100644 --- a/java/jdk16/Makefile +++ b/java/jdk16/Makefile @@ -132,6 +132,15 @@ pre-build: echo "This is known to cause problems during bootstrapping."; \ exit 1; \ fi + @if [ `sysctl -n compat.linux.osname` != "Linux" ]; \ + then \ + echo "Please set the value of the sysctl compat.linux.osname"; \ + echo "to 'Linux' with the command:"; \ + echo " sysctl compat.linux.osname=Linux"; \ + echo "Having it set to other values, such as 'FreeBSD',"; \ + echo "is known to cause problems during bootstrapping."; \ + exit 1; \ + fi .endif post-build: -- cgit v1.1