<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Droid Sans Mono">Hi,<br>
<br>
I've been wrestling with do_split_packages and package_ipk trying
to generate packages that have a customised DESCRIPTION override.
I could not get it to work. Here is roughly what I tried:<br>
<br>
--- mytest.bb start ---<br>
SUMMARY = "Generic summary"<br>
DESCRIPTION = "Generic description"<br>
...<br>
DESCRIPTION_mytest-plugin-item1 = "Description specific to item1"<br>
DESCRIPTION_mytest-plugin-item2 = "Description specific to item2"<br>
...<br>
RDEPENDS_mytest-plugin-item1 = "python-requests"<br>
...<br>
python populate_packages_prepend() {<br>
mytest_plugindir = bb.data.expand('${libdir}/mytest/Plugins',
d)<br>
do_split_packages(d, mytest_plugindir,
'^(\w+/\w+)/[a-zA-Z0-9_]+.*$', 'mytest-plugin-%s',
'${DESCRIPTION_mytest-plugin-%s}', recursive=True,
match_path=True, prepend=True)<br>
do_split_packages(d, mytest_plugindir, '^(\w+/\w+)/.*\.py$',
'mytest-plugin-%s-src', '%s (source files)', recursive=True,
match_path=True, prepend=True)<br>
}<br>
</font><br>
<font face="Droid Sans Mono"><font face="Droid Sans Mono">---
mytest.bb end ---<br>
</font><br>
The .ipk files generated using do_split_packages always have the
generic description and summary, instead of using the package
specific versions. I've tried a number of variants of the above,
but without any luck.<br>
<br>
In the end I ended up making the following changes. I have a
feeling that this is not the right solution, but I'm at a loss as
to a more appropriate way of doing what I want. Any suggestions?<br>
<br>
diff --git a/meta/classes/package_ipk.bbclass
b/meta/classes/package_ipk.bbclass<br>
index dba6804..f7f61c7 100644<br>
--- a/meta/classes/package_ipk.bbclass<br>
+++ b/meta/classes/package_ipk.bbclass<br>
@@ -138,9 +138,9 @@ python do_package_ipk () {<br>
raise KeyError(f)<br>
# Special behavior for description...<br>
if 'DESCRIPTION' in fs:<br>
- summary = localdata.getVar('SUMMARY', True)
or localdata.getVar('DESCRIPTION', True) or "."<br>
+ summary = localdata.getVar('SUMMARY_' +
pkgname, True) or localdata.getVar('SUMMARY', True) or
localdata.getVar('DESCRIPTION_' + pkgname, True) or
localdata.getVar('DESCRIPTION', True) or "."<br>
ctrlfile.write('Description: %s\n' % summary)<br>
- description = localdata.getVar('DESCRIPTION',
True) or "."<br>
+ description = localdata.getVar('DESCRIPTION_'
+ pkgname, True) or localdata.getVar('DESCRIPTION', True) or "."<br>
description =
textwrap.dedent(description).strip()<br>
if '\\n' in description:<br>
# Manually indent<br>
<br>
</font>
</body>
</html>