package installs "setup_chroot.sh" into docs. This tool is great for installing new chroot environments including user-accounts, but it needs also "config.h" in the same directory to work at all. So I suggest to change the ebuild from: dodoc setup_chroot.sh to something like this: exeopts -m0700 # just for safety exeinto /usr/share/doc/${PF}/config insinto /usr/share/doc/${PF}/config doexe setup_chroot.sh doins config.h so this tool is directly usable without extracting first. Reproducible: Always Steps to Reproduce: Actual Results: setup-script is installed, but doesn't work because auf missing "config.h" file. Expected Results: script should work out-of-the-box.
ok, installing this script seems obsolete, since ebuild has a --config option. So forget it. But unfortunately your pkg_config() doesn't work at all, since you use hard-coded libs/binaries. And even wrong ones (it's not /usr/bin/ld, but /usr/bin/id). I got always "unknown user XXX" with it. Then I figured out, that /lib/libnss_files.so.2 was missing. You should REALLY copy the logic from setup_chroot.sh! There "ldd" is used to figure out all the dependencies. If you want, I can try to fix it. And also the other 2 bugs which are open.
fixed in CVS.