Created attachment 545972 [details, diff] ebuild.patch Minor patches in the ebuild and configure script are required for correct compiling on Gentoo Prefix. The required patches are attached for getting the package to build and install correctly under Gentoo Prefix. I haven't figured out an appropriate way to handle the shebang of the named initscript though; Portage didn't automatically prefix shebang, and editting it directly risks breakage on normal systems. I haven't found out a way to properly start an OpenRC service in Prefix as well (rc_sys="prefix" is not working as expected), so can't test if the program itself is working though.
Created attachment 545974 [details, diff] zlib-include-path.patch
If you can't start bind9 via OpenRC, why do you need it? Are you starting it manually?
> if use urandom; then > einfo "Using /dev/urandom for generating rndc.key" > - /usr/sbin/rndc-confgen -r /dev/urandom -a > + "${EPREFIX}"/usr/sbin/rndc-confgen -r /dev/urandom -a > echo Christian, could you please hint why we needed to hard-code the path of rndc-confgen?
it's unclear why this would be useful in Prefix, I'm delaying this