pango: Avoid build failure if no modules were installed
PATCH 1/1 pango: Avoid build failure if no modules were installed
If pango is configured --with-included-modules then the modules directory may not exist. This leads to python traceback spew and a build failure when trying to run do_split_packages().
Fix this by passing recursive=True to do_split_packages(), which has the side-effect of making it ignore nonexistent directories.
--- meta/recipes-graphics/pango/pango.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-graphics/pango/pango.inc +2 -2
@@ -72,8 +72,8 @@ 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') + + do_split_packages(d, modules_root, '^pango-(.*)\.so$', 'pango-module-%s', 'Pango module %s', prologue + '${bindir}/${MLPREFIX}pango-querymodules > /etc/pango/${MLPREFIX}pango.modules', recursive=True) } FILES_${PN} = "${sysconfdir}/pango/* ${bindir}/* ${libdir}/libpango*${SOLIBS}"
Signature · 1 line
1.7.10.4
Quoted 6 lines · Phil Blundell
If pango is configured --with-included-modules then the modules directory may not exist. This leads to python traceback spew and a build failure when trying to run
do_split_packages().Fix this by passing recursive=True to
do_split_packages(), which has the side-effect of making it ignore nonexistent directories.
I thought I fixed this:
commit 348897358736c28240c084affaca5b4e2fbe499a
Author: Ross Burton <[email protected]> Date: Thu Dec 6 12:53:14 2012 +0000
package.bbclass: make do_split_packages handle non-existent root directories
This function has different behaviour if the split directory doesn't exist depending on the recursive argument: non-recursive uses
os.listdirs which throws
an exception, recursive uses os.walk which doesn't.
do_split_packages should silently handle non-existent directories
because it's
mainly used for plugin directories, which may end up being empty
though changing
the distro configuration (for example, connman without wifi distro feature).
So, add an early exit if the split root doesn't exist.
(From OE-Core rev: 937101e3fdd6afd00f6f8a8be411a67110c4ae78)
Presumably this patch is from Danny or earlier, as this shouldn't happen in Dylan.
For that reason, NACK for master/dylan. If you are continuing to use Danny then I can merge it there for 1.3.2?
Ross
Quoted 9 lines · Ross
Quoted 6 lines · Phil Blundell
If pango is configured --with-included-modules then the modules directory may not exist. This leads to python traceback spew and a build failure when trying to run
do_split_packages().Fix this by passing recursive=True to
do_split_packages(), which has the side-effect of making it ignore nonexistent directories.I thought I fixed this:
Oh yes, so you did; apparently I somehow failed to notice that. Please ignore my patch then.
p.