mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-28 10:08:24 +00:00
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:
parent
92075db4a4
commit
b9de798e03
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62075
@ -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 | \
|
||||
|
@ -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 | \
|
||||
|
@ -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 | \
|
||||
|
@ -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 | \
|
||||
|
Loading…
Reference in New Issue
Block a user