--- busybox-1.00_pre4.ebuild 2003-12-18 19:00:24.000000000 -0500 +++ busybox-1.00_pre4-r1.ebuild 2003-12-19 20:27:01.000000000 -0500 @@ -26,13 +26,10 @@ busybox_config_option() { [ "$2" = "" ] && return 1 case $1 in - y) sed -e "s:.*CONFIG_$2.*set:CONFIG_$2=y:g" < \ - .config > .config~;; - n) sed -e "s:CONFIG_$2=y:# CONFIG_$2 is not set:g" < \ - .config > .config~;; + y) sed -i -e "s:.*CONFIG_$2.*set:CONFIG_$2=y:g" .config;; + n) sed -i -e "s:CONFIG_$2=y:# CONFIG_$2 is not set:g" .config;; *) return 1;; esac - mv .config{~,} einfo `grep CONFIG_$2 .config` } @@ -42,7 +39,10 @@ # busybox has changed quite a bit from 0.[5-6]* to 1.x so this # config might not be cd ready. - make defconfig + + make allyesconfig + busybox_config_option n DMALLOC + busybox_config_option n FEATURE_SUID #[ -f .config ] || die "No .config file found for ${PN}" @@ -59,7 +59,7 @@ # #[ `use selinux` ] && busybox_config_option y SELINUX || - # busybox_config_option n SELINUX + busybox_config_option n SELINUX [ `use debug` ] && busybox_config_option y DEBUG || busybox_config_option n DEBUG @@ -92,6 +92,7 @@ #for f in $busybox_features; do # has $f ${FEATURES} && busybox_config_option y `echo ${f/busybox_/}|tr [a-z] [A-Z]` #done + echo | make clean oldconfig > /dev/null } src_compile() {