--- trunk/mage/usr/lib/mage/smage2.functions.sh 2013/02/01 09:46:47 2041 +++ trunk/mage/usr/lib/mage/smage2.functions.sh 2013/07/15 07:50:48 2140 @@ -682,6 +682,12 @@ local NDEPEND local sym dep cat pver pname + # first of all remove all tabs and duplicate lines + if [ -n "${depend}" ] + then + depend=$(echo "${depend}" | sed 's:\t::g' | sort -u) + fi + # deps and provides are special # they must be fixed to match the target