Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 534360

Summary: >=x11-libs/pango-1.36.7 doesn't respect the ROOT variable when creating modules.cache
Product: Gentoo Linux Reporter: Mark Tomich <mstomich>
Component: [OLD] GNOMEAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: nikolay.pershyn, prefix
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: pango-1.36.8-r1.ebuild.patch

Description Mark Tomich 2015-01-02 16:11:44 UTC
>=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...
Comment 1 Mark Tomich 2015-01-02 16:13:59 UTC
Created attachment 392970 [details, diff]
pango-1.36.8-r1.ebuild.patch
Comment 2 Pacho Ramos gentoo-dev 2015-01-04 10:37:14 UTC
@prefix, what do you think about that change?
Comment 3 Fabian Groffen gentoo-dev 2015-01-05 10:07:14 UTC
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.
Comment 4 Pacho Ramos gentoo-dev 2015-10-03 11:30:50 UTC
[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