X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions%2Fmain;fp=functions%2Fmain;h=d8881684c4126bc7a6ce497c616035e1c496976f;hb=d9702c4a5c6fbf2c738ffbf9c3563daf552c91d8;hp=14f39a9cf423a8324c76a7072f603b44d3aca0c8;hpb=73d532193664c00931865fe893872e1a9f4affb4;p=hvlinux.git diff --git a/functions/main b/functions/main index 14f39a9..d888168 100644 --- a/functions/main +++ b/functions/main @@ -654,9 +654,10 @@ static_decompressed_dirname() # and extract base directory name with awk. # tar 1.23 reports an error when using pipes, so # remove error message with "2> /dev/null" + # (we extract the last line from tar output) DIRNAME=$(tar ${TAR_OPTS} -tf \ ${LFS_PKG_DIR}/${PACKAGE}.${arch_ext} 2> /dev/null | \ - head -n1 | sed 's!^\./!!' | awk -F \/ '{print $1}') + tail -n 1 | sed 's!^\./!!' | awk -F \/ '{print $1}') ;; zip) DIRNAME=$(unzip -l \ @@ -817,6 +818,7 @@ indicate_pkg_build_complete() # gnome # xorg # pm +# -t Enable dependency tracking # -s Name of script to source (default is from name of package) ipkg() { @@ -827,10 +829,11 @@ ipkg() export DECOMPRESS="1" export IPKG_MODE="ac" # Default mode if not specified export HVLABEL="" # Global variable + export ENABLE_DEPENDENCY_TRACKING="0" local HVMAKE_ORIG=${HVMAKE} - while getopts "cjl:m:s:" flag ;do + while getopts "cjl:m:s:t" flag ;do case ${flag} in c) # Do not decompress package @@ -860,6 +863,10 @@ ipkg() # Alternate script name ALT_SCRIPT_NAME=${OPTARG} ;; + t) + # Do not disable dependency tracking + ENABLE_DEPENDENCY_TRACKING="1" + ;; ?) echo "${FUNCNAME}(): Invalid option: ${OPTARG}." return 1