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

build-infra: Fix "misbehaving" which command on Solaris

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8
    • None
    • infrastructure
    • b69

    Description

      For (at least some versions of Solaris), the command which when given a non-existing binary answers like:

      no autoconf in /java/east/jdk/7/latest/solaris-i586//bin /usr/local/bin /usr/bin

      on stdout. This is unlike most other "which", which output suchs errors to stderr and leave stdout empty.

      We assume empty which means "not present", in several places. David Holmes detected this in the configure wrapper script and autogen.sh, but I believe we do the same in several places in the actual autoconf script (m4 files).

      Possible fix: `which $FOO | grep -v "^no $FOO in"`

      Attachments

        Activity

          People

            erikj Erik Joelsson
            ihse Magnus Ihse Bursie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: