>=x11-libs/pango-1.36.7 doesn't respect the ROOT variable when creating modules.cache. Instead, it updates /usr/lib/pango/1.8.0/modules.cache and fails to create ${ROOT}/usr/lib/pango/1.8.0/modules.cache. Reproducible: Always Steps to Reproduce: 1. mkdir /mnt/chroot 2. ROOT=/mnt/chroot emerge -1 >=x11-libs/pango-1.36.7 3. ls -l /usr/lib/pango/1.8.0/modules.cache /mnt/chroot/usr/lib/pango/1.8.0/modules.cache Actual Results: observe that /usr/lib/pango/1.8.0/modules.cache (which is outside the chroot) has been updated, whereas ${ROOT}/usr/lib/pango/1.8.0/modules.cache has not been created. Expected Results: ${ROOT}/usr/lib/pango/1.8.0/modules.cache should have been created, and /usr/lib/pango/1.8.0/modules.cache should not have been touched. prefixing the pango-querymodules line in pkg_postinst as follows solves the problem: > chroot "${EROOT}" "${CHOST}-pango-querymodules" --update-cache ...patch forthcoming...
Created attachment 392970 [details, diff] pango-1.36.8-r1.ebuild.patch
@prefix, what do you think about that change?
Whether or not the use of chroot is right, I'll leave up to you guys. The usage of EROOT here is wrong, for pango-querymodules should figure out EPREFIX itself. (If not, it's a Prefix bug.) Thus, just use ROOT here with chroot.
[master 68aa8e8] x11-libs/pango: Remove orphan old file (#536726), cantarell fonts are needed for tests (#532346), respect ROOT variable when creating modules.cache (#534360 by Mark Tomich and Fabian Groffen). 1 file changed, 91 insertions(+) create mode 100644 x11-libs/pango/pango-1.36.8-r1.ebuild