var/lib/portage/config is generated under ${EPREFIX}/${EPREFIX}/var/lib/portage/config instead of ${EPREFIX}/var/lib/portage/config Reproducible: Always Steps to Reproduce: 1. emerge portage (it updates var/lib/portage/config for etc/dispatch-conf & co) Actual Results: /${EPREFIX}/${EPREFIX}/var/lib/portage/config is updated /${EPREFIX}/var/lib/portage/config is inexistent or not updated Expected Results: /${EPREFIX}/var/lib/portage/config should be updated
thanks for spotting that, seems critical to me
this patch should do it Index: pym/portage/dbapi/vartree.py =================================================================== --- pym/portage/dbapi/vartree.py (revision 14698) +++ pym/portage/dbapi/vartree.py (working copy) @@ -3075,7 +3075,7 @@ os.path.sep dest_root_len = len(dest_root) - 1 - conf_mem_file = os.path.join(dest_root, EPREFIX_LSTRIP, CONFIG_MEMORY_FILE) + conf_mem_file = os.path.join(dest_root, CONFIG_MEMORY_FILE) cfgfiledict = grabdict(conf_mem_file) stale_confmem = []
it seems the problem is still present for me
after applying the patch?
yes, and checked again to be sure
and if you apply also this patch on top? Index: pym/portage/dbapi/vartree.py =================================================================== --- pym/portage/dbapi/vartree.py (revision 14720) +++ pym/portage/dbapi/vartree.py (working copy) @@ -4462,7 +4462,7 @@ self.updateprotect() #if we have a file containing previously-merged config file md5sums, grab it. - conf_mem_file = os.path.join(destroot, EPREFIX_LSTRIP, CONFIG_MEMORY_FILE) + conf_mem_file = os.path.join(destroot, CONFIG_MEMORY_FILE) cfgfiledict = grabdict(conf_mem_file) cfgfiledict_orig = cfgfiledict.copy() if "NOCONFMEM" in self.settings:
it works, thanks :)
thanks for testing, this is now in 2.2.00.14724