Changeset 13059 in hybrid


Ignore:
Timestamp:
Jan 21, 2015, 7:37:10 AM (10 years ago)
Author:
rick
Message:

Dependency checking is something of old ages, do not bother checking anymore,
since installed packages will not be installed anyways.

File:
1 edited

Legend:

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

    r13058 r13059  
    1212
    1313DEBUG=${DEBUG:-'0'}
    14 DEP_CHECK_ONLY=${DEP_CHECK_ONLY:-'0'}
    1514
    1615# Find listing of packages to build
     
    2827# HACK: install our own ports _inside_ the normal ports dir
    2928cp -fR $WL_PORTSDIR/* $PORTSDIR || exit 1
    30 
    31 # Pre-req dependency fixing
    32 p_info Checking whether there are currently unmet dependencies
    33 RETVAL=0
    34 PKGS=`pkg info | awk '{print $1}'`
    35 for PKG in ${PKGS} ; do
    36   PKG_DEP_FAIL=""
    37   for PKGDEP in `pkg info -qr ${PKG} | awk '{print $2}'`; do
    38     pkg info -e ${PKGDEP}
    39     if [ $? -eq 1 ]; then
    40       PKG_DEP_FAIL="${PKG_DEP_FAIL} ${PKGDEP}"
    41     fi
    42   done
    43   if [ -n "${PKG_DEP_FAIL}" ]; then
    44       p_err Unmet dependencies found at $PKG, please fix manually:
    45       p_err `p_list ${PKG_DEP_FAIL}`
    46       RETVAL=1
    47   fi
    48 done
    49 if [ $RETVAL -eq 1 ]; then
    50   exit 1
    51 fi
    52 p_info Dependecy check ok
    53 
    54 if [ ${DEP_CHECK_ONLY} -eq 1 ]; then
    55   exit 0
    56 fi
    57 echo ""
    58 
    5929
    6030# Cleanup of old packages
Note: See TracChangeset for help on using the changeset viewer.