X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions%2Fipkg;h=8ac0a099ed8c35bc006c8deff39654103486e22e;hb=46a6cd65aaf72c044223fa7c33a28d6e99fa1f20;hp=bba883d768aee736e40c30e454678677a905fc68;hpb=340ea470736411a0fb1abed96caa0a8356dc81f1;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