diff options
author | glewis <glewis@FreeBSD.org> | 2002-06-27 13:34:39 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2002-06-27 13:34:39 +0800 |
commit | 6c203a32578d0531dd36642d600990e5484420f8 (patch) | |
tree | bb0ee02443a7a7564eb9fd2c2192ed40dd4eeb92 /java/jdk14 | |
parent | 54619c101b2cfd2d18e5dcb99e8cea2e5051c789 (diff) | |
download | freebsd-ports-gnome-6c203a32578d0531dd36642d600990e5484420f8.tar.gz freebsd-ports-gnome-6c203a32578d0531dd36642d600990e5484420f8.tar.zst freebsd-ports-gnome-6c203a32578d0531dd36642d600990e5484420f8.zip |
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
Diffstat (limited to 'java/jdk14')
-rw-r--r-- | java/jdk14/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
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 | \ |