Changeset 13686 in hybrid for branches/releng-11/nanobsd/tools


Ignore:
Timestamp:
Jan 5, 2017, 11:10:36 PM (8 years ago)
Author:
rick
Message:

Make buildenv (temponary) compatible with 10.3-RELEASE.

Need to debug some CF card read/write access slowness.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-11/nanobsd/tools/package-build.sh

    r13670 r13686  
    1010cfg_dir=`dirname $0`/../cfg
    1111abs_cfg_dir=`cd $cfg_dir; pwd -P`
    12 poudriere_pkglist_file=${cfg_dir}/wlpkgbuild11_0-default-node-pkglist
     12
     13version=$(uname -r | sed -e 's/-.*//g' -e 's/\./_/')
     14
     15poudriere_pkglist_file=${cfg_dir}/wlpkgbuild${version}-default-node-pkglist
    1316
    1417
     
    2023
    2124        # Setup poudriere build environment
    22         poudriere jail -c -j wlpkgbuild11_0 -v 11.0-RELEASE -a i386
     25        poudriere jail -c -j wlpkgbuild${version} -v $(uname -r) -a i386
    2326
    2427        # Setup portshaker
     
    4245packages_config() {
    4346        # Configure build options
    44         poudriere options -j wlpkgbuild11_0 -p default -z node ${1:+-c} ${*:- -f ${poudriere_pkglist_file}}
     47        poudriere options -j wlpkgbuild${version} -p default -z node ${1:+-c} ${*:- -f ${poudriere_pkglist_file}}
    4548}
    4649
     
    4851packages_refresh() {
    4952        # Install new package (symlink) options
    50         POUDRIERE_MAKE_CONF_FILE=wlpkgbuild11_0-node-make.conf
    51         POUDRIERE_OPTIONS=wlpkgbuild11_0-node-options
     53        POUDRIERE_MAKE_CONF_FILE=wlpkgbuild${version}-node-make.conf
     54        POUDRIERE_OPTIONS=wlpkgbuild${version}-node-options
    5255
    5356        # Clean old stuff
     
    6770
    6871packages_build() {
    69         poudriere bulk -j wlpkgbuild11_0 -p default -z node -f ${poudriere_pkglist_file}
     72        poudriere bulk -j wlpkgbuild${version} -p default -z node -f ${poudriere_pkglist_file}
    7073}
    7174
Note: See TracChangeset for help on using the changeset viewer.