Package: scratchbox2 Version: 1.99.0.24-1 Filename: pool/main/s/scratchbox2/scratchbox2_1.99.0.24-1_i386.deb Found error in /usr/share/scratchbox2/scripts/dpkg-checkbuilddeps: $ grep -A5 -B5 /tmp/ /usr/share/scratchbox2/scripts/dpkg-checkbuilddeps installed_to_host="yes" return fi fi pkg_stat_tmp=/tmp/dpkg.$$.tmp # next check again if the package exists on the target, # just to be able to give a better error message. if dpkg-query -s --admindir=$TARGET_DPKG_ADMINDIR_ALL_PKGS \ "$pkgname" >$pkg_stat_tmp 2>&1 then -- # version which is available in /usr/bin may not know about the # --admindir option. Can't use a pipeline here, we want to the # dpkg-checkbuilddeps' return status. SBOX_DISABLE_MAPPING=1 /usr/bin/dpkg-checkbuilddeps \ --admindir=$TARGET_DPKG_ADMINDIR_USABLE_PKGS $args \ > /tmp/missing_deps.$$ 2>&1 if [ $? == 0 ] then # real dpkg-checkbuilddeps says "all ok" rm /tmp/missing_deps.$$ return 0 fi # else real dpkg-checkbuilddeps failed. sed -e 's/^/ /' < /tmp/missing_deps.$$ missing_deps=$(egrep \ "^dpkg-checkbuilddeps: Unmet build dependencies:" \ /tmp/missing_deps.$$ | \ sed 's/dpkg-checkbuilddeps: Unmet build dependencies: //') rm /tmp/missing_deps.$$ if [ -n "$missing_deps" ]; then # failing target deps, and missing packages are listed # in $missing_deps = continue by checking if those are # available on the host environment Found error in /usr/share/scratchbox2/scripts/sb2-check-pkg-mappings: $ grep -A5 -B5 /tmp/ /usr/share/scratchbox2/scripts/sb2-check-pkg-mappings # get list of files intalled by this package (dpkg -L), # and feed it to sb2-show to be verified (-D causes directories # to be ignored). Also ignore all files which are installed # to these diretories listed in $SB2_CHECK_PKG_MAPPINGS_IGNORE_LIST. dpkg -L $pkg >/tmp/sb2-pkg-chk.$tstamp.$$ if [ $? != 0 ] then num_failed=`expr $num_failed + 1` echo " $pkg is not available" else sed < /tmp/sb2-pkg-chk.$tstamp.$$ \ -e 's/diverted by .* to: //' \ -e 's/package diverts others to: //' | sb2-show -D verify-pathlist-mappings \ $SBOX_TARGET_ROOT $SB2_CHECK_PKG_MAPPINGS_IGNORE_LIST if [ $? == 0 ] -- else num_failed=`expr $num_failed + 1` echo " $pkg can not be used in this mode ($SBOX_MAPMODE)" fi fi rm /tmp/sb2-pkg-chk.$tstamp.$$ done echo "Checked $pkgnum packages: Ok=$num_ok, unusable=$num_failed" if [ $check_all_pkgs = "yes" ]