Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 384671 - x11-libs/pango: ROOT support in pkg_postinst
Summary: x11-libs/pango: ROOT support in pkg_postinst
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:
Depends on:
Blocks:
 
Reported: 2011-09-27 15:09 UTC by SpanKY
Modified: 2011-12-11 13:32 UTC (History)
0 users

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


Attachments
pango root support (pango-root.patch,1008 bytes, patch)
2011-09-27 15:09 UTC, SpanKY
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2011-09-27 15:09:03 UTC
Created attachment 287945 [details, diff]
pango root support

the current ebuild runs pango-querymodules but only when ROOT==/.  but the pango-querymodules allows you to specify the modules to query rather than the default search path.  so we can change pkg_postinst like so:

pkg_postinst() {
       einfo "Generating modules listing..."

       local PANGO_CONFDIR="${EROOT}/etc/pango"
       multilib_enabled && PANGO_CONFDIR+="/${CHOST}"
 
       mkdir -p "${PANGO_CONFDIR}"
       pango-querymodules \
               "${EROOT}"usr/$(get_libdir)/pango/1.6.0/modules/*.so \
               > "${PANGO_CONFDIR}"/pango.modules
}

while this does not work gracefully when cross-compiling, it doesn't make the situation any worse afaict ... otherwise, we can add a CBUILD != CHOST check.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-09-28 20:49:21 UTC
Fixed in pango-1.29.4 in the gnome-next branch of the gnome overlay.
Comment 2 Pacho Ramos gentoo-dev 2011-09-28 20:59:55 UTC
SpanKY, do you think a similar change would be needed for app-emulation/emul-linux-x86-gtklibs ?
Comment 3 Pacho Ramos gentoo-dev 2011-12-11 13:32:55 UTC
+  11 Dec 2011; Pacho Ramos <pacho@gentoo.org>
+  emul-linux-x86-gtklibs-20110928.ebuild:
+  Run gdk-pixbuf-query-loaders32 as suggested by lxnay to catch failures
+  properly, also run pango-querymodules32 as vapier suggested in bug #384671.
+


And pango were fixed time ago also