Print this page
8982 Support building with OpenSSL 1.1


  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 
  23 #
  24 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  25 # Copyright 2008, 2010, Richard Lowe
  26 # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  27 # Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
  28 # Copyright 2018 (c) Joyent, Inc.  All rights reserved.
  29 # Copyright (c) 2017 by Delphix. All rights reserved.
  30 # Copyright 2018 Joyent, Inc.

  31 #
  32 # Based on the nightly script from the integration folks,
  33 # Mostly modified and owned by mike_s.
  34 # Changes also by kjc, dmk.
  35 #
  36 # BRINGOVER_WS may be specified in the env file.
  37 # The default is the old behavior of CLONE_WS
  38 #
  39 # -i on the command line, means fast options, so when it's on the
  40 # command line (only), lint and check builds are skipped no matter what
  41 # the setting of their individual flags are in NIGHTLY_OPTIONS.
  42 #
  43 # LINTDIRS can be set in the env file, format is a list of:
  44 #
  45 #       /dirname-to-run-lint-on flag
  46 #
  47 #       Where flag is:  y - enable lint noise diff output
  48 #                       n - disable lint noise diff output
  49 #
  50 #       For example: LINTDIRS="$SRC/uts n $SRC/stand y $SRC/psm y"


1646 echo | tee -a $build_environ_file >> $LOGFILE
1647 
1648 # make
1649 whence $MAKE | tee -a $build_environ_file >> $LOGFILE
1650 $MAKE -v | tee -a $build_environ_file >> $LOGFILE
1651 echo "number of concurrent jobs = $DMAKE_MAX_JOBS" |
1652     tee -a $build_environ_file >> $LOGFILE
1653 
1654 #
1655 # Report the compiler versions.
1656 #
1657 
1658 if [[ ! -f $SRC/Makefile ]]; then
1659         build_ok=n
1660         echo "\nUnable to find \"Makefile\" in $SRC." | \
1661             tee -a $build_environ_file >> $LOGFILE
1662         exit 1
1663 fi
1664 
1665 ( cd $SRC
1666   for target in cc-version cc64-version java-version; do
1667         echo
1668         #
1669         # Put statefile somewhere we know we can write to rather than trip
1670         # over a read-only $srcroot.
1671         #
1672         rm -f $TMPDIR/make-state
1673         export SRC
1674         if $MAKE -K $TMPDIR/make-state -e $target 2>/dev/null; then
1675                 continue
1676         fi
1677         touch $TMPDIR/nocompiler
1678   done
1679   echo
1680 ) | tee -a $build_environ_file >> $LOGFILE
1681 
1682 if [ -f $TMPDIR/nocompiler ]; then
1683         rm -f $TMPDIR/nocompiler
1684         build_ok=n
1685         echo "Aborting due to missing compiler." |
1686                 tee -a $build_environ_file >> $LOGFILE




  11 # See the License for the specific language governing permissions
  12 # and limitations under the License.
  13 #
  14 # When distributing Covered Code, include this CDDL HEADER in each
  15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16 # If applicable, add the following below this CDDL HEADER, with the
  17 # fields enclosed by brackets "[]" replaced with your own identifying
  18 # information: Portions Copyright [yyyy] [name of copyright owner]
  19 #
  20 # CDDL HEADER END
  21 #
  22 
  23 #
  24 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
  25 # Copyright 2008, 2010, Richard Lowe
  26 # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  27 # Copyright 2012 Joshua M. Clulow <josh@sysmgr.org>
  28 # Copyright 2018 (c) Joyent, Inc.  All rights reserved.
  29 # Copyright (c) 2017 by Delphix. All rights reserved.
  30 # Copyright 2018 Joyent, Inc.
  31 # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
  32 #
  33 # Based on the nightly script from the integration folks,
  34 # Mostly modified and owned by mike_s.
  35 # Changes also by kjc, dmk.
  36 #
  37 # BRINGOVER_WS may be specified in the env file.
  38 # The default is the old behavior of CLONE_WS
  39 #
  40 # -i on the command line, means fast options, so when it's on the
  41 # command line (only), lint and check builds are skipped no matter what
  42 # the setting of their individual flags are in NIGHTLY_OPTIONS.
  43 #
  44 # LINTDIRS can be set in the env file, format is a list of:
  45 #
  46 #       /dirname-to-run-lint-on flag
  47 #
  48 #       Where flag is:  y - enable lint noise diff output
  49 #                       n - disable lint noise diff output
  50 #
  51 #       For example: LINTDIRS="$SRC/uts n $SRC/stand y $SRC/psm y"


1647 echo | tee -a $build_environ_file >> $LOGFILE
1648 
1649 # make
1650 whence $MAKE | tee -a $build_environ_file >> $LOGFILE
1651 $MAKE -v | tee -a $build_environ_file >> $LOGFILE
1652 echo "number of concurrent jobs = $DMAKE_MAX_JOBS" |
1653     tee -a $build_environ_file >> $LOGFILE
1654 
1655 #
1656 # Report the compiler versions.
1657 #
1658 
1659 if [[ ! -f $SRC/Makefile ]]; then
1660         build_ok=n
1661         echo "\nUnable to find \"Makefile\" in $SRC." | \
1662             tee -a $build_environ_file >> $LOGFILE
1663         exit 1
1664 fi
1665 
1666 ( cd $SRC
1667   for target in cc-version cc64-version java-version openssl-version; do
1668         echo
1669         #
1670         # Put statefile somewhere we know we can write to rather than trip
1671         # over a read-only $srcroot.
1672         #
1673         rm -f $TMPDIR/make-state
1674         export SRC
1675         if $MAKE -K $TMPDIR/make-state -e $target 2>/dev/null; then
1676                 continue
1677         fi
1678         touch $TMPDIR/nocompiler
1679   done
1680   echo
1681 ) | tee -a $build_environ_file >> $LOGFILE
1682 
1683 if [ -f $TMPDIR/nocompiler ]; then
1684         rm -f $TMPDIR/nocompiler
1685         build_ok=n
1686         echo "Aborting due to missing compiler." |
1687                 tee -a $build_environ_file >> $LOGFILE