Add a pre-build target to check for a setting of WRKDIRPREFIX which will

result in the InvokerGen.java target failing.  The bootstrapping Linux
JDK will confuse itself if WRKDIRPREFIX also exists in /compat/linux
as a symbolic link to the directory in the standard FreeBSD hierarchy.

Much appreciated sleuth work by:	dillon
This commit is contained in:
Greg Lewis 2002-06-27 05:34:39 +00:00
parent 92075db4a4
commit b9de798e03
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62075
4 changed files with 52 additions and 0 deletions

View File

@ -117,6 +117,19 @@ pre-patch:
${MKDIR} hotspot1.3.1/src/os_cpu/bsd_i486/vm && \
${PATCH} < ${WRKDIR}/jdk131.patches
.if !defined(NATIVE_BOOTSTRAP)
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
then \
echo "Please set WRKDIRPREFIX to something which doesn't"; \
echo "have a matching symbolic link in /compat/linux."; \
echo "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
.endif
post-build:
# Prune empty dirs
${FIND} ${JDKIMAGEDIR} -type d | ${SORT} -r | \

View File

@ -117,6 +117,19 @@ pre-patch:
${MKDIR} hotspot1.3.1/src/os_cpu/bsd_i486/vm && \
${PATCH} < ${WRKDIR}/jdk131.patches
.if !defined(NATIVE_BOOTSTRAP)
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
then \
echo "Please set WRKDIRPREFIX to something which doesn't"; \
echo "have a matching symbolic link in /compat/linux."; \
echo "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
.endif
post-build:
# Prune empty dirs
${FIND} ${JDKIMAGEDIR} -type d | ${SORT} -r | \

View File

@ -117,6 +117,19 @@ pre-patch:
${MKDIR} hotspot1.3.1/src/os_cpu/bsd_i486/vm && \
${PATCH} < ${WRKDIR}/jdk131.patches
.if !defined(NATIVE_BOOTSTRAP)
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
then \
echo "Please set WRKDIRPREFIX to something which doesn't"; \
echo "have a matching symbolic link in /compat/linux."; \
echo "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
.endif
post-build:
# Prune empty dirs
${FIND} ${JDKIMAGEDIR} -type d | ${SORT} -r | \

View File

@ -117,6 +117,19 @@ pre-patch:
${MKDIR} hotspot1.3.1/src/os_cpu/bsd_i486/vm && \
${PATCH} < ${WRKDIR}/jdk131.patches
.if !defined(NATIVE_BOOTSTRAP)
pre-build:
@if [ "$${WRKDIRPREFIX}" -a \
-L "/compat/linux/$${WRKDIRPREFIX}" -a \
x`readlink "/compat/linux/$${WRKDIRPREFIX}"` = x"$${WRKDIRPREFIX}" ]; \
then \
echo "Please set WRKDIRPREFIX to something which doesn't"; \
echo "have a matching symbolic link in /compat/linux."; \
echo "This is known to cause problems during bootstrapping."; \
exit 1; \
fi
.endif
post-build:
# Prune empty dirs
${FIND} ${JDKIMAGEDIR} -type d | ${SORT} -r | \