On OpenBSD, Perl modules should be installed under ${PREFIX}/libdata/perl5 folder. Unfortunately, pidl/lib/wscript_build (as of Samba4) forcibly installs them under ${DATAROOTDIR}/perl5. So we likely either need either to add another configuration option; or to detect such situation, say, by parsing and interpreting "perl -V" output; or to do both things, defaulting first one to the data gathered via second. What way will be more correct and acceptable for you? For now, I just patch the pidl/lib/wscript_build itself.
I'm not really a fan of adding another configuration option. A patch that parses the "perl -V" output would be great.
Moving PIDL bugs into Samba as we do not release PIDL separately.