From 6be74141099e569e059115b9659f1a8c98306ac7 Mon Sep 17 00:00:00 2001 From: gobo72 Date: Thu, 10 Mar 2011 05:44:53 +0000 Subject: [PATCH] =?utf8?q?Corrections=20mineures=20et=20v=C3=A9rification?= =?utf8?q?=20si=20wget=20est=20install=C3=A9=20dans=20fpkg()?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- functions/fpkg | 5 +++++ functions/ipkg | 14 ++++++++------ functions/main | 4 +++- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/functions/fpkg b/functions/fpkg index 0fd60c5..cffb6f1 100644 --- a/functions/fpkg +++ b/functions/fpkg @@ -76,6 +76,11 @@ update_packages_init() 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} diff --git a/functions/ipkg b/functions/ipkg index 23a1e1a..177f52c 100644 --- a/functions/ipkg +++ b/functions/ipkg @@ -151,12 +151,14 @@ ipkg_script() --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 diff --git a/functions/main b/functions/main index c3c0e5d..d677cc7 100644 --- a/functions/main +++ b/functions/main @@ -639,7 +639,9 @@ 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" - 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) -- 2.20.1