* [PATCH] pango: don't try to split modules if none were installed
@ 2012-09-30 17:19 Phil Blundell
2012-09-30 17:31 ` Phil Blundell
0 siblings, 1 reply; 2+ messages in thread
From: Phil Blundell @ 2012-09-30 17:19 UTC (permalink / raw)
To: openembedded-core
If pango is configured --with-included-modules then the modules
directory may not exist. Trying to call do_split_modules() on a
nonexistent path leads to python stack traceback spew and a build
failure, so check in advance whether that directory is present before
trying to do any splitting.
Signed-off-by: Phil Blundell <philb@gnu.org>
---
meta/recipes-graphics/pango/pango.inc | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-graphics/pango/pango.inc b/meta/recipes-graphics/pango/pango.inc
index c9e92f0..8eb920a 100644
--- a/meta/recipes-graphics/pango/pango.inc
+++ b/meta/recipes-graphics/pango/pango.inc
@@ -64,8 +64,9 @@ python populate_packages_prepend () {
prologue = d.getVar("postinst_prologue", True)
modules_root = d.expand('${libdir}/pango/${LIBV}/modules')
-
- do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + '${bindir}/${MLPREFIX}pango-querymodules > /etc/pango/${MLPREFIX}pango.modules')
+
+ if os.path.exists(os.path.join(d.expand('${D}'), modules_root)):
+ do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + '${bindir}/${MLPREFIX}pango-querymodules > /etc/pango/${MLPREFIX}pango.modules')
}
FILES_${PN} = "${sysconfdir}/pango/* ${bindir}/* ${libdir}/libpango*${SOLIBS}"
--
1.7.10.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pango: don't try to split modules if none were installed
2012-09-30 17:19 [PATCH] pango: don't try to split modules if none were installed Phil Blundell
@ 2012-09-30 17:31 ` Phil Blundell
0 siblings, 0 replies; 2+ messages in thread
From: Phil Blundell @ 2012-09-30 17:31 UTC (permalink / raw)
To: openembedded-core
On Sun, 2012-09-30 at 18:19 +0100, Phil Blundell wrote:
> - do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + '${bindir}/${MLPREFIX}pango-querymodules > /etc/pango/${MLPREFIX}pango.modules')
> +
> + if os.path.exists(os.path.join(d.expand('${D}'), modules_root)):
> + do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + '${bindir}/${MLPREFIX}pango-querymodules > /etc/pango/${MLPREFIX}pango.modules')
> }
Hm, I seem to have sent the wrong version of this patch. Please ignore
that one.
p.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-30 17:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-30 17:19 [PATCH] pango: don't try to split modules if none were installed Phil Blundell
2012-09-30 17:31 ` Phil Blundell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox