X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions%2Fipkg;fp=functions%2Fipkg;h=8ac0a099ed8c35bc006c8deff39654103486e22e;hb=d7a417770bd51ea6e9adbfeb588959c81d05d023;hp=bba883d768aee736e40c30e454678677a905fc68;hpb=e2d3e59fe6a7ad612e6c143dd386bf0d05c98c18;p=hvlinux.git 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