Hi, For a bit of the context: i'm trying to build a minimal rootfs (basically) using ROOT=/wherever emerge $wanted_pkgs (i also generate binpkgs, for which i provide writable PKGDIR environment variable) It proved simpler to do it with busybox, however, netifrc (which i want too) does not support busybox's ifplugd (-i vs --iface, maybe that should be considered a bug in itself, there are also other glitches using busybox with openrc). So i added sys-apps/ifplugd to $wanted_pkgs, but then emerge complained about /var/db/pkg not being writable (that came from lib/_emerge/actions.py:613), which is out of the configured ROOT. The wrong thing here is portage selects /var/db/pkg not considering actual configuration. I had a quick look at ebuild, but could not find anything obviously triggering For now, i disabled plug module in netifrc config, as i don't need it anyway. I can provide more informations if asked, and i can test if wanted, but i don't plan to familiarise with portage innards. Reproducible: Always
Sorry about the noise, i messed about SYSROOT.