#!/bin/sh PATHS="/lib /usr/lib /bin /usr/bin" PKGLIST="" for P in ${PATHS} do echo "Checking path \"${P}\"..." for F in ${P}/* do RES="`file ${F} | grep 32-bit | cut -d: -f1`" if [ ! -z ${RES} ] then if [ "`pkginfo -o ${RES} | wc -l`" = "1" ] then echo "Found 32-bit file with no owner: ${F}" else OWNER="`pkginfo -o ${F} | tail -n 1 | awk '{ print $1 }'`" PKGLIST="${PKGLIST} ${OWNER}" fi fi done done if [ ! -z "${PKGLIST}" ] then echo echo "Packages that likely need to be rebuilt:" echo (for P in ${PKGLIST}; do echo ${P}; done) | sort | uniq fi