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

Build issue with prtconf and zones, also using := to avoid extra execs

XMLWordPrintable

    • b25
    • generic
    • generic

        The line in the makefiles

           MB_OF_MEMORY=$(shell /usr/sbin/prtconf | fgrep 'Memory size:' | expand | cut -d' ' -f3)

        should be

           MB_OF_MEMORY:=$(shell /usr/sbin/prtconf 2>/dev/null | fgrep 'Memory size:' | expand | cut -d' ' -f3)

        1. Zones are being used to do builds, and prtconf errors out after sending out the memory size info.
        2. Using := will have this evaluation done once instead of multiple times, each time it was used.

              ohair Kelly Ohair (Inactive)
              ohair Kelly Ohair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: