diff -ruN portage-2.0.44.orig/bin/mkprelinklist portage-2.0.44/bin/mkprelinklist --- portage-2.0.44.orig/bin/mkprelinklist 1970-01-01 01:00:00.000000000 +0100 +++ portage-2.0.44/bin/mkprelinklist 2002-11-30 22:08:20.000000000 +0100 @@ -0,0 +1,12 @@ +#!/bin/bash +[ -f $PRELINK_LIST ] && rm -f $PRELINK_LIST + +for x in `( cd $1 ; find . )` ; do + f=`file "$x"` + if [ "${f/*SB executable*/1}" == "1" ] ; then + [ ! -z $PRELINK_LIST ] && echo $x | sed 's:^\.::' >> $PRELINK_LIST + fi + if [ "${f/*SB shared object*/1}" == "1" ] ; then + [ ! -z $PRELINK_LIST ] && echo $x | sed 's:^\.::' >> $PRELINK_LIST + fi +done diff -ruN portage-2.0.44.orig/pym/portage.py portage-2.0.44/pym/portage.py --- portage-2.0.44.orig/pym/portage.py 2002-11-25 20:43:36.000000000 +0100 +++ portage-2.0.44/pym/portage.py 2002-11-30 22:11:37.000000000 +0100 @@ -4091,6 +4091,9 @@ print "!!! Error extracting",mytbz2 cleanup_pkgmerge(mypkg,origdir) return None + #create prelink list + if (prelink_enabled == 1): + os.spawnlp(os.P_WAIT,"/usr/lib/portage/bin/mkprelinklist","/usr/lib/portage/bin/mkprelinklist",pkgloc) #the merge takes care of pre/postinst and old instance auto-unmerge, virtual/provides updates, etc. mylink=dblink(mycat,mypkg,myroot) if not mylink.exists():