Attempt to pull in generic libraries whenever we see a platform optimized one. This implementation uses the naive approach of just chopping directories out of the middle of library paths and seeing if there's a file there without that part. If there is, it pulls that in as well. It seems to work to build power5-able trees on a power6 machine. --- scripts/buildinstall.functions | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/scripts/buildinstall.functions b/scripts/buildinstall.functions index b0dc8cd..5f5e258 100755 --- a/scripts/buildinstall.functions +++ b/scripts/buildinstall.functions @@ -41,6 +41,15 @@ get_dso_deps() { NAMES[$n]="$NAME" FILES[$n]="$FILE" let n++ + + # try to find a generic version + local basedir=$(dirname $(dirname "$FILE")) + local basefile=$(basename "$FILE") + if [ -f "$basedir/$basefile" ]; then + NAMES[$n]="$NAME" + FILES[$n]="$basedir/$basefile" + let n++ + fi done << EOF $(/usr/sbin/chroot $root env LD_TRACE_PRELINKING=1 LD_WARN= \ LD_TRACE_LOADED_OBJECTS=1 $LDSO $bin) -- 1.7.0.1 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list