Rafael Castro wrote:
>
> On Jun 26, 2006, at 12:16 AM, Dave Oxley wrote:
>
>> I left an emerge of Qt running at the weekend which downgraded my Xorg
>> from 7.0 to 6.8 (I was missing virtual/x11 ~amd64 in package.keywords).
>> When I came back to the machine I unmerged Xorg which deleted a load of
>> libraries that were installed with 7.0, but the system thinks they are
>> still installed. I need a mechanism to do a sanity check on the ebuilds
>> installed and the actual files, so that I can re-emerge ebuilds whose
>> files have been deleted. Is there anything that does this?
>
> I'm not quite sure I understood it, but I think you're looking for
> revdep-rebuild...
> from the man page:
>
> revdep-rebuild scans libraries and binaries for missing shared
> library dependencies
> and fixes them by re-emerging those broken binaries and shared
> libraries. It is use‐
> ful when an upgraded package breaks other software packages
> that are dependent upon
> the upgraded package.
I already knew about revdep-rebuild. It doesn't do what I need, so I've
written a script which has solved my problems and here it is in case
anyone is interested:
for i in `equery list`;
do
for j in `equery files =$i`;
do
if [ ! -d "$j" ] && [ ! -f "$j" ];
then
echo "File $j from ebuild $i is missing"
fi
done
done
--
[email protected] mailing list