# HG changeset patch # User ohair # Date 1325727745 28800 # Node ID b8048abf694e0a9a5eade7283532d390d1f7a327 # Parent 6561530ea757c3f3a6fb171c9cc7b3885cdeca85 7127104: Build issue with prtconf and zones, also using := to avoid extra execs Reviewed-by: katleman diff -r 6561530ea757 -r b8048abf694e jdk/make/common/shared/Platform.gmk --- a/jdk/make/common/shared/Platform.gmk Wed Jul 05 17:59:00 2017 +0200 +++ b/jdk/make/common/shared/Platform.gmk Wed Jan 04 17:42:25 2012 -0800 @@ -147,8 +147,8 @@ endif # Suffix for file bundles used in previous release BUNDLE_FILE_SUFFIX=.tar - # How much RAM does this machine have: - MB_OF_MEMORY=$(shell /usr/sbin/prtconf | fgrep 'Memory size:' | expand | cut -d' ' -f3) + # How much RAM does this machine have (zones send an error to stderr): + MB_OF_MEMORY:=$(shell /usr/sbin/prtconf 2>/dev/null | fgrep 'Memory size:' | expand | cut -d' ' -f3) endif # Platform settings specific to Linux