On Thu, Jan 13, 2022 at 09:45:31PM -0500, Aaron M. Ucko wrote: > I am comfortable with Perl, and having taken another look at the code, was > able to resolve the deadlock by arranging to feed xargs from a dedicated > subprocess, per the attached patch. > > Could you please consider applying it?
TBH, it's been 6 years since I wrote that script and I can't remember why I thought it was even necessary to run "apt-cache show". apt-cache doesn't have access to any relevant data that grep-dctrl doesn't have. It's quite possible (very likely) that I was pre-emptively trying to handle a situation that could never happen. Can you test something for me? Delete all the code from the "# as a last resort..." comment to the end of the "if (@unknown) {...}" loop, and verify that it produces the same output on your system (or, at least, that any differences are either insignificant or an improvement) It does on my system, but I don't have 20000 unknown virtual packages. The only difference on my system was that the script now outputs the correct version number for the transitional libsane:i386 package (the version being output previously was just ":i386" rather than "1.0.32-4:i386") I have dlocate 1.10 almost ready to upload but just want to verify that it will work properly in a context I'm unable to test myself. craig