The new PAM 1.4.0 version uses tmpfiles.eclass, which creates a dependency loop: pam -> tmpfiles -> systemd -> pam The RDEPEND="virtual/tmpfiles" in tmpfiles.eclass is only for the tmpfiles_process function, which should be switched to IDEPEND for EAPI 8 (and probably RDEPEND+BDEPEND for EAPI 7). That will fix the loop when building a sysroot and PAM is migrated to EAPI 8. Reproducible: Always Steps to Reproduce: 1. emerge -v '>=sys-libs/pam-1.4.0' # in a new sysroot Actual Results: It won't build due to the above dependency loop. Expected Results: It should build and install.
Surely we can not wait until EAPI=8
I went back to the manual creation, thank you!.