RFR: JDK-8077563: 9-dev 1-prebuild fail: "configure: error: write failure creating /config.status"

Erik Joelsson erik.joelsson at oracle.com
Mon Apr 13 06:07:03 UTC 2015


Hello,

Please review this fix for configure when running from a custom output 
directory. In JDK-8073634, I messed up only defined 
CONFIGURESUPPORT_OUTPUTDIR when --with-conf-name was used or the default 
value for it was used, not when defining it by running configure from a 
new directory.

The fix is pretty simple, just move the definition of 
CONFIGURESUPPORT_OUTPUTDIR a bit further down when OUTPUT_DIR is always 
properly defined first.

Bug: https://bugs.openjdk.java.net/browse/JDK-8077563
Patch:
diff -r 9fa2185bee17 common/autoconf/basics.m4
--- a/common/autoconf/basics.m4
+++ b/common/autoconf/basics.m4
@@ -658,8 +658,6 @@
      fi
      OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
      $MKDIR -p "$OUTPUT_ROOT"
-    CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
-    $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
      if test ! -d "$OUTPUT_ROOT"; then
        AC_MSG_ERROR([Could not create build directory $OUTPUT_ROOT])
      fi
@@ -702,6 +700,9 @@

    BASIC_FIXUP_PATH(OUTPUT_ROOT)

+  CONFIGURESUPPORT_OUTPUTDIR="$OUTPUT_ROOT/configure-support"
+  $MKDIR -p "$CONFIGURESUPPORT_OUTPUTDIR"
+
    AC_SUBST(SPEC, $OUTPUT_ROOT/spec.gmk)
    AC_SUBST(CONF_NAME, $CONF_NAME)
    AC_SUBST(OUTPUT_ROOT, $OUTPUT_ROOT)

/Erik



More information about the build-dev mailing list