hooks/post-install/pkglint: repair and improve checks to detect soname bumps.