Thanks Nia! I have rebuilt sudo on pkgsrc current with your patches and verified sudo to be working fine now on Loongson/evbmips n32. I'll open another PR regarding the gnupg2 issue with more info. Feel free to close this one.