Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8180897

Explicit --with-jtreg path not expanded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 10
    • 10
    • infrastructure
    • None
    • b25
    • generic
    • generic

      When configuring with --with-jtreg=<path>, the provided path doesn't appear to be expanded. Thus, my use of --with-jtreg=~/devtools/jtreg fails and reports "~/devtools/jtreg" doesn't exist. This worked until fairly recently; I think JDK-8180281 may be the culprit.

      This patch solves this problem. I don't understand this code well enough to be certain this is the right fix though.

      diff -r cd0e3375fb5d common/autoconf/toolchain.m4
      --- a/common/autoconf/toolchain.m4 Tue May 23 22:23:36 2017 -0400
      +++ b/common/autoconf/toolchain.m4 Tue May 23 22:33:31 2017 -0400
      @@ -934,6 +934,7 @@
           AC_MSG_RESULT([no, disabled])
         elif test "x$with_jtreg" != xyes && test "x$with_jtreg" != x; then
           # An explicit path is specified, use it.
      + BASIC_FIXUP_PATH([with_jtreg])
           JT_HOME="$with_jtreg"
           if test ! -d "$JT_HOME"; then
             AC_MSG_ERROR([jtreg home directory from --with-jtreg=$with_jtreg does not exist])

            ihse Magnus Ihse Bursie
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: