Bug 337

Summary: SUMMARY field is not automatically populated by the DESCRIPTION field
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Mark Hatle <mark.hatle>
Component: meta-yoctoAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, kevin.tian, poky.bs.watcher, poky.watcher, richard.purdie, sgw
Version: 0.9   
Target Milestone: 0.9 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Mark Hatle 2010-09-17 11:08:38 UTC
It does not appear that the SUMMARY information is automatically populated by the DESCRIPTION if not specifically defined.
Comment 1 Saul Wold 2010-09-20 09:59:04 UTC
For package_rpm.bbclass make the following change.

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index b70575c..2502549 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -135,7 +135,7 @@ python write_specfile () {
 
        # Construct the SPEC file...
        srcname    = bb.data.getVar('PN', d, True)
-       srcsummary = (bb.data.getVar('SUMMARY', d, True) or ".")
+       srcsummary = (bb.data.getVar('SUMMARY', d, True) or bb.data.getVar('DESCRIPTION', d, True) or ".")
        srcversion = bb.data.getVar('PV', d, True).replace('-', '+')
        srcrelease = bb.data.getVar('PR', d, True)
        srcepoch   = (bb.data.getVar('PE', d, True) or "")
Comment 3 Saul Wold 2010-09-29 11:20:43 UTC
see previous comment for commit id