return 0
fi
+ if [ ! -x /usr/bin/wget ]; then
+ echo "${FUNCNAME}() error, the wget package was not found."
+ return 1
+ fi
+
if [ -n "${USE_LFS_PATCHES}" ]; then
# Getting list of all patches from LFS server.
rcmd "Fetching LFS patches list" static_fetch_patches_list ${LFS_PATCHES_URL} ${LFS_PATCHES_LIST}
--cache-file=${LFS_TMP}/${PACKAGE}-build/config.cache"
fi
- # Add option --disable-dependency-tracking if supported
- if cat ${LFS_TMP}/${PACKAGE}/configure | \
- grep "disable-dependency-tracking" 1> /dev/null 2>&1; then
- CONFIGURE_OPTS="\
- ${CONFIGURE_OPTS} \
- --disable-dependency-tracking"
+ if [ "x${IPKG_MODE}" != "xnoac" ]; then
+ # Add option --disable-dependency-tracking if supported
+ if cat ${LFS_TMP}/${PACKAGE}/configure | \
+ grep "disable-dependency-tracking" 1> /dev/null 2>&1; then
+ CONFIGURE_OPTS="\
+ ${CONFIGURE_OPTS} \
+ --disable-dependency-tracking"
+ fi
fi
ipkg_display_build_infos
# and extract base directory name with awk.
# tar 1.23 reports an error when using pipes, so
# remove error message with "2> /dev/null"
- local DIRNAME=$(tar ${TAR_OPTS} -tf ${LFS_PKG_DIR}/${PACKAGE}.tar.bz2 2> /dev/null | head -n1 | sed 's!^\./!!' | awk -F \/ '{print $1}')
+ local DIRNAME=$(tar ${TAR_OPTS} -tf \
+ ${LFS_PKG_DIR}/${PACKAGE}.${arch_ext} 2> /dev/null | \
+ head -n1 | sed 's!^\./!!' | awk -F \/ '{print $1}')
echo ${DIRNAME}
;;
zip)