aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--java/jdk13/Makefile13
-rw-r--r--java/jdk14/Makefile13
-rw-r--r--java/jdk15/Makefile13
-rw-r--r--java/jdk16/Makefile13
4 files changed, 52 insertions, 0 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile
index 3ace31bc864f..aca08da79be3 100644
--- a/java/jdk13/Makefile
+++ b/java/jdk13/Makefile
@@ -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 | \
diff --git a/java/jdk14/Makefile b/java/jdk14/Makefile
index 3ace31bc864f..aca08da79be3 100644
--- a/java/jdk14/Makefile
+++ b/java/jdk14/Makefile
@@ -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 | \
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
index 3ace31bc864f..aca08da79be3 100644
--- a/java/jdk15/Makefile
+++ b/java/jdk15/Makefile
@@ -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 | \
diff --git a/java/jdk16/Makefile b/java/jdk16/Makefile
index 3ace31bc864f..aca08da79be3 100644
--- a/java/jdk16/Makefile
+++ b/java/jdk16/Makefile
@@ -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 | \