Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 534360 - >=x11-libs/pango-1.36.7 doesn't respect the ROOT variable when creating modules.cache
Summary: >=x11-libs/pango-1.36.7 doesn't respect the ROOT variable when creating modul...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-01-02 16:11 UTC by Mark Tomich
Modified: 2015-10-03 11:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pango-1.36.8-r1.ebuild.patch (pango-1.36.8-r1.ebuild.patch,511 bytes, patch)
2015-01-02 16:13 UTC, Mark Tomich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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