I had dev-libs/opensc emerged without the openct USE flag, but it still does automatic checks in configure checks, and ends up still using openct if it's installed (but not selected to be used with the fact that openct USE flag isn't used). This ends up in opensc being broke (and openssh with it with smartcard USE) when depcleaning openct. There is no "use_enable openct" being passed to configure, so I suspect some configure.in magic is missing upstream or it isn't used in the ebuild. Is it using pcsc-lite OR openct, or is the package able to use both at once? Bug 44345 seems to say it's a strict OR, in which case two USE flags don't make sense (pcsc-lite and openct), but things might have changed over time upstream. PS: metadata.xml says "ibopensc" for the package name
Thanks. Fixed. Please check new revision.