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

Explicit --with-jtreg path not expanded

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 10
    • Component/s: infrastructure
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      generic
    • OS:
      generic

      Description

      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])

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: