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

Fix bogus check for libX11.so in libraries.m4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • infrastructure
    • None
    • b72

        In libraries.m4 we have the following checks for libX11.so

          if test "x$x_libraries" = xNONE; then
            if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then
              x_libraries="$SYS_ROOT/usr/X11R6/lib"
            elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then
              x_libraries="$SYS_ROOT/usr/lib64"
            elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then
              x_libraries="$SYS_ROOT/usr/lib"
            fi
          fi
        fi

        Where there's obviously a missing "-f" in the second test (test "$SYS_ROOT/usr/lib64/libX11.so")

              simonis Volker Simonis
              simonis Volker Simonis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: