Print this page
Some packages need to specify -std=gnu89 to compile, and gcc51 defaults to
gnu11 now.
Also, updated mozilla-nss-nspr to 3.19 and 4.10.8, respectively.

Split Close
Expand all
Collapse all
          --- old/lib/functions.sh
          +++ new/lib/functions.sh
↓ open down ↓ 198 lines elided ↑ open up ↑
 199  199      echo $encoded
 200  200  }
 201  201  
 202  202  #############################################################################
 203  203  # Some initialization
 204  204  #############################################################################
 205  205  # Set the LANG to C as the assembler will freak out on unicode in headers
 206  206  LANG=C
 207  207  export LANG
 208  208  # Set the path - This can be overriden/extended in the build script
 209      -PATH="/opt/gcc-4.8.1/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/usr/gnu/bin:/usr/sfw/bin"
      209 +PATH="/opt/gcc-5.1.0/bin:/usr/ccs/bin:/usr/bin:/usr/sbin:/usr/gnu/bin:/usr/sfw/bin"
 210  210  export PATH
 211  211  # The dir where this file is located - used for sourcing further files
 212  212  MYDIR=$PWD/`dirname $BASH_SOURCE[0]`
 213  213  # The dir where this file was sourced from - this will be the directory of the
 214  214  # build script
 215  215  SRCDIR=$PWD/`dirname $0`
 216  216  
 217  217  #############################################################################
 218  218  # Load configuration options
 219  219  #############################################################################
↓ open down ↓ 4 lines elided ↑ open up ↑
 224  224  SUNOSVER=`uname -r` # e.g. 5.11
 225  225  
 226  226  if [[ -f $LOGFILE ]]; then
 227  227      mv $LOGFILE $LOGFILE.1
 228  228  fi
 229  229  process_opts $@
 230  230  shift $((OPTIND - 1))
 231  231  
 232  232  BasicRequirements(){
 233  233      local needed=""
 234      -    [[ -x /opt/gcc-4.8.1/bin/gcc ]] || needed+=" developer/gcc48"
      234 +    [[ -x /opt/gcc-5.1.0/bin/gcc ]] || needed+=" developer/gcc51"
 235  235      [[ -x /usr/bin/ar ]] || needed+=" developer/object-file"
 236  236      [[ -x /usr/bin/ld ]] || needed+=" developer/linker"
 237  237      [[ -f /usr/lib/crt1.o ]] || needed+=" developer/library/lint"
 238  238      [[ -x /usr/bin/gmake ]] || needed+=" developer/build/gnu-make"
 239  239      [[ -f /usr/include/sys/types.h ]] || needed+=" system/header"
 240  240      [[ -f /usr/include/math.h ]] || needed+=" system/library/math"
 241  241      if [[ -n "$needed" ]]; then
 242  242          logmsg "You appear to be missing some basic build requirements."
 243  243          logmsg "To fix this run:"
 244  244          logmsg " "
↓ open down ↓ 132 lines elided ↑ open up ↑
 377  377  
 378  378  #############################################################################
 379  379  # People that need this should call it explicitly
 380  380  #############################################################################
 381  381  run_autoconf() {
 382  382      logmsg "Running autoconf"
 383  383      pushd $TMPDIR/$BUILDDIR > /dev/null
 384  384      logcmd autoconf || logerr "Failed to run autoconf"
 385  385      popd > /dev/null
 386  386  }
      387 +
      388 +#############################################################################
      389 +# People that need this should call it explicitly
      390 +#############################################################################
      391 +run_automake() {
      392 +    logmsg "Running automake"
      393 +    pushd $TMPDIR/$BUILDDIR > /dev/null
      394 +    logcmd automake || logerr "Failed to run automake"
      395 +    popd > /dev/null
      396 +}
 387  397  
 388  398  #############################################################################
 389  399  # Stuff that needs to be done/set before we start building
 390  400  #############################################################################
 391  401  prep_build() {
 392  402      logmsg "Preparing for build"
 393  403  
 394  404      # Get the current date/time for the package timestamp
 395  405      DATETIME=`TZ=UTC /usr/bin/date +"%Y%m%dT%H%M%SZ"`
 396  406  
↓ open down ↓ 853 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX