From: gobo72 Date: Sat, 1 Oct 2011 21:52:39 +0000 (+0000) Subject: Ajout option pour désactiver --sysconfdir=... si ce n'est pas supporté par le script... X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=d7a417770bd51ea6e9adbfeb588959c81d05d023;p=hvlinux.git Ajout option pour désactiver --sysconfdir=... si ce n'est pas supporté par le script configure (ex: kvm). --- diff --git a/functions/ipkg b/functions/ipkg index bba883d..8ac0a09 100644 --- a/functions/ipkg +++ b/functions/ipkg @@ -172,6 +172,20 @@ ipkg_script() ${CONFIGURE_OPTS} \ --disable-dependency-tracking" fi + + # Remove option --sysconfdir=... if not supported + if ! cat ${LFS_TMP}/${PACKAGE}/configure | \ + grep -q "sysconfdir"; then + # Split on space, one per line. + # Remove line --sysconfdir=... + # Join separate lines on one line + # Remove trailing space + CONFIGURE_OPTS=$(echo ${CONFIGURE_OPTS} | \ + tr -s " " "\n" | \ + grep -v "\-\-sysconfdir=" | \ + tr -s "\n" " " | \ + sed "s/ $//") + fi fi ipkg_display_build_infos