Um, isn't that what localized patches in pkgsrc are for? (Or would that be rather unhelpful for those using pkgsrc on, say Solaris. Yes, yes, it probably would. Yuck.) even so, pkgsrc patches can be __NetBSD__ conditional so that it won't affect other OS's using pkgsrc.