summaryrefslogtreecommitdiff
path: root/packages/qt4/qt_packaging.inc
diff options
context:
space:
mode:
authorHolger Freyther <zecke@selfish.org>2008-01-22 08:39:29 +0000
committerHolger Freyther <zecke@selfish.org>2008-01-22 08:39:29 +0000
commitf445e6d0f90b8bcce3cb8a95c40f7e56c821661e (patch)
tree73e597126c836b66e43f2112c8a8bdc90e78472e /packages/qt4/qt_packaging.inc
parentd740dd9bb2c29a300333277986fc50d9eeb8c2d5 (diff)
packages/qt4/qt_packaging.inc: Fix packaging of the -dbg packages
split in packages.bbclass gets called after the work in do_populate_packages_prepend() is done. This means that on the first packaging attempt no .debug files exist. So create one -dbg package for every plugin we find and assume that the file is getting split out.
Diffstat (limited to 'packages/qt4/qt_packaging.inc')
-rw-r--r--packages/qt4/qt_packaging.inc26
1 files changed, 14 insertions, 12 deletions
diff --git a/packages/qt4/qt_packaging.inc b/packages/qt4/qt_packaging.inc
index 931c5671d9..ba2a037f59 100644
--- a/packages/qt4/qt_packaging.inc
+++ b/packages/qt4/qt_packaging.inc
@@ -134,22 +134,24 @@ python populate_packages_prepend() {
new packages to the meta package.
"""
plugin_dir = bb.data.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/' % path, d)
- plugin_dir_dbg = bb.data.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/.debug/' % path, d)
if not os.path.exists("%s%s" % (bb.data.expand('${D}',d), plugin_dir)):
bb.note("The path does not exist:", bb.data.expand('${D}', d), plugin_dir)
return
- plugin_name = bb.data.expand('${QT_BASE_NAME}-plugin-%s-%%s' % name, d)
- plugin_name_dbg= bb.data.expand('${QT_BASE_NAME}-plugin-%s-%%s-dbg' % name, d)
- print plugin_name, plugin_name_dbg, glob
-
- dev_packages = []
- dev_hook = lambda a,pkg,b,c,d:dev_packages.append(pkg)
- dbg_packages = []
- dbg_hook = lambda a,pkg,b,c,d:dbg_packages.append(pkg)
- do_split_packages(d, plugin_dir, glob, plugin_name, '{PN} %s for %%s' % name, extra_depends='', hook=dev_hook)
- do_split_packages(d, plugin_dir_dbg, glob, plugin_name_dbg, '{PN} %s for %%s' % name, extra_depends='', hook=dbg_hook)
-
+ plugin_name = bb.data.expand('${QT_BASE_NAME}-plugin-%s-%%s' % name, d)
+ dev_packages = []
+ dev_hook = lambda file,pkg,b,c,d:dev_packages.append((file,pkg))
+ do_split_packages(d, plugin_dir, glob, plugin_name, '{PN} %s for %%s' % name, extra_depends='', hook=dev_hook)
+ # Create a -dbg package as well
+ plugin_dir_dbg = bb.data.expand('${libdir}/${QT_DIR_NAME}/plugins/%s/.debug' % path, d)
+ packages = bb.data.getVar('PACKAGES',d)
+ for (file,package) in dev_packages:
+ packages = "%s %s-dbg" % (packages, package)
+ file_name = os.path.join(plugin_dir_dbg, os.path.basename(file))
+ bb.data.setVar("FILES_%s-dbg" % package, file_name, d)
+ bb.data.setVar("DESCRIPTION_%s-dbg" % package, "{PN} %s for %s" % (name, package), d)
+
+ bb.data.setVar('PACKAGES', packages, d)
qtopia_split('accessible', 'accessible', '^libq(.*)\.so$')
qtopia_split('codecs', 'codec', '^libq(.*)\.so$')