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.
We no longer install PIDL from waf, we use the MakeMaker based system which should be closer to traditional Perl behaviour (I hope). Fixed in master with e24e344d0da58013fd5fa404529fe1d25ef403bf and Samba 4.11 with d42c7ffa6cbd90d0e777e39b12eda5c69e186a2f